Borderou de evaluare (job #548891)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Hobbit (clasa a 5-a) | Compilator | cpp |
Rundă | lasm_26_03_2020_11 | Status | evaluat |
Dată | 26 mar. 2020 13:55:13 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:16: error: ‘int y1’ redeclared as different kind of symbol
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
user.cpp: In function ‘int main()’:
user.cpp:23:5: error: assignment of function ‘double y1(double)’
user.cpp:23:5: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:24:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:26:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:27:19: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
user.cpp:29:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:29:19: error: assignment of function ‘double y1(double)’
user.cpp:29:19: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment