Borderou de evaluare (job #668519)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Inversiuni | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 oct. 2022 22:01:15 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected initializer before 'int'
5 | int n;
| ^~~
main.cpp: In function 'long long int query(int)':
main.cpp:9:17: error: 'v' was not declared in this scope
9 | suma += v[i];
| ^
main.cpp: In function 'void update(int)':
main.cpp:14:23: error: 'n' was not declared in this scope
14 | for(int i = p; i<=n; i+=(i&-i)){
| ^
main.cpp:15:9: error: 'v' was not declared in this scope
15 | v[i]++;
| ^
main.cpp: In function 'int main()':
main.cpp:23:12: error: 'n' was not declared in this scope
23 | cin >> n;
| ^
main.cpp:22:11: warning: unused variable 'nicee' [-Wunused-variable]
22 | int x,nicee;
| ^~~~~