Problem gcd
User cloudyskykid
Submission Time 2025-08-11 20:12:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:8:27: error: break statement not within loop or switch
8 | if (a == b) {hcf = a; break;}
| ^~~~~
gcd.cpp:10:35: error: break statement not within loop or switch
10 | if (b % a == 0) {hcf = a; break;}
| ^~~~~
gcd.cpp:17:35: error: break statement not within loop or switch
17 | if (a % b == 0) {hcf = b; break;}
| ^~~~~