Submission #28274

# Submission time Handle Problem Language Result Execution time Memory
28274 2017-07-16T04:19:52 Z not good but never sad(#1132, kriii) Bulb Game (FXCUP2_bulb) C++
0 / 1
0 ms 1128 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: In function 'int MakeTurn(int)':
bulb.cpp:7:8: warning: statement has no effect [-Wunused-value]
  else M-1;
        ^
bulb.cpp:8:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1128 KB Output is correct
2 Incorrect 0 ms 1128 KB Output isn't correct
3 Halted 0 ms 0 KB -