Borderou de evaluare (job #2475691)
Utilizator | Data | 17 octombrie 2019 12:58:38 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:19:46: error: expression cannot be used as a function
while(!dq.empty() && (sir[dq.back()]()>sir[i]))
^
main.cpp:24:32: error: 'nr' was not declared in this scope
dq.push_back(make_pair(nr,i));
^~
main.cpp:27:30: error: request for member 'first' in 'dq.std::deque<_Tp, _Alloc>::front<int, std::allocator<int> >()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
suma+=dq.front().first;
^~~~~
main.cpp:28:26: error: request for member 'first' in 'dq.std::deque<_Tp, _Alloc>::front<int, std::allocator<int> >()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
cout<<dq.front().first<<" "<<dq.back().second<<endl;
^~~~~
main.cpp:28:48: error: request for member 'second' in 'dq.std::deque<_Tp, _Alloc>::back<int, std::allocator<int> >()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
cout<<dq.front().first<<" "<<dq.back().second<<endl;
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !