ants.cpp:42:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
42 | main(){
| ^
ants.cpp: In function 'int main()':
ants.cpp:62: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]
62 | for (i=0;i<v[1].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:78: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]
78 | for (i=0;i<v[1].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:82: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]
82 | for (i=0;i<v[2].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:98: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]
98 | for (i=0;i<v[2].size();++i){
| ~^~~~~~~~~~~~
ants.cpp:43:19: warning: unused variable 'j' [-Wunused-variable]
43 | 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:44:5: note: in expansion of macro 'scan2'
44 | 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:45:5: note: in expansion of macro 'scan2'
45 | 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:51:9: note: in expansion of macro 'scan3'
51 | scan3(a,b,c)
| ^~~~~