제출 #235083

#제출 시각아이디문제언어결과실행 시간메모리
235083jam_xd_동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include "cave.h" void exploreCave(int N) { vector<int>S(N); vector<int>D(N); for(int i = 0 ; i < N ; ++i){ S[i] = 0; D[i] = i; } answer(S, D); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:4:5: error: 'vector' was not declared in this scope
     vector<int>S(N);
     ^~~~~~
cave.cpp:4:12: error: expected primary-expression before 'int'
     vector<int>S(N);
            ^~~
cave.cpp:5:12: error: expected primary-expression before 'int'
     vector<int>D(N);
            ^~~
cave.cpp:8:9: error: 'S' was not declared in this scope
         S[i] = 0;
         ^
cave.cpp:9:9: error: 'D' was not declared in this scope
         D[i] = i;
         ^
cave.cpp:14:12: error: 'S' was not declared in this scope
     answer(S, D);
            ^
cave.cpp:14:15: error: 'D' was not declared in this scope
     answer(S, D);
               ^