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
271354 Lê Nhật Quỳnh CHẤM ĐIỂM TRẮC NGHIỆM C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 497 2023-11-21 08:49:23

Lỗi biên dịch:

Main.cc: In function ‘int dem(int*, int)’:
Main.cc:9:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
         if(a[i]==a[i])
            ~~~~^~~~~~
Main.cc:10:5: error: expected primary-expression before ‘}’ token
     }
     ^
Main.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
Main.cc: In function ‘int tinhdiem(int*, int)’:
Main.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
Main.cc: In function ‘int main()’:
Main.cc:20:5: error: ‘A’ was not declared in this scope
     A[1000]
     ^
Main.cc:21:18: error: ‘i’ was not declared in this scope
     for (int i=0;i