Borderou de evaluare (job #1726196)
Utilizator | Data | 7 iulie 2016 14:54:02 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:11: error: ‘::main’ must return ‘int’
void main()
^
user.cpp: In function ‘int main()’:
user.cpp:7:5: error: ‘ifstream’ was not declared in this scope
ifstream f("cautbin.in");
^
user.cpp:7:5: 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:7:14: error: expected ‘;’ before ‘f’
ifstream f("cautbin.in");
^
user.cpp:8:5: error: ‘ofstream’ was not declared in this scope
ofstream g("cautbin.out");
^
user.cpp:8:5: 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:8:14: error: expected ‘;’ before ‘g’
ofstream g("cautbin.out");
^
user.cpp:9:5: error: ‘f’ was not declared in this scope
f>>n;
^
user.cpp:47:21: error: ‘g’ was not declared in this scope
g<<m-1<<endl;
^
user.cpp:47:29: error: ‘endl’ was not declared in this scope
g<<m-1<<endl;
^
user.cpp:47:29: 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:50:21: error: ‘g’ was not declared in this scope
g<<-1<<endl;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !