QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#573757#9320. Find the Easiest ProblemHuangHanShengCompile Error//C++11513b2024-09-18 19:53:472024-09-18 19:53:48

Details

answer.code: In function ‘int main()’:
answer.code:16:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |             if(iff=="accepted"&&mp[name][id]!=-1){
      |                ~~~^~~~~~~~~~~~
answer.code:16:41: error: invalid types ‘std::map<char, char>::mapped_type {aka char}[char]’ for array subscript
   16 |             if(iff=="accepted"&&mp[name][id]!=-1){
      |                                         ^
answer.code:17:20: error: missing template arguments before ‘[’ token
   17 |                 map[id]+=1;
      |                    ^
answer.code:18:25: error: invalid types ‘std::map<char, char>::mapped_type {aka char}[char]’ for array subscript
   18 |                 mp[name][id]=-1;
      |                         ^
answer.code:23:23: error: expected primary-expression before ‘<<’ token
   23 |                 cout<<<<"\n";
      |                       ^~