QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#579850#9328. Make a Palindrome3un_larryfuncCompile Error//C++231.1kb2024-09-21 18:29:162024-09-21 18:29:20

Details

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']++;
      |                    ^