Borderou de evaluare (job #1131196)
Utilizator | Data | 28 februarie 2014 18:24:08 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27:12: error: explicit specialization in non-namespace scope ‘class ArboreDeMax’
template <> struct log2_<1>
^
user.cpp:32:29: error: too many template-parameter-lists
template <size_t N> struct pow2_
^
user.cpp:37:12: error: explicit specialization in non-namespace scope ‘class ArboreDeMax’
template <> struct pow2_<0>
^
user.cpp:37:21: error: ‘pow2_’ is not a class template
template <> struct pow2_<0>
^
user.cpp:37:21: error: too many template-parameter-lists
user.cpp:41:13: error: ‘pow2_’ was not declared in this scope
unsigned V[pow2_<log2_<nMax>::value + 1>::value], N;
^
user.cpp:41:42: error: ‘::value’ has not been declared
unsigned V[pow2_<log2_<nMax>::value + 1>::value], N;
^
user.cpp: In member function ‘void ArboreDeMax::_actualizare(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)’:
user.cpp:45:4: error: ‘V’ was not declared in this scope
V[nod] = val;
^
user.cpp:52:4: error: ‘V’ was not declared in this scope
V[nod] = std::max(V[2 * nod], V[2 * nod + 1]);
^
user.cpp: In member function ‘unsigned int ArboreDeMax::_interogareMax(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)’:
user.cpp:58:11: error: ‘V’ was not declared in this scope
return V[nod];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !