Borderou de evaluare (job #2828973)
Utilizator | Data | 8 ianuarie 2022 10:36:47 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:9: error: expected constructor, destructor, or type conversion before '(' token
3 | ifstream("ciur.in");
| ^
main.cpp:4:9: error: expected constructor, destructor, or type conversion before '(' token
4 | ofstream("ciur.out");
| ^
main.cpp: In function 'int main()':
main.cpp:11:5: error: 'fin' was not declared in this scope
11 | fin>>x;
| ^~~
main.cpp:13:31: error: invalid types 'int[int]' for array subscript
13 | for(int i=1;i<=x;i++) ciur[i]=1;
| ^
main.cpp:14:13: error: 'i' was not declared in this scope
14 | if(ciur[i]==0)
| ^
main.cpp:14:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if(ciur[i]==0)
| ^~
main.cpp:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | for(int i=1;i<=x;i++)
| ^~~
main.cpp:17:20: error: invalid types 'int[int]' for array subscript
17 | if(ciur[i]==0) ciur++;}
| ^
main.cpp:20:5: error: 'fout' was not declared in this scope
20 | fout<<"ciur";
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !