Borderou de evaluare (job #3309125)
| Utilizator | Data | 1 septembrie 2025 16:23:18 | |
|---|---|---|---|
| Problema | Inv | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:11:11: error: redefinition of 'const int NMAX'
11 | const int NMAX = 1e5;
| ^~~~
main.cpp:6:11: note: 'const int NMAX' previously defined here
6 | const int NMAX = 1e5;
| ^~~~
main.cpp: In function 'void update(int, int)':
main.cpp:18:9: warning: statement has no effect [-Wunused-value]
18 | for(pos; pos<=n; pos+=(pos&-pos))
| ^~~
main.cpp: In function 'int calc(int)':
main.cpp:25:9: warning: statement has no effect [-Wunused-value]
25 | for(pos; pos>0; pos-=(pos&-pos))
| ^~~
main.cpp: In function 'int main()':
main.cpp:38:35: error: 'MOD' was not declared in this scope
38 | cnt=1ll*(cnt+(i-maimici))%MOD;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
