gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:8:16: warning: comparison of integer expressions of different signedness: 'std::unordered_set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
8 | if(s.size()!=n)
| ~~~~~~~~^~~
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:118:5: error: 'vector' was not declared in this scope
118 | vector<int>arr;
| ^~~~~~
gondola.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include<unordered_set>
+++ |+#include <vector>
4 | using namespace std;
gondola.cpp:118:12: error: expected primary-expression before 'int'
118 | vector<int>arr;
| ^~~
gondola.cpp:124:13: error: 'arr' was not declared in this scope
124 | arr.push_back(inputSeq[i]);
| ^~~
gondola.cpp:125:10: error: 'arr' was not declared in this scope
125 | sort(arr.begin(),arr.end());
| ^~~
gondola.cpp:125:5: error: 'sort' was not declared in this scope; did you mean 'qsort'?
125 | sort(arr.begin(),arr.end());
| ^~~~
| qsort