Mã chấm: 599832


Main.cc: In function ‘int main()’:
Main.cc:16:2: error: expected ‘while’ at end of input
   16 | }
      |  ^
Main.cc:16:2: error: expected ‘(’ at end of input
   16 | }
      |  ^
      |  (
Main.cc:16:2: error: expected primary-expression at end of input
Main.cc:16:2: error: expected ‘)’ at end of input
   16 | }
      |  ^
      |  )
Main.cc:16:2: error: expected ‘;’ at end of input
   16 | }
      |  ^
      |  ;
Main.cc:16:2: error: expected ‘}’ at end of input
Main.cc:6:12: note: to match this ‘{’
    6 | int main() {
      |            ^
Main.cc:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~