QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#184452 | #5577. Alchemy | MaMengQi | Compile Error | / | / | C++14 | 620b | 2023-09-20 19:31:59 | 2023-09-20 19:31:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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; | ^