fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int p[][] = {1,2,3};
  6.  
  7.  
  8.  
  9. int main() {
  10.  
  11.  
  12.  
  13. for(int i = 0 ; i<3;i++)
  14. {
  15. for(int j = 0 ; j<3;j++)
  16. {
  17. p[i][j] = 1;
  18. }
  19. }
  20.  
  21. // your code goes here
  22. return 0;
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:9: error: declaration of ‘p’ as multidimensional array must have bounds for all dimensions except the first
 int p[][] = {1,2,3};
         ^
prog.cpp: In function ‘int main()’:
prog.cpp:17:4: error: ‘p’ was not declared in this scope
    p[i][j] = 1;
    ^
stdout
Standard output is empty