Borderou de evaluare (job #2335814)
Utilizator | Data | 4 februarie 2019 15:38:19 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int BS1(int*, int, int, int)':
main.cpp:13:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(v[mid]==x)
^~~~~
main.cpp:15:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
return mid-1;}
^~~~~~
main.cpp: At global scope:
main.cpp:33:31: error: ISO C++ forbids declaration of 'BS3' with no type [-fpermissive]
BS3(int v[],int l,int r, int x){
^
main.cpp: In function 'int BS3(int*, int, int, int)':
main.cpp:38:6: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(v[mid]==x)
^~~~~
main.cpp:40:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
return mid+1;
^~~~~~
main.cpp: In function 'int BS2(int*, int, int, int)':
main.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int BS3(int*, int, int, int)':
main.cpp:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !