Submission #235083

#TimeUsernameProblemLanguageResultExecution timeMemory
235083jam_xd_Cave (IOI13_cave)C++17
Compilation error
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); }

Compilation message (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);
               ^