Borderou de evaluare (job #3361117)
| Utilizator | Data | 20 iulie 2026 16:04:33 | |
|---|---|---|---|
| Problema | Ciurul lui Eratosthenes | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream fin("ciur.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream fout("ciur.out");
| ^~~~~~~~
main.cpp: In function 'int ciure(int)':
main.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
24 | }
| ^
main.cpp: In function 'int main()':
main.cpp:29:5: error: 'fin' was not declared in this scope
29 | fin >> nr;
| ^~~
main.cpp:29:12: error: 'nr' was not declared in this scope; did you mean 'n'?
29 | fin >> nr;
| ^~
| n
main.cpp:31:5: error: 'fout' was not declared in this scope
31 | fout<<y;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
