bridge.cpp: In function 'int main()':
bridge.cpp:57:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
57 | scanf("%s%d%s%d",&Ax,&A[i],&Bx,&B[i]);
| ~^ ~~~
| | |
| char* char (*)[10]
bridge.cpp:57:21: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[10]' [-Wformat=]
57 | scanf("%s%d%s%d",&Ax,&A[i],&Bx,&B[i]);
| ~^ ~~~
| | |
| char* char (*)[10]
bridge.cpp:71:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for ( int i = 0; i < V.size(); i++ ){
| ~~^~~~~~~~~~
bridge.cpp:87:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for ( int i = 0; i < V.size() && K == 2; i++ ){
| ~~^~~~~~~~~~
bridge.cpp:55:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | scanf("%d%d",&K,&N);
| ~~~~~^~~~~~~~~~~~~~
bridge.cpp:57:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | scanf("%s%d%s%d",&Ax,&A[i],&Bx,&B[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~