Borderou de evaluare (job #3204954)
Utilizator | Data | 18 februarie 2024 13:29:56 | |
---|---|---|---|
Problema | Abx | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int binarysearch(std::vector<long long int>&, long long int)':
main.cpp:16:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | if(p+i<v.size() && v[p+i]<=val)
| ~~~^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:44:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if(poz+1<powers.size() && powers[poz+1]-xi<xi-power)
| ~~~~~^~~~~~~~~~~~~~
main.cpp:47:20: error: 'sqrt' was not declared in this scope
47 | powerbase2=sqrt(xi);
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !