제출 #843942

#제출 시각아이디문제언어결과실행 시간메모리
843942mihaibun축구 경기장 (IOI23_soccer)C++17
컴파일 에러
0 ms0 KiB
#include <iostream> #include <soccer.h> using namespace std; int biggest_stadium(int N, int[][] F) { int i,j,x; for(i = 0; i < N; i++) for(j = 0; j < N; j++) if(F[i][j]==0) x++; return x; }

컴파일 시 표준 에러 (stderr) 메시지

soccer.cpp:5:34: error: multidimensional array must have bounds for all dimensions except the first
    5 | int biggest_stadium(int N, int[][] F)
      |                                  ^
soccer.cpp:5:36: error: expected ',' or '...' before 'F'
    5 | int biggest_stadium(int N, int[][] F)
      |                                    ^
soccer.cpp: In function 'int biggest_stadium(int)':
soccer.cpp:10:16: error: 'F' was not declared in this scope
   10 |             if(F[i][j]==0) x++;
      |                ^