pipes.cpp: In function 'int main()':
pipes.cpp:29:19: warning: unused variable 'w' [-Wunused-variable]
29 | int u, v, w;
| ^
pipes.cpp:56:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = 0; i < circle.size(); ++i) s[i + 1] = (s[i]) + (i % 2 == 0 ? 1 : -1) * w[circle[i]];
| ~~^~~~~~~~~~~~~~~
pipes.cpp:57:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for (int i = 0; i < circle.size(); ++i) {
| ~~^~~~~~~~~~~~~~~
pipes.cpp:22:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
pipes.cpp:27:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | for (int i = 1; i <= n; ++i) scanf("%d", &w[i]);
| ~~~~~^~~~~~~~~~~~~
pipes.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d%d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~