Submission #876282

#TimeUsernameProblemLanguageResultExecution timeMemory
876282HalfjuiceDigital Circuit (IOI22_circuit)C++17
Compilation error
0 ms0 KiB
#include <vector> typedef struct _Node { _Node* parent; std::vector<_Node*> children; } Node; void init(int N, int M, int* P, int* A) { Node* nodes = new Node[N+M]; for (int i=0; i<N+M; i++) { nodes[i].parent = nodes+P[i]; nodes[P[i]].children.push_back(nodes+i); } } int count_ways(int L, int R) { return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccG7Ry9s.o: in function `main':
stub.cpp:(.text.startup+0x128): undefined reference to `init(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status