Borderou de evaluare (job #751340)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Comune (clasa a 5-a) | Compilator | cpp-32 |
Rundă | vs_7_8_9_dec | Status | evaluat |
Dată | 16 dec. 2023 10:40:01 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'ofstream'
5 | ofstream fout ("comune.out")
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:15:9: error: 'a' was not declared in this scope
15 | a[++n] = x % 10;
| ^
main.cpp:15:13: error: 'n' was not declared in this scope
15 | a[++n] = x % 10;
| ^
main.cpp:23:22: error: 'n' was not declared in this scope
23 | for (i = 1; i <= n; i++)
| ^
main.cpp:25:13: error: 'a' was not declared in this scope
25 | if (a[i] == b[j])
| ^
main.cpp:27:28: error: expected ';' before 'for'
27 | sort (c + 1, c + k + 1)
| ^
| ;
28 | for (i = 1; i <= n; i++)
| ~~~
main.cpp:28:22: error: 'n' was not declared in this scope
28 | for (i = 1; i <= n; i++)
| ^
main.cpp:28:28: error: expected ';' before ')' token
28 | for (i = 1; i <= n; i++)
| ^
| ;
main.cpp:11:17: warning: unused variable 'cnt' [-Wunused-variable]
11 | int j,x,y,i,cnt;
| ^~~