Submission #676869

# Submission time Handle Problem Language Result Execution time Memory
676869 2023-01-01T12:32:47 Z radal Amusement Park (JOI17_amusement_park) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "Joi.h"
#pragma GCC target("sse,sse2,avx2")
#pragma GCC optimize("unroll-loops,O3")
#define rep(i,l,r) for (int i = l; i < r; i++)
#define repr(i,r,l) for (int i = r; i >= l; i--)
#define X first
#define Y second
#define all(x) (x).begin() , (x).end()
#define pb push_back
#define endl '\n'
#define debug(x) cerr << #x << " : " << x << endl;
using namespace std;
typedef long long ll;
typedef pair<int,int> pll;
constexpr int N = 1e6+10,mod = 1e9+7;

vector<int> adj[N];
int T,tin[N];
bool vis[N];

void dfs(int v,ll x){
	if ((x&(1ll << (T%60)))) MessageBoard(v,1);
	else MessageBoard(v,0);
	tin[v] = T++;
	vis[v] = 1;
	for (int u : adj[v]) if (!vis[u]) dfs(u,x);
}

void Joi(int n, int m, int A[], int B[], long long x, int tt) {
	rep(i,0,m){
		adj[A[i]].pb(B[i]);
		adj[B[i]].pb(A[i]);
	}
	rep(i,0,n) sort(all(adj[i]));
	dfs(0,x);
	return;
}



    

Compilation message

/usr/bin/ld: /tmp/ccX95aWs.o: in function `main':
grader_ioi.cpp:(.text.startup+0x3f2): undefined reference to `Ioi(int, int, int*, int*, int, int, int)'
collect2: error: ld returned 1 exit status