Borderou de evaluare (job #1615407)
Utilizator | Data | 26 februarie 2016 15:53:20 | |
---|---|---|---|
Problema | Lant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:23:11: error: ‘::main’ must return ‘int’
void main()
^
user.cpp: In function ‘int main()’:
user.cpp:26:1: error: ‘ofstream’ was not declared in this scope
ofstream fout(OutFile);
^
user.cpp:26: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:26:10: error: expected ‘;’ before ‘fout’
ofstream fout(OutFile);
^
user.cpp:30:1: error: ‘fout’ was not declared in this scope
fout<<nr[0]<<endl;
^
user.cpp:30:14: error: ‘endl’ was not declared in this scope
fout<<nr[0]<<endl;
^
user.cpp:30:14: 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:25:5: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
user.cpp: In function ‘void Citire()’:
user.cpp:45:2: error: ‘ifstream’ was not declared in this scope
{ifstream fin(InFile);
^
user.cpp:45: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:45:11: error: expected ‘;’ before ‘fin’
{ifstream fin(InFile);
^
user.cpp:47:2: error: ‘fin’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !