Borderou de evaluare (job #2424370)
Utilizator | Data | 22 mai 2019 22:07:34 | |
---|---|---|---|
Problema | Retea2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:86:41: error: unable to find numeric literal operator 'operator""kb'
for (int j = i + 1; j < K;j++) {131kb OK
^~~~~
main.cpp:86:41: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
main.cpp:89:17: error: 'len' was not declared in this scope
len = 0;
^~~
main.cpp:93:32: error: 'len' was not declared in this scope
V[i].push_back({j, len});
^~~
main.cpp:93:36: error: no matching function for call to 'std::vector<std::pair<int, double> >::push_back(<brace-enclosed initializer list>)'
V[i].push_back({j, len});
^
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, double>; _Alloc = std::allocator<std::pair<int, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, double>]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, double>&}'
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, double>; _Alloc = std::allocator<std::pair<int, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, double>]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, double> >::value_type&& {aka std::pair<int, double>&&}'
main.cpp:94:36: error: no matching function for call to 'std::vector<std::pair<int, double> >::push_back(<brace-enclosed initializer list>)'
V[j].push_back({i, len});
^
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, double>; _Alloc = std::allocator<std::pair<int, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, double>]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, double>&}'
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, double>; _Alloc = std::allocator<std::pair<int, double> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, double>]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, double> >::value_type&& {aka std::pair<int, double>&&}'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !