Borderou de evaluare (job #1772076)
Utilizator | Data | 6 octombrie 2016 14:49:40 | |
---|---|---|---|
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:11: error: ‘in’ was not declared in this scope
ifstream(in, "ciur.in");
^
user.cpp:11:24: error: ‘ifstream’ was not declared in this scope
ifstream(in, "ciur.in");
^
user.cpp:11:24: 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:12:11: error: ‘out’ was not declared in this scope
ofstream(out, "ciur.out");
^
user.cpp:12:26: error: ‘ofstream’ was not declared in this scope
ofstream(out, "ciur.out");
^
user.cpp:12:26: 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;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !