Problem fractions
User jmuzhen
Submission Time 2023-12-09 17:03:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractions.cpp:4:13: error: ‘::main’ must return ‘int’
4 | #define int __int128
| ^~~~~~~~
fractions.cpp:20:1: note: in expansion of macro ‘int’
20 | int main() {
| ^~~
fractions.cpp: In function ‘int main()’:
fractions.cpp:21:16: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘__int128’)
21 | int n; cin >> n;
| ~~~ ^~ ~
| | |
| | __int128
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from fractions.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Trai