Submission #5096

#TimeUsernameProblemLanguageResultExecution timeMemory
5096jspark19990205일차 함수 (tutorial4)C++98
Compilation error
0 ms0 KiB
#include<grader.h> int solve() { int a,b; int b = f(0); int a = f(1)-b; Report(a,b); }

Compilation message (stderr)

tutorial4.cpp: In function 'int solve()':
tutorial4.cpp:6:7: error: redeclaration of 'int b'
tutorial4.cpp:5:9: error: 'int b' previously declared here
tutorial4.cpp:7:7: error: redeclaration of 'int a'
tutorial4.cpp:5:7: error: 'int a' previously declared here
tutorial4.cpp:10:1: warning: no return statement in function returning non-void [-Wreturn-type]