Submission #1304475

#TimeUsernameProblemLanguageResultExecution timeMemory
1304475nguyenhuuhongquanRotating Lines (APIO25_rotate)C++20
Compilation error
0 ms0 KiB
#include <vector> using namespace std; #define int long long const int LimN = 1e5 + 5; void rotate(std::vector<int> t, int x); int a[LimN]; void energy(int n, std::vector<int> v){ if (v[0] <= 12500) rotate({0}, 12500 - v[0]); else rotate({0}, 50000 - (12500 - v[0])); rotate({1}, 50000 - v[1]); }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc6FXnz3.o: in function `energy(long long, std::vector<long long, std::allocator<long long> >)':
rotate.cpp:(.text+0x75): undefined reference to `rotate(std::vector<long long, std::allocator<long long> >, long long)'
/usr/bin/ld: rotate.cpp:(.text+0xd6): undefined reference to `rotate(std::vector<long long, std::allocator<long long> >, long long)'
/usr/bin/ld: rotate.cpp:(.text+0x155): undefined reference to `rotate(std::vector<long long, std::allocator<long long> >, long long)'
/usr/bin/ld: /tmp/ccS2IRhk.o: in function `main':
grader.cpp:(.text.startup+0x278): undefined reference to `energy(int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status