Submission #843954

#TimeUsernameProblemLanguageResultExecution timeMemory
843954mihaibunSoccer Stadium (IOI23_soccer)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <soccer.h> using namespace std; int biggest_stadium(int N, int F[2001][]) { int i,j,x=0; for(i = 0; i < N; i++) for(j = 0; j < N; j++) if(F[i][j]==0) x++; return x; }

Compilation message (stderr)

soccer.cpp:5:32: error: declaration of 'F' as multidimensional array must have bounds for all dimensions except the first
    5 | int biggest_stadium(int N, int F[2001][])
      |                                ^
soccer.cpp: In function 'int biggest_stadium(...)':
soccer.cpp:8:20: error: 'N' was not declared in this scope
    8 |     for(i = 0; i < N; i++)
      |                    ^
soccer.cpp:10:16: error: 'F' was not declared in this scope
   10 |             if(F[i][j]==0) x++;
      |                ^