Borderou de evaluare (job #1486630)
Utilizator | Data | 15 septembrie 2015 11:46:32 | |
---|---|---|---|
Problema | Swap | 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:23:2: error: ‘ifstream’ was not declared in this scope
{ifstream f("swap.in");
^
user.cpp:23: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:23:11: error: expected ‘;’ before ‘f’
{ifstream f("swap.in");
^
user.cpp:24:1: error: ‘ofstream’ was not declared in this scope
ofstream g("swap.out");
^
user.cpp:24: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:24:10: error: expected ‘;’ before ‘g’
ofstream g("swap.out");
^
user.cpp:25:1: error: ‘f’ was not declared in this scope
f>>s1;
^
user.cpp:27:12: error: ‘strlen’ was not declared in this scope
n=strlen(s1);
^
user.cpp:41:26: error: ‘g’ was not declared in this scope
merge(r,0,n-1,&l),g<<l;
^
user.cpp:43:8: error: ‘g’ was not declared in this scope
g<<"-1";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !