Submission #262905

# Submission time Handle Problem Language Result Execution time Memory
262905 2020-08-13T10:50:14 Z dolphingarlic 일차 함수 (tutorial4) C++14
Compilation error
0 ms 0 KB
solve(){int a=f(0);Report(f(1)-a,a);}

Compilation message

tutorial4.cpp:1:7: error: ISO C++ forbids declaration of 'solve' with no type [-fpermissive]
    1 | solve(){int a=f(0);Report(f(1)-a,a);}
      |       ^
tutorial4.cpp: In function 'int solve()':
tutorial4.cpp:1:15: error: 'f' was not declared in this scope
    1 | solve(){int a=f(0);Report(f(1)-a,a);}
      |               ^
tutorial4.cpp:1:20: error: 'Report' was not declared in this scope
    1 | solve(){int a=f(0);Report(f(1)-a,a);}
      |                    ^~~~~~
tutorial4.cpp:1:37: warning: no return statement in function returning non-void [-Wreturn-type]
    1 | solve(){int a=f(0);Report(f(1)-a,a);}
      |                                     ^