QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#579850#9328. Make a Palindrome3un_larryfuncCompile Error//C++231.1kb2024-09-21 18:29:162024-09-21 18:29:20

詳細信息

answer.code: In function ‘void solve()’:
answer.code:10:1: error: expected initializer before ‘cin’
   10 | cin >> s;
      | ^~~
answer.code:13:20: error: ‘s’ was not declared in this scope
   13 |         cnt[i % 2][s[i] - 'a']++;
      |                    ^