fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int matrix[2][2] = {
  6. 1, 2, 3, 4
  7. }
  8. cout << matrix[1][1];
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘cout’
  cout << matrix[1][1];
  ^~~~
stdout
Standard output is empty