Borderou de evaluare (job #735930)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Arme (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 oct. 2023 15:51:03 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:21: error: expected ']' before ';' token
3 | #define MAXN 2000000;
| ^
main.cpp:7:7: note: in expansion of macro 'MAXN'
7 | int v[MAXN], b[MAXN];
| ^~~~
main.cpp:7:11: error: expected unqualified-id before ']' token
7 | int v[MAXN], b[MAXN];
| ^
main.cpp:7:20: error: expected unqualified-id before ']' token
7 | int v[MAXN], b[MAXN];
| ^
main.cpp: In function 'int main()':
main.cpp:12:22: error: 'v' was not declared in this scope
12 | cin>>v[i];
| ^
main.cpp:15:22: error: 'b' was not declared in this scope
15 | cin>>b[i];
| ^
main.cpp:17:14: error: 'v' was not declared in this scope
17 | sort(v+1, v+n);
| ^
main.cpp:18:14: error: 'b' was not declared in this scope
18 | sort(b+1, b+n);
| ^