Mã chấm: 268656
Main.cc:5:2: error: expected unqualified-id before ‘{’ token { ^ Main.cc: In function ‘int main()’: Main.cc:20:10: error: ‘string’ is not a member of ‘std’ std::string input; ^~~~~~ Main.cc:20:10: note: suggested alternative: ‘trunc’ std::string input; ^~~~~~ trunc Main.cc:21:10: error: ‘cout’ is not a member of ‘std’ std::cout << "Nhap chuoi ban dau: "; ^~~~ Main.cc:21:10: note: suggested alternative: ‘cbrt’ std::cout << "Nhap chuoi ban dau: "; ^~~~ cbrt Main.cc:22:10: error: ‘cin’ is not a member of ‘std’ std::cin >> input; ^~~ Main.cc:22:10: note: suggested alternative: ‘sin’ std::cin >> input; ^~~ sin Main.cc:22:17: error: ‘input’ was not declared in this scope std::cin >> input; ^~~~~ Main.cc:22:17: note: suggested alternative: ‘ino_t’ std::cin >> input; ^~~~~ ino_t Main.cc:24:19: error: unable to deduce ‘auto&&’ from ‘input’ for (char c : input) { ^~~~~ Main.cc:28:18: error: ‘INT_MIN’ was not declared in this scope int maxSum = INT_MIN; ^~~~~~~ Main.cc:28:18: note: suggested alternative: ‘_IOS_BIN’ int maxSum = INT_MIN; ^~~~~~~ _IOS_BIN Main.cc:30:14: error: ‘string’ is not a member of ‘std’ std::string replaced = input; ^~~~~~ Main.cc:30:14: note: suggested alternative: ‘trunc’ std::string replaced = input; ^~~~~~ trunc Main.cc:34:17: error: ‘replaced’ was not declared in this scope replaced = replaced.replace(replaced.find('?'), 1, "B"); ^~~~~~~~ Main.cc:34:17: note: suggested alternative: ‘rename’ replaced = replaced.replace(replaced.find('?'), 1, "B"); ^~~~~~~~ rename Main.cc:37:17: error: ‘replaced’ was not declared in this scope replaced = replaced.replace(replaced.find('?'), 1, "A"); ^~~~~~~~ Main.cc:37:17: note: suggested alternative: ‘rename’ replaced = replaced.replace(replaced.find('?'), 1, "A"); ^~~~~~~~ rename Main.cc:40:34: error: ‘replaced’ was not declared in this scope tempSum = calculateValue(replaced); ^~~~~~~~ Main.cc:40:34: note: suggested alternative: ‘rename’ tempSum = calculateValue(replaced); ^~~~~~~~ rename Main.cc:40:19: error: ‘calculateValue’ was not declared in this scope tempSum = calculateValue(replaced); ^~~~~~~~~~~~~~ Main.cc:44:10: error: ‘cout’ is not a member of ‘std’ std::cout << "Tong gia tri lon nhat co the dat duoc la: " << maxSum << std::endl; ^~~~ Main.cc:44:10: note: suggested alternative: ‘cbrt’ std::cout << "Tong gia tri lon nhat co the dat duoc la: " << maxSum << std::endl; ^~~~ cbrt Main.cc:44:81: error: ‘endl’ is not a member of ‘std’ std::cout << "Tong gia tri lon nhat co the dat duoc la: " << maxSum << std::endl; ^~~~