제출 #28273

#제출 시각아이디문제언어결과실행 시간메모리
28273not good but never sad (#68)Bulb Game (FXCUP2_bulb)C++98
컴파일 에러
0 ms0 KiB
include "bulb.h" void Init(int N){} int MakeTurn(int M) { if (M % 2) return M+1; else M-1; }

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

bulb.cpp:1:1: error: 'include' does not name a type
 include "bulb.h"
 ^
bulb.cpp: In function 'int MakeTurn(int)':
bulb.cpp:5:8: warning: statement has no effect [-Wunused-value]
  else M-1;
        ^
bulb.cpp:6:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^