Borderou de evaluare (job #2192996)
Utilizator | Data | 8 aprilie 2018 09:20:22 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void cautarebinara()’:
user.cpp:9:5: error: ‘ifstream’ was not declared in this scope
ifstream in("cautbin.in");
^~~~~~~~
user.cpp:9:5: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from user.cpp:3:
/usr/include/c++/6/iosfwd:162:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^~~~~~~~
user.cpp:10:5: error: ‘ofstream’ was not declared in this scope
ofstream out("cautbin.out");
^~~~~~~~
user.cpp:10:5: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from user.cpp:3:
/usr/include/c++/6/iosfwd:165:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^~~~~~~~
user.cpp:11:5: error: ‘in’ was not declared in this scope
in>>n;
^~
user.cpp:54:13: error: ‘b’ was not declared in this scope
b=0;
^
user.cpp:57:22: error: ‘Left’ was not declared in this scope
mid=(Left+Right)/2;
^~~~
user.cpp:57:27: error: ‘Right’ was not declared in this scope
mid=(Left+Right)/2;
^~~~~
user.cpp:73:13: error: ‘out’ was not declared in this scope
out<<sol[k];
^~~
user.cpp:82:13: error: ‘b’ was not declared in this scope
b=0;
^
user.cpp:85:22: error: ‘Left’ was not declared in this scope
mid=(Left+Right)/2;
^~~~
user.cpp:85:27: error: ‘Right’ was not declared in this scope
mid=(Left+Right)/2;
^~~~~
user.cpp:101:13: error: ‘out’ was not declared in this scope
out<<sol[k];
^~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !