Borderou de evaluare (job #3123199)
Utilizator | Data | 22 aprilie 2023 14:07:15 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'bitset' does not name a type
9 | bitset <N> erat;
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:18:12: error: 'erat' was not declared in this scope
18 | if(erat[i])
| ^~~~
main.cpp:24:13: error: 'erat' was not declared in this scope
24 | erat[j] = 1;
| ^~~~
main.cpp:27:17: error: 'erat' was not declared in this scope
27 | cout << n - erat.count();
| ^~~~
main.cpp:13:9: warning: unused variable 'cnt' [-Wunused-variable]
13 | int cnt = 0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !