제출 #71773

#제출 시각아이디문제언어결과실행 시간메모리
71773내일_개학이다_ㅠㅠ (#119)일하는 개미 (FXCUP3_ant)C++98
컴파일 에러
0 ms0 KiB
#include "ant.h" int FindK(){ int rett = DeliverCount(99999999); int ss = 1, ee = 99999999, ans = 99999999; ss = 99999999 / (rett+1) + 1; ee = 99999999 / rett; while(ss <= ee){ int mid = (ss+ee)/2; int ret = DeliverCount(mid); if(ret > 0){ ans = mid; mid / ret }else{ ss = mid + 1; } } return ans; }

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

ant.cpp: In function 'int FindK()':
ant.cpp:14:9: error: expected ';' before '}' token
         }else{
         ^
ant.cpp:13:17: warning: statement has no effect [-Wunused-value]
             mid / ret
             ~~~~^~~~~