QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#642816#5513. Advertisement 2MaMengQiCompile Error//C++17646b2024-10-15 16:25:082024-10-15 16:25:08

Details

answer.code: In function ‘int main()’:
answer.code:23:47: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17
   23 |                 if(tong[a[i].x]==0)tong[a[i].x]++,gs++;
      |                                    ~~~~~~~~~~~^