fork download
  1.  
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. int sum = 0;
  7. int arr[][3] = {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}};
  8. for (int i = 0; i < 3 ; ++i)
  9. {
  10. for (int j=0; j<1;j++)
  11. {
  12. sum += arr[i][j];
  13. }
  14. }
  15. cout << sum << endl;
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
9