foo.cc: In function 'int main()':
foo.cc:32:13: error: expected '}' at end of input
32 | return 0;
| ^
foo.cc:10:11: note: to match this '{'
10 | int main(){
| ^
foo.cc:11:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
foo.cc:18:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d",&v[i]);
| ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务