Borderou de evaluare (job #1277613)
Utilizator | Data | 27 noiembrie 2014 21:53:07 | |
---|---|---|---|
Problema | Colectie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: error: ‘tr1’ does not name a type
tr1::unordered_map <int, int > H;
^
user.cpp:13:1: error: ‘tr1’ does not name a type
tr1::unordered_map <int, int > :: iterator it;
^
user.cpp: In function ‘void solution()’:
user.cpp:75:5: error: ‘H’ was not declared in this scope
H.insert (make_pair <int, int> (h, v));
^
user.cpp:75:41: error: no matching function for call to ‘make_pair(int&, int&)’
H.insert (make_pair <int, int> (h, v));
^
user.cpp:75:41: note: candidate is:
In file included from /usr/include/c++/4.8/utility:70:0,
from /usr/include/c++/4.8/tuple:38,
from /usr/include/c++/4.8/functional:55,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:276:5: note: template argument deduction/substitution failed:
user.cpp:75:41: note: cannot convert ‘h’ (type ‘int’) to type ‘int&&’
H.insert (make_pair <int, int> (h, v));
^
user.cpp: In function ‘int main()’:
user.cpp:105:5: error: ‘H’ was not declared in this scope
H.insert (make_pair <int, int> (0, 0));
^
user.cpp:124:9: error: ‘it’ was not declared in this scope
it = H.find (h);
^
user.cpp:92:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("colectie.in", "r", stdin);
^
user.cpp:93:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("colectie.out", "w", stdout);
^
user.cpp:95:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &n, &k);
^
user.cpp:100:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &p [i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !