Borderou de evaluare (job #2112191)
Utilizator | Data | 23 ianuarie 2018 10:40:51 | |
---|---|---|---|
Problema | Sume | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:60:22: warning: statement has no effect [-Wunused-value]
print("SQRT");
^
user.cpp:75:39: error: conversion from ‘std::map<int, short unsigned int>’ to non-scalar type ‘std::unordered_map<int, int>’ requested
unordered_map<int, int> cpy = cnt;
^
user.cpp:99:13: error: no match for ‘operator=’ (operand types are ‘std::map<int, short unsigned int>’ and ‘std::unordered_map<int, int>’)
cnt = cpy;
^
user.cpp:99:13: note: candidates are:
In file included from /usr/include/c++/4.8/map:61:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:80,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_map.h:264:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = int; _Tp = short unsigned int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, short unsigned int> >]
operator=(const map& __x)
^
/usr/include/c++/4.8/bits/stl_map.h:264:7: note: no known conversion for argument 1 from ‘std::unordered_map<int, int>’ to ‘const std::map<int, short unsigned int>&’
/usr/include/c++/4.8/bits/stl_map.h:279:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = int; _Tp = short unsigned int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, short unsigned int> >]
operator=(map&& __x)
^
/usr/include/c++/4.8/bits/stl_map.h:279:7: note: no known conversion for argument 1 from ‘std::unordered_map<int, int>’ to ‘std::map<int, short unsigned int>&&’
/usr/include/c++/4.8/bits/stl_map.h:300:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = int; _Tp = short unsigned int; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, short unsigned int> >]
operator=(initializer_list<value_type> __l)
^
/usr/include/c++/4.8/bits/stl_map.h:300:7: note: no known conversion for argument 1 from ‘std::unordered_map<int, int>’ to ‘std::initializer_list<std::pair<const int, short unsigned int> >’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !