Borderou de evaluare (job #3337720)
| Utilizator | Data | 29 ianuarie 2026 16:50:29 | |
|---|---|---|---|
| Problema | Numere Prime | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:2:22: error: expected ')' before ';' token
2 | #define LIMIT 1500001;
| ^
main.cpp:8:20: note: in expansion of macro 'LIMIT'
8 | vector <bool> ciur(LIMIT, true);
| ^~~~~
main.cpp:8:19: note: to match this '('
8 | vector <bool> ciur(LIMIT, true);
| ^
main.cpp:8:25: error: expected unqualified-id before ',' token
8 | vector <bool> ciur(LIMIT, true);
| ^
main.cpp:8:27: error: expected unqualified-id before 'true'
8 | vector <bool> ciur(LIMIT, true);
| ^~~~
main.cpp: In function 'int main()':
main.cpp:20:35: error: expected primary-expression before ';' token
20 | for (int i = 2; i * i <= LIMIT; i++){
| ^
main.cpp:20:35: error: expected ')' before ';' token
20 | for (int i = 2; i * i <= LIMIT; i++){
| ~ ^
main.cpp:20:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
20 | for (int i = 2; i * i <= LIMIT; i++){
| ^~~
main.cpp:20:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
20 | for (int i = 2; i * i <= LIMIT; i++){
| ^
main.cpp:20:37: error: 'i' was not declared in this scope
main.cpp:29:30: error: expected primary-expression before ';' token
29 | for (int i = 2; i < LIMIT; i++) {
| ^
main.cpp:29:30: error: expected ')' before ';' token
29 | for (int i = 2; i < LIMIT; i++) {
| ~ ^
main.cpp:29:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
29 | for (int i = 2; i < LIMIT; i++) {
| ^~~
main.cpp:29:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
29 | for (int i = 2; i < LIMIT; i++) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
