gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:37:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if (num.size() < n) return 0;
| ~~~~~~~~~~~^~~
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:55:1: warning: no return statement in function returning non-void [-Wreturn-type]
55 | }
| ^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:63:7: error: 'a' was not declared in this scope
63 | if (a[i] > n) v.push_back(a[i]);
| ^
gondola.cpp:65:11: error: 'a' was not declared in this scope
65 | sort(all(a[i]));
| ^
gondola.cpp:23:16: note: in definition of macro 'all'
23 | #define all(x) x.begin(), x.end()
| ^
gondola.cpp:65:13: error: 'i' was not declared in this scope
65 | sort(all(a[i]));
| ^
gondola.cpp:23:16: note: in definition of macro 'all'
23 | #define all(x) x.begin(), x.end()
| ^
gondola.cpp:66:6: warning: unused variable 'ans' [-Wunused-variable]
66 | int ans = 1;
| ^~~
gondola.cpp:68:1: warning: no return statement in function returning non-void [-Wreturn-type]
68 | }
| ^