Problem gcd
User LOL7651
Submission Time 2024-04-09 22:43:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int32_t main()’:
gcd.cpp:13:13: error: ‘d’ was not declared in this scope
13 | if (d>0){
| ^
gcd.cpp:14:17: error: redeclaration of ‘int d’
14 | int d = a%b;
| ^
gcd.cpp:13:13: note: ‘<typeprefixerror>d’ previously declared here
13 | if (d>0){
| ^
gcd.cpp:20:12: error: ‘d’ was not declared in this scope
20 | while (d>0){
| ^