Borderou de evaluare (job #1524785)
Utilizator | Data | 14 noiembrie 2015 14:01:12 | |
---|---|---|---|
Problema | Sudest | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: ‘ofstream’ does not name a type
ofstream g(Fout);
^
user.cpp: In function ‘void read_data()’:
user.cpp:15:3: error: ‘ifstream’ was not declared in this scope
ifstream f(Fin);
^
user.cpp:15:3: 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:15:12: error: expected ‘;’ before ‘f’
ifstream f(Fin);
^
user.cpp:16:3: error: ‘f’ was not declared in this scope
f>>N;
^
user.cpp: In function ‘void drum(int, int, int)’:
user.cpp:42:20: error: ‘g’ was not declared in this scope
if(x==0 && y==0) g<<1<<" "<<1<<'\n';
^
user.cpp:50:13: error: ‘g’ was not declared in this scope
g<<x+1<<" "<<y+1<<endl;
^
user.cpp:50:31: error: ‘endl’ was not declared in this scope
g<<x+1<<" "<<y+1<<endl;
^
user.cpp:50:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/istream:39:0,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^
user.cpp:57:13: error: ‘g’ was not declared in this scope
g<<x+1<<" "<<y+1<<endl;}
^
user.cpp:57:31: error: ‘endl’ was not declared in this scope
g<<x+1<<" "<<y+1<<endl;}
^
user.cpp:57:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/istream:39:0,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !