Submission #1142054

#TimeUsernameProblemLanguageResultExecution timeMemory
1142054ad_ouxCombo (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include "combo.h" std::string guess_sequence(int N) { char b1 , b2 , b3 ; b1 = 'A'; b2 = 'b'; return b1 + b2; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:11:13: error: could not convert '(((int)b1) + ((int)b2))' from 'int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   11 |   return b1 + b2;
      |          ~~~^~~~
      |             |
      |             int