Borderou de evaluare (job #3267986)
Utilizator | Data | 13 ianuarie 2025 12:47:46 | |
---|---|---|---|
Problema | Arbori indexati binar | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Fenwick::build(std::vector<long long int>&)':
main.cpp:111:37: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | if(i+jump(i)<fw.size()) fw[i+jump(i)] += fw[i];
| ~~~~~~~~~^~~~~~~~~~
main.cpp: In member function 'void Fenwick::update(long long int, long long int)':
main.cpp:117:25: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
117 | for(;pos<fw.size();pos+=jump(pos)) fw[pos] += val;
| ~~~^~~~~~~~~~
main.cpp: In member function 'long long int Fenwick::query(long long int)':
main.cpp:124:24: error: 'SUM' was not declared in this scope
124 | return SUM;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !