Submission #1080330

#TimeUsernameProblemLanguageResultExecution timeMemory
1080330kwongwengCity (JOI17_city)C++17
Compilation error
0 ms0 KiB
#include "Device.h" #include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef long long ll; #define FOR(i,a,b) for(int i=a; i<b; i++) #define ROF(i,a,b) for(int i=a; i>=b; i--) #define pb push_back const ll N = 250000; void InitDevice() { } int Answer(long long S, long long T) { //cout<<S/N<<" "<<S%N<<" "<<T/N<<" "<<T%N<<"\n"; if (S<T){ if (T/N < S/N + S%N) return 1; return 2; } if (S/N < T/N + T%N) return 0; return 2; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccOcit9D.o: in function `main':
grader_encoder.cpp:(.text.startup+0xd1): undefined reference to `Encode(int, int*, int*)'
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/ccWERrWr.o: in function `main':
grader_device.cpp:(.text.startup+0xf8): undefined reference to `InitDevice()'
/usr/bin/ld: grader_device.cpp:(.text.startup+0x19b): undefined reference to `Answer(long long, long long)'
collect2: error: ld returned 1 exit status