제출 #1031082

#제출 시각아이디문제언어결과실행 시간메모리
1031082s_treeCity (JOI17_city)C++17
컴파일 에러
0 ms0 KiB
#include "Device.h" #include <bits/stdc++.h> using namespace std; const long long N = 250'010; vector<long long> nms; void InitDevice() { long double d = 1.05; long double val = d; while(val <= 3*N) { if(!nms.size() or nms.back()!=(int)val) nms.push_back(val); val*=d; } } int Answer(long long S, long long T) { // cout << nms.size() << " " << (S/(3*N)) << endl; // cout << nms.size() << " " << (T/(3*N)) << endl; long long fs = S/(3*N); long long ss = S%(3*N); long long ft = T/(3*N); long long st = T%(3*N); // cout << fs << " " << ss << endl; // cout << ft << " " << st << endl; // cout << endl; if(fs <= ft and st <= ss)return 1; if(ft <= fs and ss <= st)return 0; return 2; }

컴파일 시 표준 에러 (stderr) 메시지

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