Borderou de evaluare (job #795446)
Utilizator | Data | 8 octombrie 2012 20:41:27 | |
---|---|---|---|
Problema | Dmg | Status | done |
Runda | Lista lui wefgef | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Check(int, int)’:
user.cpp:101: error: no match for ‘operator[]’ in ‘used[i]’
/usr/include/c++/4.4/bits/stl_map.h:442: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::pair<int, int>, _Tp = int, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >]
user.cpp:102: error: no match for ‘operator[]’ in ‘used[i]’
/usr/include/c++/4.4/bits/stl_map.h:442: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::pair<int, int>, _Tp = int, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >]
user.cpp:130: error: no match for ‘operator[]’ in ‘used[MM.std::map<_Key, _Tp, _Compare, _Alloc>::operator[] [with _Key = std::pair<int, int>, _Tp = int, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >](((const std::pair<int, int>&)((const std::pair<int, int>*)(& std::make_pair [with _T1 = int, _T2 = int](X, Y)))))]’
/usr/include/c++/4.4/bits/stl_map.h:442: note: candidates are: _Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::pair<int, int>, _Tp = int, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >]
user.cpp: In function ‘void Solve()’:
user.cpp:161: warning: comparison between signed and unsigned integer expressions
user.cpp:144: warning: unused variable ‘l’
user.cpp: In function ‘int main()’:
user.cpp:167: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
user.cpp:168: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
user.cpp:170: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
user.cpp:172: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !