Borderou de evaluare (job #1215858)
| Utilizator | Data | 2 august 2014 15:36:25 | |
|---|---|---|---|
| Problema | A+B | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:1: error: ‘ofstream’ was not declared in this scope
ofstream output;
^
user.cpp:7:1: 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:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:7:10: error: expected ‘;’ before ‘output’
ofstream output;
^
user.cpp:8:1: error: ‘ifstream’ was not declared in this scope
ifstream input;
^
user.cpp:8:1: 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:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:8:10: error: expected ‘;’ before ‘input’
ifstream input;
^
user.cpp:9:1: error: ‘input’ was not declared in this scope
input.open("adunare.in");
^
user.cpp:10:1: error: ‘output’ was not declared in this scope
output.open ("adunare.out");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
