Borderou de evaluare (job #2132084)

Utilizator Mihai_PredaPreda Mihai Dragos Mihai_Preda Data 15 februarie 2018 13:48:25
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:58:5: error: ‘vector’ does not name a type vector<int> v; ^ user.cpp: In constructor ‘AIB::AIB(int)’: user.cpp:11:9: error: ‘v’ was not declared in this scope v.resize(sz + 1); ^ user.cpp:12:9: error: ‘n’ was not declared in this scope n = sz; ^ user.cpp: In member function ‘void AIB::Add(int, int)’: user.cpp:18:22: error: ‘n’ was not declared in this scope while(ind <= n) ^ user.cpp:20:13: error: ‘v’ was not declared in this scope v[ind] += val; ^ user.cpp: In member function ‘int AIB::Query(int)’: user.cpp:29:20: error: ‘v’ was not declared in this scope ret += v[dr]; ^ user.cpp: In member function ‘int AIB::GetFirstPos(int)’: user.cpp:41:30: error: ‘n’ was not declared in this scope for(step = 1; step < n; step <<= 1); ^ user.cpp:44:28: error: ‘n’ was not declared in this scope if(i + step <= n) ^ user.cpp:46:27: error: ‘v’ was not declared in this scope if(sum >= v[i + step]) ^

Ceva nu functioneaza?