Borderou de evaluare (job #2643132)
Utilizator | Data | 18 august 2020 19:56:19 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:7: error: expected nested-name-specifier before 'namesstace'
using namesstace std;
^~~~~~~~~~
main.cpp:6:1: error: 'ifstream' does not name a type
ifstream f("in.txt");
^~~~~~~~
main.cpp:7:1: error: 'ofstream' does not name a type
ofstream g("out.txt");
^~~~~~~~
main.cpp: In function 'void cautare()':
main.cpp:15:16: error: 's' was not declared in this scope
mij = (s + d) / 2;
^
main.cpp:15:20: error: 'd' was not declared in this scope
mij = (s + d) / 2;
^
main.cpp:16:13: error: 'a' was not declared in this scope
if (a[mij] == x)
^
main.cpp: In function 'int main()':
main.cpp:27:5: error: 'f' was not declared in this scope
f >> n;
^
main.cpp:29:14: error: 'a' was not declared in this scope
f >> a[i];
^
main.cpp:34:22: error: too many arguments to function 'void cautare()'
cautare(x);
^
main.cpp:11:6: note: declared here
void cautare() {
^~~~~~~
main.cpp:35:17: error: 'a' was not declared in this scope
if (a[mij] == x) {
^
main.cpp:38:17: error: 'g' was not declared in this scope
g << mij << '\n';
^
main.cpp:40:17: error: 'g' was not declared in this scope
g << -1 << '\n';
^
main.cpp:44:22: error: too many arguments to function 'void cautare()'
cautare(x);
^
main.cpp:11:6: note: declared here
void cautare() {
^~~~~~~
main.cpp:45:17: error: 'a' was not declared in this scope
if (a[mij] == x) {
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !