Borderou de evaluare (job #619451)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Factor (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 dec. 2021 18:37:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int factormax(int)':
main.cpp:37:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
37 | int main()
| ^~
main.cpp:37:9: note: remove parentheses to default-initialize a variable
37 | int main()
| ^~
| --
main.cpp:37:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:38:1: error: a function-definition is not allowed here before '{' token
38 | {
| ^
main.cpp:49:2: error: expected '}' at end of input
49 | }
| ^
main.cpp:11:1: note: to match this '{'
11 | {
| ^
main.cpp:49:2: warning: control reaches end of non-void function [-Wreturn-type]
49 | }
| ^