Main.cc: In function ‘int main()’:
Main.cc:40:5: error: ‘println’ was not declared in this scope
println("%d",s);
^~~~~~~
Main.cc:40:5: note: suggested alternative: ‘printf’
println("%d",s);
^~~~~~~
printf
Main.cc:32:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
Main.cc:33:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
~~~~~^~~~~~~~~
Main.cc:36:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~