Borderou de evaluare (job #767439)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Flota | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 mar. 2024 05:14:06 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:65:34: error: expected ')' before ';' token
65 | while (fscanf (fin, "%d", &x);)
| ~ ^
| )
main.cpp:65:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
65 | while (fscanf (fin, "%d", &x);)
| ^~~~~
main.cpp:65:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
65 | while (fscanf (fin, "%d", &x);)
| ^
main.cpp:65:35: error: expected primary-expression before ')' token
main.cpp: In function 'void citire()':
main.cpp:26:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | fscanf(fin, "%d %d %d", &n, &m, &k);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:31:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | fscanf(fin, "%hu %hu %hu", &x, &y, &z);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~