Borderou de evaluare (job #734619)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Maxd | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 oct. 2023 12:43:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:13: error: variable 'std::ifstream fin' has initializer but incomplete type
6 | ifstream fin("maxd.in");
| ^
main.cpp:7:14: error: variable 'std::ofstream fout' has initializer but incomplete type
7 | ofstream fout("maxd.out");
| ^
main.cpp: In function 'int nrdiv(int)':
main.cpp:45:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
45 | if (n > 1)
| ^~
main.cpp:47:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
47 | return nrd;
| ^~~~~~