ants.cpp:29:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
29 | main(){
| ^
ants.cpp: In function 'int main()':
ants.cpp:49:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for (i=0;i<v[1].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:65:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for (i=0;i<v[1].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:69:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for (i=0;i<v[2].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:85:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for (i=0;i<v[2].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:30:19: warning: unused variable 'j' [-Wunused-variable]
30 | int w,h,t,k,i,j;
| ^
ants.cpp:12:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~
ants.cpp:31:5: note: in expansion of macro 'scan2'
31 | scan2(w,h)
| ^~~~~
ants.cpp:12:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~
ants.cpp:32:5: note: in expansion of macro 'scan2'
32 | scan2(k,t)
| ^~~~~
ants.cpp:13:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
ants.cpp:38:9: note: in expansion of macro 'scan3'
38 | scan3(a,b,c)
| ^~~~~