Submission #269714

# Submission time Handle Problem Language Result Execution time Memory
269714 2020-08-17T09:07:44 Z Fasho Easter Eggs (info1cup17_eastereggs) C++14
Compilation error
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);
      |                 ^