Mã chấm: 98847


Main.cc: In function ‘int main()’:
Main.cc:35:19: error: expected ‘;’ before ‘)’ token
     printf("%d",s));
                   ^
Main.cc:26:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
Main.cc:27:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&k);
     ~~~~~^~~~~~~~~
Main.cc:30:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
            scanf("%d",&a[i]);
            ~~~~~^~~~~~~~~~~~