Submission #890554

#TimeUsernameProblemLanguageResultExecution timeMemory
890554IwantbemasterEaster Eggs (info1cup17_eastereggs)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int findegg(int N, vector<pair<int, int>> bridges){ for(int i = 1; i <= N; i++){ vector<int> res; res.emplace_back(i); if(query ({res})) return i; } return n; }

Compilation message (stderr)

eastereggs.cpp: In function 'int findegg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:6:6: error: 'query' was not declared in this scope
    6 |   if(query ({res})) return i;
      |      ^~~~~
eastereggs.cpp:7:11: error: 'n' was not declared in this scope
    7 |  } return n;
      |           ^