Borderou de evaluare (job #120734)
Utilizator | Data | 6 ianuarie 2008 14:41:17 | |
---|---|---|---|
Problema | NKPerm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare in evaluator:
user.cpp: In function 'long long int numara(std::vector<short int, std::allocator<short int> >)':
user.cpp:20: error: no matching function for call to 'std::map<std::vector<int, std::allocator<int> >, long long int, std::less<std::vector<int, std::allocator<int> > >, std::allocator<std::pair<const std::vector<int, std::allocator<int> >, long long int> > >::find(std::vector<short int, std::allocator<short int> >&)'
/usr/include/c++/4.2/bits/stl_map.h:541: note: candidates are: typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const _Key&) [with _Key = std::vector<int, std::allocator<int> >, _Tp = long long int, _Compare = std::less<std::vector<int, std::allocator<int> > >, _Alloc = std::allocator<std::pair<const std::vector<int, std::allocator<int> >, long long int> >]
/usr/include/c++/4.2/bits/stl_map.h:556: note: typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::const_iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const _Key&) const [with _Key = std::vector<int, std::allocator<int> >, _Tp = long long int, _Compare = std::less<std::vector<int, std::allocator<int> > >, _Alloc = std::allocator<std::pair<const std::vector<int, std::allocator<int> >, long long int> >]
user.cpp:20: error: no match for 'operator[]' in 'h[v]'
/usr/include/c++/4.2/bits/stl_map.h:342: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::vector<int, std::allocator<int> >, _Tp = long long int, _Compare = std::less<std::vector<int, std::allocator<int> > >, _Alloc = std::allocator<std::pair<const std::vector<int, std::allocator<int> >, long long int> >]
user.cpp:50: error: no match for 'operator[]' in 'h[v]'
/usr/include/c++/4.2/bits/stl_map.h:342: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::vector<int, std::allocator<int> >, _Tp = long long int, _Compare = std::less<std::vector<int, std::allocator<int> > >, _Alloc = std::allocator<std::pair<const std::vector<int, std::allocator<int> >, long long int> >]
user.cpp:56: error: no match for 'operator[]' in 'h[v]'
/usr/include/c++/4.2/bits/stl_map.h:342: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::vector<int, std::allocator<int> >, _Tp = long long int, _Compare = std::less<std::vector<int, std::allocator<int> > >, _Alloc = std::allocator<std::pair<const std::vector<int, std::allocator<int> >, long long int> >]
user.cpp: In function 'long long int findA()':
user.cpp:74: error: conversion from 'std::vector<int, std::allocator<int> >' to non-scalar type 'std::vector<short int, std::allocator<short int> >' requested
user.cpp: In function 'void findB()':
user.cpp:101: error: conversion from 'std::vector<int, std::allocator<int> >' to non-scalar type 'std::vector<short int, std::allocator<short int> >' requested
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !