Submission #1216652

#TimeUsernameProblemLanguageResultExecution timeMemory
1216652nataliaaCave (IOI13_cave)C++20
Compilation error
0 ms0 KiB
#include "cave.h" #include<bits/stdc++.h> using namespace std; void exploreCave(int N) { int v[N]; int a[N] ={}; for(int i = 0; i < N; i++) v[i]= i; for(int i = 0; i < N; i++) { int k = tryCombination( a) if(k>i) {i = k-1;} else { if(a[i]==0) a[i]=1; else a[i]=0; } } answer( a,v); }

Compilation message (stderr)

cave.cpp:16:17: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   16 |     answer( a,v);
      |                 ^
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:9: error: expected ',' or ';' before 'if'
   10 |         if(k>i) {i = k-1;}
      |         ^~
cave.cpp:11:9: error: 'else' without a previous 'if'
   11 |         else {
      |         ^~~~
cave.cpp:16:17: error: expected ';' before '\U0000037e'
   16 |     answer( a,v);
      |                 ^
      |                 ;