Submission #103226

#TimeUsernameProblemLanguageResultExecution timeMemory
103226turbatThe Big Prize (IOI17_prize)C++14
Compilation error
0 ms0 KiB
#include "prize.h" int find_best(int n) { std::vector<int> res = ask(i); for(int i = 0; i < n; i++) if(res[0] + res[1] == 0) return i; return 0; }

Compilation message (stderr)

prize.cpp: In function 'int find_best(int)':
prize.cpp:4:42: error: 'i' was not declared in this scope
               std::vector<int> res = ask(i);
                                          ^