Borderou de evaluare (job #2600547)
Utilizator | AlShaytan - Balasescu Rares rares404 | Data | 12 aprilie 2020 19:56:19 |
---|---|---|---|
Problema | Costperm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:7: error: 'vector' in namespace 'std' does not name a template type
std::vector<T> aib ;
^~~~~~
main.cpp: In constructor 'BinaryIndexedTree<T>::BinaryIndexedTree(int)':
main.cpp:20:3: error: 'aib' was not declared in this scope
aib.resize (sz + 1) ;
^~~
main.cpp: In member function 'void BinaryIndexedTree<T>::update(int, T)':
main.cpp:24:4: error: 'aib' was not declared in this scope
aib.at (i) += val ;
^~~
main.cpp: In member function 'int BinaryIndexedTree<T>::query(int)':
main.cpp:30:14: error: 'aib' was not declared in this scope
ret += (T)aib.at (i) ;
^~~
main.cpp: In member function 'int BinaryIndexedTree<T>::BinarySearch(T)':
main.cpp:37:28: error: 'aib' was not declared in this scope
if (ret + step <= sz && aib[ret + step] <= val) {
^~~
main.cpp: In member function 'void InputReader<T>::advance() [with T = int]':
main.cpp:60:4: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread (buffer, SIZE, 1, input_file) ;
^~~~~
main.cpp: In constructor 'InputReader<T>::InputReader(const char*) [with T = int]':
main.cpp:68:3: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread (buffer, SIZE, 1, input_file) ;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !