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
269501 Nguyễn Anh Khoa Luỹ thừa bậc 5 C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 454 2023-11-18 21:35:37

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:24:5: error: expected ‘;’ before ‘}’ token
     }
     ^
Main.cc:13:13: warning: unused variable ‘d’ [-Wunused-variable]
         int d = 0;
             ^
Main.cc:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &T); // Nh?p s? lu?ng b? test
     ~~~~~^~~~~~~~~~
Main.cc:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &X); 
         ~~~~~^~~~~~~~~~