运行 ID: 346292

Main.cc:34:1: error: expected unqualified-id before ‘return’
 return 0;         
 ^~~~~~
Main.cc:35:1: error: expected declaration before ‘}’ token
 }
 ^
Main.cc: In function ‘int main()’:
Main.cc:18:6: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d", &n);     
 ~~~~~^~~~~~~~~~
Main.cc:19:6: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d", &m);     
 ~~~~~^~~~~~~~~~
Main.cc:21:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a[i]);      
  ~~~~~^~~~~~~~~~~~
Main.cc:24:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&b[i]);      
  ~~~~~^~~~~~~~~~~~