QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#669559#7262. String ModificationMaMengQiCompile Error//C++98364b2024-10-23 19:00:202024-10-23 19:00:20

Details

answer.code: In function ‘void sol()’:
answer.code:8:14: error: ‘it’ does not name a type; did you mean ‘int’?
    8 |     for(auto it :s) mp[it]++;
      |              ^~
      |              int
answer.code:8:30: error: expected ‘;’ before ‘for’
    8 |     for(auto it :s) mp[it]++;
      |                              ^
      |                              ;
    9 |     for(int i=0;i<ss.size()-1;i++)
      |     ~~~                       
answer.code:9:5: error: expected primary-expression before ‘for’
    9 |     for(int i=0;i<ss.size()-1;i++)
      |     ^~~
answer.code:8:30: error: expected ‘;’ before ‘for’
    8 |     for(auto it :s) mp[it]++;
      |                              ^
      |                              ;
    9 |     for(int i=0;i<ss.size()-1;i++)
      |     ~~~                       
answer.code:9:5: error: expected primary-expression before ‘for’
    9 |     for(int i=0;i<ss.size()-1;i++)
      |     ^~~
answer.code:8:30: error: expected ‘)’ before ‘for’
    8 |     for(auto it :s) mp[it]++;
      |        ~                     ^
      |                              )
    9 |     for(int i=0;i<ss.size()-1;i++)
      |     ~~~