답안 #334358

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
334358 2020-12-09T04:53:12 Z blue 악어의 지하 도시 (IOI11_crocodile) C++11
컴파일 오류
0 ms 0 KB
#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

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
      |                 ^~~