bootfall.cpp:1: warning: ignoring '#pragma optimize ' [-Wunknown-pragmas]
1 | #pragma optimize ("g",on)
|
bootfall.cpp: In function 'void sol()':
bootfall.cpp:32:19: error: request for member 'begin' in 'a', which is of non-class type 'short int [500]'
32 | random_shuffle(a.begin(). a.end());
| ^~~~~
bootfall.cpp:43:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | while(j < ans.size()){
| ~~^~~~~~~~~~~~
bootfall.cpp:45:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | if(j < ans.size()) swap(ans[j], ans[ans.size() - 1]);
| ~~^~~~~~~~~~~~