Mã chấm: 271354


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