Submission #271716

#TimeUsernameProblemLanguageResultExecution timeMemory
271716HalitEaster Eggs (info1cup17_eastereggs)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define max(xx,yy) (xx > yy ? xx : yy) #define min(xx,yy) (xx > yy ? yy : xx) #define all(x) x.begin(), x.end() using namespace std; int findEgg(int n, vector< pair<int, int> > bridges){ int ans = 0; for(int i = 0;i < n;++i){ vector< int > v = { i+1 }; ans += query(v); } return ans; }

Compilation message (stderr)

eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:11:10: error: 'query' was not declared in this scope
   11 |   ans += query(v);
      |          ^~~~~