QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#856646#9807. Make Them BelieveHuangHanShengCompile Error//C++98368b2025-01-14 15:01:132025-01-14 15:01:15

Details

answer.code: In function ‘int main()’:
answer.code:17:14: error: ‘n1’ does not name a type
   17 |         auto n1 = team.find(a[7]);
      |              ^~
answer.code:18:14: error: ‘n2’ does not name a type
   18 |         auto n2 = team.find(a[6]);
      |              ^~
answer.code:19:17: error: ‘n1’ was not declared in this scope; did you mean ‘y1’?
   19 |         cout << n1->second << " beats " << n2->second;
      |                 ^~
      |                 y1
answer.code:19:44: error: ‘n2’ was not declared in this scope
   19 |         cout << n1->second << " beats " << n2->second;
      |                                            ^~