Borderou de evaluare (job #548328)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Nebuni (baraj gimnaziu) | Compilator | cpp |
Rundă | Baraj gimnaziu | Status | evaluat |
Dată | 24 mar. 2020 17:54:03 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:41:17: error: ISO C++ forbids declaration of ‘abs’ with no type [-fpermissive]
user.cpp: In function ‘int abs(int)’:
user.cpp:41:8: error: redefinition of ‘int abs(int)’
user.cpp:14:12: error: ‘int abs(int)’ previously defined here
user.cpp: In function ‘int main()’:
user.cpp:46:28: error: redeclaration of ‘int inter’
user.cpp:46:17: error: ‘int inter’ previously declared here
user.cpp:51:18: error: cannot convert ‘std::pair<int, int>’ to ‘int’ for argument ‘1’ to ‘std::pair<int, int> conv(int, std::pair<int, int>)’
user.cpp:58:13: error: expected ‘)’ before ‘{’ token
user.cpp:65:3: error: expected primary-expression before ‘}’ token
user.cpp:65:3: error: expected ‘;’ before ‘}’ token
user.cpp:56:7: warning: unused variable ‘smi’ [-Wunused-variable]
user.cpp:56:13: warning: unused variable ‘sme’ [-Wunused-variable]