foo.cc: In function 'int main()':
foo.cc:34:9: error: expected '}' at end of input
34 | {
| ^
foo.cc:34:9: error: expected '}' at end of input
foo.cc:18:5: note: to match this '{'
18 | {
| ^
foo.cc:16:24: warning: unused variable 'minn' [-Wunused-variable]
16 | int u, v, w, m, q, minn;
| ^~~~
foo.cc:34:9: error: expected '}' at end of input
34 | {
| ^
foo.cc:15:1: note: to match this '{'
15 | {
| ^
foo.cc:25:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d", &s[i]);
| ~~~~~^~~~~~~~~~~~~
foo.cc:28:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d%d%d", &u, &v, &w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:32:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf("%d", &q);
| ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务