Borderou de evaluare (job #782248)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Factor (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Nerdvana SummerCamps - Ed2 - 2 | Status | evaluat |
Dată | 11 iul. 2024 15:35:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:5: error: expected initializer before 'int'
9 | int n, e, d, maxe, maxd;
| ^~~
main.cpp:10:12: error: 'n' was not declared in this scope
10 | cin >> n;
| ^
main.cpp:19:21: error: 'maxe' was not declared in this scope
19 | if (e > maxe) {
| ^~~~
main.cpp:21:17: error: 'maxd' was not declared in this scope
21 | maxd = d;
| ^~~~
main.cpp:23:25: error: 'maxd' was not declared in this scope
23 | if (d > maxd) {
| ^~~~
main.cpp:32:13: error: 'maxd' was not declared in this scope
32 | int f = maxd % 10, a = 0;
| ^~~~
main.cpp:35:13: error: 'a' was not declared in this scope
35 | a++;
| ^
main.cpp:39:13: error: 'a' was not declared in this scope
39 | cout << a;
| ^
main.cpp:8:11: warning: unused variable 'fin' [-Wunused-variable]
8 | FILE *fin, *fout
| ^~~