Submission #670620

#TimeUsernameProblemLanguageResultExecution timeMemory
670620pzorroCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <iostream> #include <bits/stdc++.h> using namespace std; const int MAXN = 5 * 1e3; int s[MAXN]; int d[MAXN]; int tryCombination(int S[]); void answer(int S[],int D[]); void exploreCave(int n){ //case 1 -> si <-> di int res; do{ res = tryCombination(s); if(res != -1){ s[res]+=1; } }while(res != -1) answer(s, d); } int main() { int n; cin >> n; for(int i = 0; i < n; i++){ s[i] = 0; d[i] = i; } exploreCave(n); return 0; }

Compilation message (stderr)

cave.cpp:11:28: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   11 | int tryCombination(int S[]);
      |                            ^
cave.cpp:12:29: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   12 | void answer(int S[],int D[]);
      |                             ^
cave.cpp:11:28: error: expected initializer before '\U0000037e'
   11 | int tryCombination(int S[]);
      |                            ^
cave.cpp: In function 'int main()':
cave.cpp:34:5: error: 'exploreCave' was not declared in this scope
   34 |     exploreCave(n);
      |     ^~~~~~~~~~~