fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[3]={10,20,30};
  6.  
  7. cout <<a[0] << endl;
  8. cout <<a[1] << endl;
  9. cout <<a[2] << endl;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
10
20
30