제출 #1142054

#제출 시각아이디문제언어결과실행 시간메모리
1142054ad_oux콤보 (IOI18_combo)C++20
컴파일 에러
0 ms0 KiB
#include "combo.h"

std::string guess_sequence(int N) {
  
  char b1 , b2 , b3 ;
  
  b1 = 'A';
  b2 = 'b';
  
  
  return b1 + b2;
}

컴파일 시 표준 에러 (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