fork download
  1. #include <string>
  2. #include <iostream>
  3.  
  4. void f( int a[20][10] )
  5. {
  6.  
  7. }
  8.  
  9. int main(void)
  10. {
  11. int a[10][20];
  12.  
  13. f( a );
  14.  
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 2892KB
stdin
6 0 
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:13:10: error: cannot convert ‘int (*)[20]’ to ‘int (*)[10]’ for argument ‘1’ to ‘void f(int (*)[10])’
stdout
Standard output is empty