Main.cc: In function ‘int main()’:
Main.cc:48:1: error: expected ‘}’ at end of input
48 | }
| ^
Main.cc:3:1: note: to match this ‘{’
3 | {
| ^
Main.cc:6:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
Main.cc:8:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
8 | for(int i=0;i<n;i++) scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~