Submission #194114

#TimeUsernameProblemLanguageResultExecution timeMemory
194114juanmartinez111Mini tetris (IOI16_tetris)C++14
7 / 100
6 ms376 KiB
#include "tetris.h" void init(int n) { } int position; int rotation; int figura,cnt=1; void new_figure(int figure_type) { figura=figure_type; cnt++; } int get_position() { if(figura==2){ if(cnt%2==0)return 0; return 2; } if(figura==1)return 0; } int get_rotation() { if(figura==2){ if(cnt%2==0)return 0; return 1; } if(figura==1)return 0; }

Compilation message (stderr)

tetris.cpp: In function 'int get_position()':
tetris.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
tetris.cpp: In function 'int get_rotation()':
tetris.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...