Submission #271716

# Submission time Handle Problem Language Result Execution time Memory
271716 2020-08-18T07:19:34 Z Halit Easter Eggs (info1cup17_eastereggs) C++17
Compilation error
0 ms 0 KB
#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

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);
      |          ^~~~~