Borderou de evaluare (job #678764)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cicada | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 dec. 2022 14:43:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int phi(unsigned int)':
main.cpp:37:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
37 | for (int i = 2; i < n; i++)
| ~~^~~
main.cpp: In function 'int main()':
main.cpp:52:5: error: 'frepen' was not declared in this scope; did you mean 'freopen'?
52 | frepen("cicada.out", "w", stdout);
| ^~~~~~
| freopen
main.cpp:51:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | freopen("cicada.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~