Borderou de evaluare (job #2666763)
Utilizator | Data | 2 noiembrie 2020 14:48:38 | |
---|---|---|---|
Problema | Nrsubsecv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:44:16: error: reference to 'map' is ambiguous
for (auto i : map)
^~~
main.cpp:12:33: note: candidates are: std::unordered_map<int, std::vector<str> > map
unordered_map<int, vector<str>> map;
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from main.cpp:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
main.cpp:46:24: error: reference to 'map' is ambiguous
for (int j = 0; j < map[i.first].size(); ++j) {
^~~
main.cpp:12:33: note: candidates are: std::unordered_map<int, std::vector<str> > map
unordered_map<int, vector<str>> map;
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from main.cpp:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
main.cpp:47:12: error: reference to 'map' is ambiguous
ll l = map[i.first][j].left, r = map[i.first][j].right, p = map[i.first][j].poz, behind, prod;
^~~
main.cpp:12:33: note: candidates are: std::unordered_map<int, std::vector<str> > map
unordered_map<int, vector<str>> map;
^~~
In file included from /usr/include/c++/6/map:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81,
from main.cpp:1:
/usr/include/c++/6/bits/stl_map.h:96:11: note: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
class map
^~~
main.cpp:48:5: error: 'behind' was not declared in this scope
behind = p - l;
^~~~~~
main.cpp:48:14: error: 'p' was not declared in this scope
behind = p - l;
^
main.cpp:49:5: error: 'prod' was not declared in this scope
prod = r - l + 1;
^~~~
main.cpp: In function 'int main()':
main.cpp:64:3: error: reference to 'map' is ambiguous
map[v[i]].push_back({ i, l[i] + 1, r[i] - 1 });
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !