toll.cpp: In function 'void solve1()':
toll.cpp:51:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<EDGE>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=0; i<edge.size(); i++){
| ~^~~~~~~~~~~~
toll.cpp:61:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<EDGE>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | for(int i=0; i<edge.size(); i++){
| ~^~~~~~~~~~~~
toll.cpp: In function 'int main()':
toll.cpp:85:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
85 | for(int i=1; i<=N; i++) int a; scanf("%d", &a); P.push_back(a);
| ^~~
toll.cpp:85:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
85 | for(int i=1; i<=N; i++) int a; scanf("%d", &a); P.push_back(a);
| ^~~~~
toll.cpp:85:30: warning: unused variable 'a' [-Wunused-variable]
85 | for(int i=1; i<=N; i++) int a; scanf("%d", &a); P.push_back(a);
| ^
toll.cpp:85:46: error: 'a' was not declared in this scope
85 | for(int i=1; i<=N; i++) int a; scanf("%d", &a); P.push_back(a);
| ^
toll.cpp:75:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | scanf("%d%d%d", &N, &M, &K);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
toll.cpp:78:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | scanf("%d%d%d", &a, &b, &c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
toll.cpp:83:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
83 | scanf("%d%d", &a, &b); edge2.push_back({a, b});
| ~~~~~^~~~~~~~~~~~~~~~