zagrade.cpp: In function 'int main()':
zagrade.cpp:34:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(int i=0; i<v.size()/2; i++)
| ~^~~~~~~~~~~
zagrade.cpp:38:27: error: expected ';' before ')' token
38 | for(int i=v.size()/2; i++)
| ^
| ;
zagrade.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d %d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~~
zagrade.cpp:22:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf("%d", &ans);
| ~~~~~^~~~~~~~~~~~