Submission #209001

#TimeUsernameProblemLanguageResultExecution timeMemory
209001robsCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include "cave.h" #include <bits/stdc++.h> using namespace std; const int maxn = 1e4; int s[maxn],d[maxn]; void exploreCave(int N){ while(true) { int n = tryCombination(s[]); if(n == -1) break; s[n] ^= 1; } for(int i = 0; i < N; i++) d[i] = i; answer(s[], d[]); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:28: error: expected primary-expression before ']' token
   int n = tryCombination(s[]);
                            ^
cave.cpp:15:11: error: expected primary-expression before ']' token
  answer(s[], d[]);
           ^
cave.cpp:15:16: error: expected primary-expression before ']' token
  answer(s[], d[]);
                ^