Submission #28273

#TimeUsernameProblemLanguageResultExecution timeMemory
28273not good but never sad (#68)Bulb Game (FXCUP2_bulb)C++98
Compilation error
0 ms0 KiB
include "bulb.h" void Init(int N){} int MakeTurn(int M) { if (M % 2) return M+1; else M-1; }

Compilation message (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]
 }
 ^