Submission #134336

#TimeUsernameProblemLanguageResultExecution timeMemory
134336arthurconmyCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #ifndef ARTHUR_LOCAL #include "cave.h" #endif void exploreCave(int n) { int D[n]; // we need to answer these for(int i=0; i<n; i++) D[i]=i int combo[n]; for(int i=0; i<n; i++) { int cur = tryCombination(combo); if(cur==i) combo[i]=1-combo[i]; } answer(combo, D); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:14:2: error: expected ';' before 'int'
  int combo[n];
  ^~~
cave.cpp:18:28: error: 'combo' was not declared in this scope
   int cur = tryCombination(combo);
                            ^~~~~
cave.cpp:18:28: note: suggested alternative: 'wctomb'
   int cur = tryCombination(combo);
                            ^~~~~
                            wctomb
cave.cpp:22:9: error: 'combo' was not declared in this scope
  answer(combo, D);
         ^~~~~
cave.cpp:22:9: note: suggested alternative: 'wctomb'
  answer(combo, D);
         ^~~~~
         wctomb