Submission #890549

# Submission time Handle Problem Language Result Execution time Memory
890549 2023-12-21T13:06:01 Z Iwantbemaster Easter Eggs (info1cup17_eastereggs) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ff first
#define ss second
const int ForSpeed = [](){
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr); cout.tie(nullptr);
	return 0;
}();
int findegg(int n, vector<pair<int, int>> brid){
	for(int i = 1; i <= n; i++){
		vector<int> res; res.emplace_back(i);
		if(query(res)) return i;
	}
}

Compilation message

eastereggs.cpp: In function 'long long int findegg(long long int, std::vector<std::pair<long long int, long long int> >)':
eastereggs.cpp:14:6: error: 'query' was not declared in this scope
   14 |   if(query(res)) return i;
      |      ^~~~~
eastereggs.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^