Borderou de evaluare (job #3268461)
Utilizator | Data | 15 ianuarie 2025 13:06:35 | |
---|---|---|---|
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:93:20: error: 'i' was not declared in this scope
93 | fw[i] += v[i-1];
| ^
main.cpp: In member function 'void Fenwick::update(long long int, long long int)':
main.cpp:99: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]
99 | for(;pos<fw.size();pos+=jump(pos)) fw[pos] += val;
| ~~~^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !