Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
269661 Hoàng Trung Anh Chuỗi lớn nhất C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 1013 2023-11-18 21:48:21

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:27:2: error: expected ‘;’ before ‘n’
  n=strlen(s);
  ^
Main.cc: In function ‘void nhapN(int&)’:
Main.cc:15:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
Main.cc: In function ‘void nhapMang(int*, int)’:
Main.cc:20:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i]);
   ~~~~~^~~~~~~~~~~~