Borderou de evaluare (job #1484408)
| Utilizator | Data | 11 septembrie 2015 09:12:17 | |
|---|---|---|---|
| Problema | Next | 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:17:2: error: ‘ifstream’ was not declared in this scope
{ifstream f("next.in");
^
user.cpp:17: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:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:17:11: error: expected ‘;’ before ‘f’
{ifstream f("next.in");
^
user.cpp:18:1: error: ‘ofstream’ was not declared in this scope
ofstream g("next.out");
^
user.cpp:18: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:18:10: error: expected ‘;’ before ‘g’
ofstream g("next.out");
^
user.cpp:19:1: error: ‘f’ was not declared in this scope
f>>s;
^
user.cpp:21:11: error: ‘strlen’ was not declared in this scope
n=strlen(s);
^
user.cpp:36:9: error: ‘g’ was not declared in this scope
g<<e[i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
