Submission #890554

# Submission time Handle Problem Language Result Execution time Memory
890554 2023-12-21T13:09:01 Z Iwantbemaster Easter Eggs (info1cup17_eastereggs) C++14
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++){
		vector<int> res; res.emplace_back(i);
		if(query ({res})) return i;
	} return n;
}

Compilation message

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