Mã chấm: 465917


Main.cc: In function ‘int main()’:
Main.cc:11:13: warning: unused variable ‘b’ [-Wunused-variable]
   11 |         int b[100];
      |             ^
Main.cc: At global scope:
Main.cc:52:1: error: expected declaration before ‘}’ token
   52 | }
      | ^
Main.cc: In function ‘int main()’:
Main.cc:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d %d", &n, &s);
      |         ~~~~~^~~~~~~~~~~~~~~~~
Main.cc:8:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |                 scanf("%d", &a[i]);
      |                 ~~~~~^~~~~~~~~~~~~