Borderou de evaluare (job #2393845)
Utilizator | Data | 1 aprilie 2019 09:41: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 cautbin(int)':
main.cpp:13:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(v[mid])
^
main.cpp: In function 'int main()':
main.cpp:29:16: error: incompatible types in assignment of 'int*' to 'int [100100]'
v=new int[n];
^
main.cpp:35:24: error: 'I' was not declared in this scope
for(int i=1;i<=m;++I);
^
main.cpp:35:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=m;++I);
^~~
main.cpp:36:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
{
^
main.cpp:38:15: error: expected primary-expression before '%' token
scanf(%d,%d, t,val);
^
main.cpp:38:16: error: 'd' was not declared in this scope
scanf(%d,%d, t,val);
^
main.cpp:38:18: error: expected primary-expression before '%' token
scanf(%d,%d, t,val);
^
main.cpp:38:24: error: 'val' was not declared in this scope
scanf(%d,%d, t,val);
^~~
main.cpp:42:17: error: 'rez' was not declared in this scope
rez = cautbin(val);
^~~
main.cpp:50:31: error: 'vla' was not declared in this scope
rez = cautbin(vla-1);
^~~
main.cpp:58:18: error: 'rez' was not declared in this scope
return ++rez;
^~~
main.cpp:28:9: warning: unused variable 'x' [-Wunused-variable]
int x, y, i,t;
^
main.cpp:28:12: warning: unused variable 'y' [-Wunused-variable]
int x, y, i,t;
^
main.cpp:60:1: error: expected '}' at end of input
}
^
main.cpp:31:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !