Borderou de evaluare (job #2895417)

Utilizator NefelibataAnton Marius Alexandru Nefelibata Data 29 aprilie 2022 03:53:16
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:28: error: wrong number of template arguments (1, should be at least 2) 12 | unordered_map<long long> v; | ^ In file included from /usr/include/c++/10/unordered_map:47, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:117, from main.cpp:3: /usr/include/c++/10/bits/unordered_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map' 102 | class unordered_map | ^~~~~~~~~~~~~ main.cpp:14:6: error: invalid types 'int[int]' for array subscript 14 | v[0] = A; | ^ main.cpp:15:6: error: invalid types 'int[int]' for array subscript 15 | v[1] = B; | ^ main.cpp:17:10: error: invalid types 'int[long long int]' for array subscript 17 | v[i] = (C * v[i-1] + D * v[i-2]) % E; | ^ main.cpp:17:22: error: invalid types 'int[long long int]' for array subscript 17 | v[i] = (C * v[i-1] + D * v[i-2]) % E; | ^ main.cpp:17:35: error: invalid types 'int[long long int]' for array subscript 17 | v[i] = (C * v[i-1] + D * v[i-2]) % E; | ^ main.cpp:22:15: error: request for member 'find' in 'v', which is of non-class type 'int' 22 | if (v.find(x) != v.end()) ++k; | ^~~~ main.cpp:22:28: error: request for member 'end' in 'v', which is of non-class type 'int' 22 | if (v.find(x) != v.end()) ++k; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?