Kiek kartų?
- [1] 2021-10-16 12:50 (45.2)
- [2] 2021-10-16 13:12 (45.2)
- [3] 2022-04-03 20:54 (6.5)
- [4] 2022-04-03 21:02 (45.2)
- [5] 2022-04-03 21:06 (96.8)
- [6] 2022-04-03 21:08 (96.8)
- [7] 2022-04-03 21:14 (96.8)
- [8] 2022-04-03 21:16 (0)
- [9] 2022-04-03 21:17 (96.8)
- [10] 2022-04-03 21:25 (0)
- [11] 2022-04-03 21:26 (96.8)
- [12] 2022-04-03 21:27 (96.8)
- [13] 2022-04-03 21:29 (96.8)
- [14] 2022-04-03 21:34 (96.8)
- [15] 2022-04-03 21:35 (9.7)
- [16] 2022-04-03 21:36 (100)
Taškai: 0
Compile: FAIL
kiek_kartu.cpp: In function ‘int main()’: kiek_kartu.cpp:16:10: error: no match for ‘operator=’ (operand types are ‘std::map<long long int, int>’ and ‘int’) x=0; ^ In file included from /usr/include/c++/5/map:61:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:80, from kiek_kartu.cpp:2: /usr/include/c++/5/bits/stl_map.h:296:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >] operator=(const map& __x) ^ /usr/include/c++/5/bits/stl_map.h:296:7: note: no known conversion for argument 1 from ‘int’ to ‘const std::map<long long int, int>&’ /usr/include/c++/5/bits/stl_map.h:305:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >] operator=(map&&) = default; ^ /usr/include/c++/5/bits/stl_map.h:305:7: note: no known conversion for argument 1 from ‘int’ to ‘std::map<long long int, int>&&’ /usr/include/c++/5/bits/stl_map.h:319:7: note: candidate: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, int> >] operator=(initializer_list<value_type> __l) ^ /usr/include/c++/5/bits/stl_map.h:319:7: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<std::pair<const long long int, int> >’
nr. | result | time | message |
---|