ant.cpp: In function 'int main()':
ant.cpp:36:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<vec.size();i++) {
^
ant.cpp:23:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&l,&t);
^
ant.cpp:27:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %c",&arr[i],&ch);
^
ant.cpp:33:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&id); id--;
^