QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#670185#9296. Golden SpiritGuanYunchangCompile Error//C++17586b2024-10-23 20:46:402024-10-23 20:46:41

Details

answer.code: In function ‘void solve()’:
answer.code:9:5: error: expected initializer before ‘ll’
    9 |     ll ans[m+1]{}, messages_sent[m+1]{};
      |     ^~
answer.code:9:18: error: expected primary-expression before ‘,’ token
    9 |     ll ans[m+1]{}, messages_sent[m+1]{};
      |                  ^
answer.code:9:20: error: ‘messages_sent’ was not declared in this scope
    9 |     ll ans[m+1]{}, messages_sent[m+1]{};
      |                    ^~~~~~~~~~~~~
answer.code:13:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   13 |             ans[x] -= cnt[y];
      |             ^~~
      |             abs
answer.code:15:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   15 |             ans[x] += cnt[y];
      |             ^~~
      |             abs