제출 #334358

#제출 시각아이디문제언어결과실행 시간메모리
334358blue악어의 지하 도시 (IOI11_crocodile)C++11
컴파일 에러
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;
}

컴파일 시 표준 에러 (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
      |                 ^~~