Borderou de evaluare (job #787291)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Lego (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 sept. 2024 17:53:50 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:34: error: 'L' was not declared in this scope
10 | for (int j = 2 * i; j <= L; j += i) {
| ^
main.cpp:7:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | fscanf(fin, "%d", &l);
| ~~~~~~^~~~~~~~~~~~~~~