Borderou de evaluare (job #983783)
Utilizator | Data | 12 august 2013 18:14:56 | |
---|---|---|---|
Problema | Heavy metal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cauta_bin_un_indice_bun(int, int)’:
user.cpp:25:42: error: invalid conversion from ‘unsigned int*’ to ‘int*’ [-fpermissive]
int *p = upper_bound(A+1, A + m+1, nr);
^
user.cpp:26:14: error: invalid operands of types ‘int*’ and ‘unsigned int [100005]’ to binary ‘operator-’
return p-A-1;
^
user.cpp: In function ‘int main()’:
user.cpp:30:13: warning: unused variable ‘z’ [-Wunused-variable]
int i,t,z,ind,costc;
^
user.cpp:30:19: warning: unused variable ‘costc’ [-Wunused-variable]
int i,t,z,ind,costc;
^
user.cpp: In function ‘int cauta_bin_un_indice_bun(int, int)’:
user.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !