QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#98109 | #2928. Espresso! | ZhaoZiLong | Compile Error | / | / | C++98 | 1.1kb | 2023-04-19 05:30:34 | 2023-04-19 05:30:36 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void solved()’: answer.code:30:17: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘back’ 30 | if (str.back() != 'L') { | ^~~~ answer.code:31:19: error: ‘stoi’ was not declared in this scope; did you mean ‘atoi’? 31 | cnt = stoi(str); | ^~~~ | atoi answer.code:34:25: error: ‘stoi’ was not declared in this scope; did you mean ‘atoi’? 34 | int shots = stoi(str.substr(0, str.size() - 1)); | ^~~~ | atoi