Submission #710200

#TimeUsernameProblemLanguageResultExecution timeMemory
710200MinhAnhndStray Cat (JOI20_stray)C++14
Compilation error
0 ms0 KiB
#include "Anthony.h" #include <vector> #include <bits/stdc++.h> namespace { int FunctionExample(int i, int A) { return i % A; } } // namespace std::vector<int> Mark(int N, int M, int A, int B, std::vector<int> U, std::vector<int> V) { std::vector<int> adj[20001]; int index[20001] = {}; std::vector<int> X(M); std::queue<int> bfs; bfs.push(0); index[0] = 1; for (int i = 0; i < M; ++i) { adj[U[i]].push_back(V[i]); adj[V[i]].push_back(U[i]); } while(!bfs.empty()){ int node = bfs.back(); bfs.pop(); for(auto child:adj[node]){ if(index[child]==0){ index[child] = index[node] + 1; if(index[child]==4) index[child] = 1; bfs.push(child); } } } for (int i = 0; i < M; ++i) { int nodeA = index[U[i]]; int nodeB = index[V[i]]; if(nodeA > nodeB) std::swap(nodeA,nodeB); if((nodeA == 1)&&(nodeB == 2)) X[i] = 0; if((nodeA == 2)&&(nodeB == 3)) X[i] = 1; if((nodeA == 1)&&(nodeB == 3)) X[i] = 2; if((nodeA == 2)&&(nodeB == 2)) X[i] = 1; if((nodeA == 3)&&(nodeB == 3)) X[i] = 2; if((nodeA == 1)&&(nodeB == 1)) X[i] = 0; } return X; }

Compilation message (stderr)

Anthony.cpp:7:5: warning: 'int {anonymous}::FunctionExample(int, int)' defined but not used [-Wunused-function]
    7 | int FunctionExample(int i, int A) {
      |     ^~~~~~~~~~~~~~~

/usr/bin/ld: /tmp/ccDjjhAV.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