Borderou de evaluare (job #3259937)
Utilizator | Data | 28 noiembrie 2024 15:36:18 | |
---|---|---|---|
Problema | Schi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void update(int, int, int, int, int)':
main.cpp:17:12: error: 'nod' was not declared in this scope; did you mean 'node'?
17 | st[nod]+=val;
| ^~~
| node
main.cpp:24:38: error: 'x' was not declared in this scope
24 | update(2*node, st, mid, poz, x);
| ^
main.cpp:28:42: error: 'x' was not declared in this scope
28 | update(2*node+1, mid+1, dr, poz, x);
| ^
main.cpp:31:7: error: invalid types 'int[int]' for array subscript
31 | st[node]=st[2*node]+st[2*node+1];
| ^
main.cpp:31:16: error: invalid types 'int[int]' for array subscript
31 | st[node]=st[2*node]+st[2*node+1];
| ^
main.cpp:31:27: error: invalid types 'int[int]' for array subscript
31 | st[node]=st[2*node]+st[2*node+1];
| ^
main.cpp: In function 'int query(int, int, int, int)':
main.cpp:39:10: error: invalid types 'int[int]' for array subscript
39 | if(st[2*node]<val)
| ^
main.cpp:40:49: error: invalid types 'int[int]' for array subscript
40 | return query(2*node+1, mid+1, dr, val-st[2*node]);
| ^
main.cpp: In function 'int main()':
main.cpp:49:10: error: 'n' was not declared in this scope; did you mean 'yn'?
49 | cin>>n;
| ^
| yn
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !