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