답안 #269714

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
269714 2020-08-17T09:07:44 Z Fasho Easter Eggs (info1cup17_eastereggs) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#define N 100005
#define ll long long int
#define fo(i,x,y)	for(int i=x;i<=y;i++)
#define fs(ar,n) fo(i,1,n) cin>>ar[i]
#define sp " "
#define fast cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false)
#define pb push_back
#define ppb pop_back
#define fi first
#define se second
#define ii pair<int,int>
#define lli pair<ll,ll> 
#include "grader.h"
using namespace std;

ll n,m,ar[N],sum,t;


int findEgg (int NN, vector < pair < int, int > > bridges)
{
	n=NN;
	fo(i,1,n-1)
	{
		if(query({i}))
			return i;
	}
    // if (query ({1})) return 1;
    return n;
}

Compilation message

eastereggs.cpp:2:11: error: expected ',' or '...' before numeric constant
    2 | #define N 100005
      |           ^~~~~~
grader.h:5:17: note: in expansion of macro 'N'
    5 | int findEgg(int N, vector < pair < int, int > > bridges);
      |                 ^