Borderou de evaluare (job #3151442)
Utilizator | Data | 21 septembrie 2023 12:05:41 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:37:36: warning: for increment expression has no effect [-Wunused-value]
37 | for (int j=i*i; j+=i; j<=n; j++)
| ~^~~
main.cpp:37:39: error: expected ')' before ';' token
37 | for (int j=i*i; j+=i; j<=n; j++)
| ~ ^
| )
main.cpp:37:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
37 | for (int j=i*i; j+=i; j<=n; j++)
| ^~~
main.cpp:37:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
37 | for (int j=i*i; j+=i; j<=n; j++)
| ^
main.cpp:36:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
36 | if (!ciur[i])
| ^~
main.cpp:37:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
37 | for (int j=i*i; j+=i; j<=n; j++)
| ^
main.cpp:37:41: error: 'j' was not declared in this scope
main.cpp:42:13: error: 'crt' was not declared in this scope; did you mean 'cbrt'?
42 | crt++;
| ^~~
| cbrt
main.cpp:43:11: error: 'crt' was not declared in this scope; did you mean 'cbrt'?
43 | fout<<crt;
| ^~~
| cbrt
main.cpp:39:9: warning: unused variable 'sol' [-Wunused-variable]
39 | int sol=0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !