Submission #334358

#TimeUsernameProblemLanguageResultExecution timeMemory
334358blue악어의 지하 도시 (IOI11_crocodile)C++11
Compilation error
0 ms0 KiB
#include "crocodile.h" using namespace std; int travel_plan(int N, //number of chambers int M, //number of corridors int R[][], //endpoints of corridor i int L, //corridor lengths int K, //number of exits int P[]) //list of exist { return 0; }

Compilation message (stderr)

crocodile.cpp:6:21: error: declaration of 'R' as multidimensional array must have bounds for all dimensions except the first
    6 |                 int R[][],  //endpoints of corridor i
      |                     ^
crocodile.cpp:6:26: error: expected ')' before ',' token
    6 |                 int R[][],  //endpoints of corridor i
      |                          ^
      |                          )
crocodile.cpp:4:16: note: to match this '('
    4 | int travel_plan(int N,      //number of chambers
      |                ^
crocodile.cpp:7:17: error: expected unqualified-id before 'int'
    7 |                 int L,      //corridor lengths
      |                 ^~~