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
269318 Phan Huỳnh Anh Tuấn Luỹ thừa bậc 5 C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 934 2023-11-18 21:20:08

Lỗi biên dịch:

Main.cc: In function ‘void nhapT(int&)’:
Main.cc:9:1: error: expected ‘;’ before ‘}’ token
 }
 ^
Main.cc: In function ‘void nhapchuoi(int*, int)’:
Main.cc:15:5: error: expected ‘;’ before ‘}’ token
     }
     ^
Main.cc: In function ‘void nhapT(int&)’:
Main.cc:8:13: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     do{scanf("%d" , &T );}while ( T <= 1 || T >=1000 )
        ~~~~~^~~~~~~~~~~~
Main.cc: In function ‘void nhapchuoi(int*, int)’:
Main.cc:14:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         do{scanf("%d" , &x[i] );}while ( T <= 0 )
            ~~~~~^~~~~~~~~~~~~~~