Em mới học string, moi người cho em hỏi đoạn code này em sai ở đâu mà khi đến if a[i] == ‘(’ thì lại lỗi ạ, em cảm ơn
[Error] name lookup of ‘i’ changed for ISO ‘for’ scoping [-fpermissive] đây là khi biên dịch ạ
string a;
cout <<"Nhap chuoi can kiem tra: ";
int temp = a.length();
for(int i = 0; i<temp-1; i++);{
if(a[i] == '('){
cout<<"abc";
}
else{
cout<<"bca";
}
}