QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#98088#2928. Espresso!GuanYunchangCompile Error//C++981.1kb2023-04-19 05:23:482023-04-19 05:23:52

详细

answer.code: In function ‘void solved()’:
answer.code:28:24: error: ‘stoi’ was not declared in this scope; did you mean ‘atoi’?
   28 |         int numShots = stoi(order);
      |                        ^~~~
      |                        atoi
answer.code:29:19: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘back’
   29 |         if (order.back() == 'L') {
      |                   ^~~~