passes.cpp: In function 'int re(int, int, int, double)':
passes.cpp:38:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(j=0; j<ar[i].size(); j++)
| ~^~~~~~~~~~~~~
passes.cpp:41:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | while(fru < cli[dep-1].size() && cli[dep-1][fru] < fn)
| ~~~~^~~~~~~~~~~~~~~~~~~
passes.cpp:50:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | while(fru < cli[dep-1].size())
| ~~~~^~~~~~~~~~~~~~~~~~~
passes.cpp:14:13: warning: unused variable 'cm' [-Wunused-variable]
14 | int i,j,cm,fn,fm,fru,fva;
| ^~
passes.cpp:14:19: warning: unused variable 'fm' [-Wunused-variable]
14 | int i,j,cm,fn,fm,fru,fva;
| ^~
passes.cpp: In function 'int main()':
passes.cpp:84:13: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1000010]' [-Wformat=]
84 | scanf("%s",&s);
| ~^ ~~
| | |
| | char (*)[1000010]
| char*
passes.cpp:82:11: warning: unused variable 'j' [-Wunused-variable]
82 | int i,j,n,m,cn,cm,fn,fm,cru = 1;
| ^
passes.cpp:82:15: warning: unused variable 'm' [-Wunused-variable]
82 | int i,j,n,m,cn,cm,fn,fm,cru = 1;
| ^
passes.cpp:82:23: warning: unused variable 'fn' [-Wunused-variable]
82 | int i,j,n,m,cn,cm,fn,fm,cru = 1;
| ^~
passes.cpp:82:26: warning: unused variable 'fm' [-Wunused-variable]
82 | int i,j,n,m,cn,cm,fn,fm,cru = 1;
| ^~
passes.cpp:84:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | scanf("%s",&s);
| ~~~~~^~~~~~~~~