cake.cpp: In function 'int main()':
cake.cpp:51:13: error: request for member 'insert' in 'svi', which is of non-class type 'std::set<std::pair<int, int> > [250005]'
svi.insert(mp(niz[i],i));
^~~~~~
cake.cpp:61:17: error: request for member 'erase' in 'svi', which is of non-class type 'std::set<std::pair<int, int> > [250005]'
svi.erase(mp(niz[koji],koji));
^~~~~
cake.cpp:62:25: error: request for member 'back' in 'svi', which is of non-class type 'std::set<std::pair<int, int> > [250005]'
auto it=svi.back();
^~~~
cake.cpp:47:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &a);
~~~~~^~~~~~~~~~~~~~~~~
cake.cpp:49:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",niz+i);
~~~~~^~~~~~~~~~~~
cake.cpp:54:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &qq);
~~~~~^~~~~~~~~~~
cake.cpp:57:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", qt);
~~~~~^~~~~~~~~~
cake.cpp:60:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &koji, &postaje);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~