QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#184452#5577. AlchemyMaMengQiCompile Error//C++14620b2023-09-20 19:31:592023-09-20 19:31:59

詳細信息

answer.code:6:1: error: ‘string’ does not name a type; did you mean ‘stdin’?
    6 | string s;
      | ^~~~~~
      | stdin
answer.code: In function ‘LL dp(LL, LL, LL)’:
answer.code:14:19: error: ‘s’ was not declared in this scope
   14 |         if (is && s[l] != s[r])
      |                   ^
answer.code:16:20: error: ‘s’ was not declared in this scope
   16 |         if (!is && s[l] == s[r])
      |                    ^
answer.code:20:14: error: ‘s’ was not declared in this scope
   20 |         if ( s[l] != s[r])
      |              ^
answer.code: In function ‘int main()’:
answer.code:26:9: error: ‘cin’ was not declared in this scope
   26 |         cin >> s;
      |         ^~~
answer.code:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
    3 | #include<cstring>
  +++ |+#include <iostream>
    4 | using namespace std;
answer.code:26:16: error: ‘s’ was not declared in this scope
   26 |         cin >> s;
      |                ^