Submission #964231

#TimeUsernameProblemLanguageResultExecution timeMemory
964231LucaIlieStray Cat (JOI20_stray)C++17
Compilation error
0 ms0 KiB
#include "Anthony.h" #include <bits/stdc++.h> using namespace std; const int MAX_N = 2e4; const int MAX_M = 2e4; bool vis[MAX_N], visE[MAX_M]; int d[MAX_N]; vector<int> adj[MAX_N]; vector<int> Mark( int N, int M, int A, int B, vector<int> U, vector<int> V ) { vector<int> X( M ); for ( int i = 0; i < M; i++ ) { adj[U[i]].push_back( i ); adj[V[i]].push_back( i ); } queue<int> q; d[0] = 0; vis[0] = true; q.push( 0 ); while ( !q.empty() ) { int u = q.front(); q.pop(); for ( int e: adj[u] ) { if ( visE[e] ) continue; visE[e] = true; int v = (U[e] == u ? V[e] : U[e]); X[e] = d[u]; if ( vis[v] ) continue; d[v] = (d[u] + 1) % 3; vis[v] = true; q.push( v ); } } return X; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccodFZM5.o: in function `main':
grader_catherine.cpp:(.text.startup+0x41c): undefined reference to `Init(int, int)'
/usr/bin/ld: grader_catherine.cpp:(.text.startup+0xcfa): undefined reference to `Move(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status