Borderou de evaluare (job #1442367)
Utilizator | Data | 25 mai 2015 10:54:14 | |
---|---|---|---|
Problema | Coco Chanel | 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:14:2: error: ‘ifstream’ was not declared in this scope
ifstream f1("coco.in");
^
user.cpp:14:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:14:11: error: expected ‘;’ before ‘f1’
ifstream f1("coco.in");
^
user.cpp:15:2: error: ‘ofstream’ was not declared in this scope
ofstream f2("coco.out");
^
user.cpp:15:2: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:15:11: error: expected ‘;’ before ‘f2’
ofstream f2("coco.out");
^
user.cpp:18:2: error: ‘f1’ was not declared in this scope
f1 >> n >> m;
^
user.cpp:44:3: error: ‘f2’ was not declared in this scope
f2 << nr << endl;
^
user.cpp:44:15: error: ‘endl’ was not declared in this scope
f2 << nr << endl;
^
user.cpp:44:15: note: suggested alternative:
In file included from /usr/include/c++/4.8/iostream:39:0,
from user.cpp:1:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp:17:14: warning: unused variable ‘aux’ [-Wunused-variable]
int *c, *g, aux;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !