运行 ID: 323588

Main.cc: In function ‘int main()’:
Main.cc:9:28: error: expected ‘;’ before ‘:’ token
         else printf("NO\n"):
                            ^
Main.cc:5:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&t);
  ~~~~~^~~~~~~~~
Main.cc:7:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&n);
   ~~~~~^~~~~~~~~