Submission #1216679

#TimeUsernameProblemLanguageResultExecution timeMemory
1216679lizi14동굴 (IOI13_cave)C++20
Compilation error
0 ms0 KiB
#include "cave.h" //#include <bits/stdc++.h> using namespace std; void exploreCave(int N) { int x[N]; int s[N]; fill(s,s+N,0); fill(x,x+N,0); int an=0; while(true){ int a=tryCombination(x); if(a==-1){ break; } if(a>an){ for(int i=0; i<an; i++){ if(s[i]!=x[i]){ s[i]=x[i]; } } a=an-1; } else x[a]=1-x[a]; } int c[N]; for(int i=0; i<N; i++)c[i]=i; answer(x, c); }

Compilation message (stderr)

cave.cpp:12:32: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   12 |         int a=tryCombination(x);
      |                                ^
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:8:5: error: 'fill' was not declared in this scope
    8 |     fill(s,s+N,0);
      |     ^~~~
cave.cpp:12:32: error: expected ',' or ';' before '\U0000037e'
   12 |         int a=tryCombination(x);
      |                                ^