ant.cpp: In function 'int main()':
ant.cpp:33:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<vec.size();i++) {
^
ant.cpp:22: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:25:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %c",&a,&ch);
^
ant.cpp:30:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&id); id--;
^