Borderou de evaluare (job #1447758)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 5 iunie 2015 10:24:51
Problema Cuburi5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:43: error: wrong number of template arguments (1, should be 5) unordered_map < int , unordered_map < int > > a; ^ In file included from /usr/include/c++/4.8/unordered_map:48:0, from user.cpp:6: /usr/include/c++/4.8/bits/unordered_map.h:97:11: error: provided for ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map’ class unordered_map : __check_copy_constructible<_Alloc> ^ user.cpp:14:45: error: template argument 2 is invalid unordered_map < int , unordered_map < int > > a; ^ user.cpp:14:45: error: template argument 5 is invalid user.cpp:14:48: error: invalid type in declaration before ‘;’ token unordered_map < int , unordered_map < int > > a; ^ user.cpp: In function ‘int main()’: user.cpp:32:29: error: invalid types ‘int[int]’ for array subscript scanf("%d", &a[i][j]); ^ user.cpp:41:37: error: invalid types ‘int[int]’ for array subscript if (dp[i] < dp[right[a[i][j]]] + 1 || (dp[i] == dp[right[a[i][j]]] + 1 && right[a[i][j]] < Next[i])) ^ user.cpp:41:73: error: invalid types ‘int[int]’ for array subscript if (dp[i] < dp[right[a[i][j]]] + 1 || (dp[i] == dp[right[a[i][j]]] + 1 && right[a[i][j]] < Next[i])) ^ user.cpp:41:96: error: invalid types ‘int[int]’ for array subscript if (dp[i] < dp[right[a[i][j]]] + 1 || (dp[i] == dp[right[a[i][j]]] + 1 && right[a[i][j]] < Next[i])) ^ user.cpp:43:37: error: invalid types ‘int[int]’ for array subscript dp[i] = dp[right[a[i][j]]] + 1; ^ user.cpp:44:36: error: invalid types ‘int[int]’ for array subscript Next[i] = right[a[i][j]]; ^ user.cpp:48:22: error: invalid types ‘int[int]’ for array subscript right[a[i][j]] = i; ^ user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cuburi5.in","r",stdin); ^ user.cpp:22:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cuburi5.out","w",stdout); ^ user.cpp:24:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &N, &K); ^

Ceva nu functioneaza?