Hello. I write the following code in C++ and i use the multilanguage question type.
The task requires the input of Cyrillic letters.
#include <iostream>
using namespace std;
int main()
{
char ch;
cin >> ch;
cout << ch; // I enter the Cyrillic character 'Б'
return 0;
}
I get an error:
Traceback (most recent call last):
File "__tester__.python3", line 70, in <module>
output = subprocess.check_output(exec_command, universal_newlines=True)
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 495, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/usr/lib/python3.8/subprocess.py", line 1015, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 1: unexpected end of dataTell me how to get Python to process Cyrillic characters correctly. Thanks