Submission #28273

# Submission time Handle Problem Language Result Execution time Memory
28273 2017-07-16T04:19:39 Z not good but never sad(#1132, kriii) Bulb Game (FXCUP2_bulb) C++
Compilation error
0 ms 0 KB
include "bulb.h"
void Init(int N){}
int MakeTurn(int M) {
	if (M % 2) return M+1;
	else M-1;
}

Compilation message

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]
 }
 ^