Submission #1209914

#TimeUsernameProblemLanguageResultExecution timeMemory
1209914LIA동굴 (IOI13_cave)C++17
Compilation error
0 ms0 KiB
void exploreCave(int n) { ll ans[n], ans1[n]; loop(i,0,n) { ans[i] = i; } ll s[n]; loop(i,0,n) { s[i] = 0; if (tryCombination(s)!=i) { continue; } s[i] = 1; } answer(s, ans); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:2:3: error: 'll' was not declared in this scope
    2 |   ll ans[n], ans1[n];
      |   ^~
cave.cpp:3:8: error: 'i' was not declared in this scope
    3 |   loop(i,0,n) {
      |        ^
cave.cpp:3:3: error: 'loop' was not declared in this scope
    3 |   loop(i,0,n) {
      |   ^~~~
cave.cpp:6:5: error: expected ';' before 's'
    6 |   ll s[n];
      |     ^~
      |     ;
cave.cpp:14:10: error: 's' was not declared in this scope
   14 |   answer(s, ans);
      |          ^
cave.cpp:14:13: error: 'ans' was not declared in this scope
   14 |   answer(s, ans);
      |             ^~~
cave.cpp:14:3: error: 'answer' was not declared in this scope
   14 |   answer(s, ans);
      |   ^~~~~~