Borderou de evaluare (job #3273044)
Utilizator | Data | 1 februarie 2025 09:21:37 | |
---|---|---|---|
Problema | Rest | Status | done |
Runda | cex_8 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:1: error: expected initializer before 'int'
16 | int n,b,p,m;
| ^~~
main.cpp: In function 'void build(int, int, int)':
main.cpp:32:33: error: 'p' was not declared in this scope
32 | t[nod]=(t[nod*2]*bp[dr-mid]%p+t[2*nod+1])%p;
| ^
main.cpp: In function 'void update(int, int, int, int, int)':
main.cpp:49:35: error: 'p' was not declared in this scope
49 | t[nod]=((t[2*nod]*bp[dr-mid])%p+t[2*nod+1])%p;
| ^
main.cpp: In function 'void query(int, int, int, int, int)':
main.cpp:56:9: error: 'rez' was not declared in this scope
56 | rez=(rez+t[nod]*bp[q-dr]%p)%p;
| ^~~
main.cpp:56:34: error: 'p' was not declared in this scope; did you mean 'pp'?
56 | rez=(rez+t[nod]*bp[q-dr]%p)%p;
| ^
| pp
main.cpp: In function 'int main()':
main.cpp:78:10: error: 'n' was not declared in this scope
78 | f >> n >> b >> p;
| ^
main.cpp:78:15: error: 'b' was not declared in this scope
78 | f >> n >> b >> p;
| ^
main.cpp:78:20: error: 'p' was not declared in this scope
78 | f >> n >> b >> p;
| ^
main.cpp:86:10: error: 'm' was not declared in this scope
86 | f >> m;
| ^
main.cpp:94:13: error: 'rez' was not declared in this scope
94 | rez=0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !