gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:9:5: error: 'map' was not declared in this scope
9 | map<int, int> freq;
| ^~~
gondola.cpp:9:5: note: suggested alternatives:
In file included from /usr/include/c++/11/map:61,
from gondola.cpp:2:
/usr/include/c++/11/bits/stl_map.h:100:11: note: 'std::map'
100 | class map
| ^~~
In file included from gondola.cpp:2:
/usr/include/c++/11/map:78:13: note: 'std::pmr::map'
78 | using map
| ^~~
gondola.cpp:9:9: error: expected primary-expression before 'int'
9 | map<int, int> freq;
| ^~~
gondola.cpp:16:7: error: 'freq' was not declared in this scope
16 | freq[inputSeq[i]]++;
| ^~~~