Submission #890557

# Submission time Handle Problem Language Result Execution time Memory
890557 2023-12-21T13:11:01 Z Iwantbemaster Easter Eggs (info1cup17_eastereggs) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
int findegg(int n, vector<pair<int, int>> bridges){
	for(int i = 1; i <= n; i++){
		if(query ({i})) return i;
	} return n;
}

Compilation message

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