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