Problem goodseq
User wzhci11
Submission Time 2024-07-13 10:39:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodseq.cpp: In function ‘int main()’:
goodseq.cpp:5:8: error: expected initializer before ‘n’
5 | ll n, tot = 0;
| ^
goodseq.cpp:6:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | cin >> n;
| ^
| yn
goodseq.cpp:7:25: error: wrong number of template arguments (1, should be at least 2)
7 | unordered_map<ll, ll> freq;
| ^
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from goodseq.cpp:1:
/usr/include/c++/9/bits/unordered_map.h:102:11: note: provided for ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Al