Submission #103178

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

Compilation message (stderr)

prize.cpp: In function 'int find_best(int)':
prize.cpp:6:12: error: 'res' was not declared in this scope
         if(res[0] + res[1] == 0)
            ^~~
prize.cpp:7:17: error: 'i' was not declared in this scope
          return i;
                 ^