Submission #1063368

#TimeUsernameProblemLanguageResultExecution timeMemory
1063368alexddMagic Show (APIO24_show)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; std::vector<std::pair<int,int>> Alice() { int N = 4941; long long k = setN(N); vector<pair<int,int>> edges; for(int root=1;root<=N;root+=61) { for(int b=0;b<60;b++) { if(((1LL<<b)&k)) { edges.push_back({root,root+1+b}); } } } return edges; }
#include <bits/stdc++.h> #include "Alice.h" using namespace std; std::vector<std::pair<int,int>> Alice() { int N = 4941; long long k = setN(N); vector<pair<int,int>> edges; for(int root=1;root<=N;root+=61) { for(int b=0;b<60;b++) { if(((1LL<<b)&k)) { edges.push_back({root,root+1+b}); } } } return edges; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cclm3UoS.o: in function `Alice()':
Bob.cpp:(.text+0x34): undefined reference to `setN(int)'
/usr/bin/ld: /tmp/cch5HNwW.o: in function `main':
grader_bob.cpp:(.text.startup+0x324): undefined reference to `Bob(std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)'
collect2: error: ld returned 1 exit status