Submission #843949

# Submission time Handle Problem Language Result Execution time Memory
843949 2023-09-04T17:55:33 Z mihaibun Soccer Stadium (IOI23_soccer) C++17
Compilation error
0 ms 0 KB
#include <iostream>
#include <soccer.h>
using namespace std;

int biggest_stadium(int N, int[][2001] 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;
}

Compilation message

soccer.cpp:5:40: error: expected ',' or '...' before 'F'
    5 | int biggest_stadium(int N, int[][2001] F)
      |                                        ^
soccer.cpp: In function 'int biggest_stadium(int, int (*)[2001])':
soccer.cpp:10:16: error: 'F' was not declared in this scope
   10 |             if(F[i][j]==0) x++;
      |                ^