Submission details
Task:a times b
Sender:aalto26hm_048
Submission time:2026-10-26 16:26:24 +0200
Language:C++ (C++20)
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:8:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__int128')
    8 |   cin >> a >> b;
      |   ~~~ ^~ ~
      |   |      |
      |   |      __int128
      |   std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/13/iostream:42,
                 from input/code.cpp:1:
/usr/include/c++/13/istream:325:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  325 |       operator>>(void*& __p)
      |       ^~~~~~~~
/usr/include/c++/13/istream:325:7: note:   conversion of argument 1 would be ill-formed:
input/code.cpp:8:10: error: invalid conversion from '__int128' to 'void*' [-fpermissive]
    8 |   cin >> a >> b;
      |          ^
      |          |
      |...

Code

#include <iostream>

using namespace std;

int main(){
  __int128_t a, b;
  
  cin >> a >> b;
  cout << a*b << "\n";
}