답안 #753866

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
753866 2023-06-06T08:42:18 Z Xiaoyang Easter Eggs (info1cup17_eastereggs) C++17
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
 
#define fi first
#define se second
#define pii pair<int,int>
#define pll pair<long long,long long>
#define pb push_back
#define debug(x) cerr<<#x<<"="<<x<<endl
#define pq priority_queue
#define inf 1ll<<60
#define rep(i,a,b) for (int i=a;i<(b);i++)
#define MP make_pair
#define SZ(x) (int(x.size()))
#define ll long long
#define mod 1000000007
#define ALL(x) x.begin(),x.end()
#define endl "\n"
void inc(ll &a,ll b) {a=(a+b)%mod;}
void dec(ll &a,ll b) {a=(a-b+mod)%mod;}
int lowbit(ll x) {return x&(-x);}
ll p0w(ll base,ll p) {ll ret=1;while(p>0){if (p%2ll==1ll) ret=ret*base%mod;base=base*base%mod;p/=2ll;}return ret;}
//#include "grader.h"
int findEgg (int n, vector < pair < int, int > > bridges)
{
    rep(i,1,n+1){
		vector<int>tmp;tmp.pb(i);
		if(query(tmp))return i;
	}
}	

Compilation message

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