제출 #1080628

#제출 시각아이디문제언어결과실행 시간메모리
1080628thelegendary08City (JOI17_city)C++14
컴파일 에러
0 ms0 KiB
#include "Device.h" #define ll long long void InitDevice() { } int Answer(long long S, long long T) { ll szs, cs, szt, ct; //cout<<S<<' '<<T<<'\n'; if(S >= 250000ll * 125000ll){ S -= 250000ll * 125000ll; szs = S % 250000ll; cs = S / 250000ll; } else{ szs = S % 125000ll; cs = S / 125000ll; } if(T >= 250000ll * 125000ll){ T -= 250000ll * 125000ll; szt = T % 250000ll; ct = T / 250000ll; } else{ szt = T % 125000ll; ct = T/ 125000ll; } //cout<<cs<<' '<<ct<<' '<<szs<<' '<<szt<<'\n'; if(cs + szs > ct && ct > cs)return 1; if(ct + szt > cs && cs > ct)return 0; return 2; }
#include "Device.h" #define ll long long void InitDevice() { } int Answer(long long S, long long T) { ll szs, cs, szt, ct; //cout<<S<<' '<<T<<'\n'; if(S >= 250000ll * 125000ll){ S -= 250000ll * 125000ll; szs = S % 250000ll; cs = S / 250000ll; } else{ szs = S % 125000ll; cs = S / 125000ll; } if(T >= 250000ll * 125000ll){ T -= 250000ll * 125000ll; szt = T % 250000ll; ct = T / 250000ll; } else{ szt = T % 125000ll; ct = T/ 125000ll; } //cout<<cs<<' '<<ct<<' '<<szs<<' '<<szt<<'\n'; if(cs + szs > ct && ct > cs)return 1; if(ct + szt > cs && cs > ct)return 0; return 2; }

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

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