Problem mathclass
User YSH2020
Submission Time 2024-09-08 15:56:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathclass.cpp: In function ‘long long int gcd(long long int, long long int)’:
mathclass.cpp:3:13: error: ‘__int64’ was not declared in this scope; did you mean ‘__rintf64’?
3 | #define int __int64
| ^~~~~~~
mathclass.cpp:12:2: note: in expansion of macro ‘int’
12 | int tmp = a%b;
| ^~~
mathclass.cpp:13:19: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’?
13 | return gcd(b, tmp);
| ^~~
| tm
mathclass.cpp: In function ‘int main()’:
mathclass.cpp:3:13: error: ‘__int64’ was not declared in this scope; did you mean ‘__rintf64’?
3 | #define int __int64
| ^~~~~~~
mathclass.cpp:25:9: note: in expansion of macro ‘int’
25 | int tmp = gcd(b, a);
| ^~~
mathclass.cpp:26:14: error: expected ‘;’ before ‘tmp1’
26 | int tmp1 = a/tmp;
| ^~~~
mathclass.cpp:27:14: e