답안 #890554

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
890554 2023-12-21T13:09:01 Z Iwantbemaster Easter Eggs (info1cup17_eastereggs) C++14
컴파일 오류
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;
      |           ^