Borderou de evaluare (job #1772079)
Utilizator | Data | 6 octombrie 2016 14:50:29 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:2: error: ‘ifstream’ was not declared in this scope
ifstream in("ciur.in");
^
user.cpp:11:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:11:11: error: expected ‘;’ before ‘in’
ifstream in("ciur.in");
^
user.cpp:12:2: error: ‘ofstream’ was not declared in this scope
ofstream out("ciur.out");
^
user.cpp:12:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:2:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:12:11: error: expected ‘;’ before ‘out’
ofstream out("ciur.out");
^
user.cpp:14:2: error: ‘in’ was not declared in this scope
in >> n;
^
user.cpp:21:2: error: ‘out’ was not declared in this scope
out << nr << '\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !