Borderou de evaluare (job #2042356)
Utilizator | Data | 18 octombrie 2017 15:31:30 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:17: error: ‘sd’ is not a namespace-name
using namespace sd;
^
user.cpp:3:19: error: expected namespace-name before ‘;’ token
using namespace sd;
^
user.cpp:5:1: error: ‘ifsream’ does not name a type
ifsream fin("cautbin.in");
^
user.cpp:6:1: error: ‘ofsream’ does not name a type
ofsream fout("cautbin.out");
^
user.cpp: In function ‘int CautBin1(int)’:
user.cpp:13:11: error: ‘s’ was not declared in this scope
while(s <= d)
^
user.cpp:11:9: warning: unused variable ‘st’ [-Wunused-variable]
int st = 1, d = n, mid, val = -1;
^
user.cpp: In function ‘int main()’:
user.cpp:74:5: error: ‘fin’ was not declared in this scope
fin >> n;
^
user.cpp:85:13: error: ‘fout’ was not declared in this scope
fout << CautBin1(y) << "\n";
^
user.cpp:87:13: error: ‘fout’ was not declared in this scope
fout << CautBin2(y) << "\n";
^
user.cpp:89:13: error: ‘fout’ was not declared in this scope
fout << CautBin3(y) << "\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !