Borderou de evaluare (job #969608)
Utilizator | Data | 4 iulie 2013 19:41:06 | |
---|---|---|---|
Problema | Ciclu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:25: warning: integer overflow in expression [-Woverflow]
const int oo = ((1<<31)-1);
^
user.cpp: In function ‘bool bf(int)’:
user.cpp:38:21: error: no match for ‘operator[]’ (operand types are ‘graf {aka std::vector<std::pair<int, int> > [1005]}’ and ‘it {aka __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >}’)
for(it i = X[i].begin(); i != X[i].end(); ++ i)
^
user.cpp:38:40: error: no match for ‘operator[]’ (operand types are ‘graf {aka std::vector<std::pair<int, int> > [1005]}’ and ‘it {aka __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >}’)
for(it i = X[i].begin(); i != X[i].end(); ++ i)
^
user.cpp:42:45: error: expected ‘;’ before ‘!’ token
for(Q.push(0), d[0] = 0 , inQ[0] = true !Q.empty() ; Q.pop() )
^
user.cpp:42:64: error: could not convert ‘Q.std::queue<_Tp, _Sequence>::pop<int, std::deque<int, std::allocator<int> > >()’ from ‘void’ to ‘bool’
for(Q.push(0), d[0] = 0 , inQ[0] = true !Q.empty() ; Q.pop() )
^
user.cpp:42:66: error: expected ‘;’ before ‘)’ token
for(Q.push(0), d[0] = 0 , inQ[0] = true !Q.empty() ; Q.pop() )
^
user.cpp:52:32: error: ‘first’ was not declared in this scope
if(inQs[it>first] > n)
^
user.cpp:55:31: error: ‘first’ was not declared in this scope
Q.push(it>first);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !