Submission #5094

# Submission time Handle Problem Language Result Execution time Memory
5094 2014-02-03T14:01:06 Z jspark19990205 일차 함수 (tutorial4) C++
Compilation error
0 ms 0 KB
#include<grader.h>
 
int solve()
{
  int a,b;
  int b = f(0);
  int a = f(1)-b;
   
  Report("a,b");
}

Compilation message

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:9:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
tutorial4.cpp:9:15: error: too few arguments to function 'void Report(int, int)'
grader.h:3:6: note: declared here
tutorial4.cpp:5:7: warning: unused variable 'a' [-Wunused-variable]
tutorial4.cpp:10:1: warning: no return statement in function returning non-void [-Wreturn-type]