Problem gcd
User earthyeet
Submission Time 2025-08-29 10:42:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:16:14: error: ‘b’ was not declared in this scope
16 | float f = (b / count);
| ^
gcd.cpp:17:14: error: ‘a’ was not declared in this scope
17 | float g = (a / f);
| ^
gcd.cpp:19:13: error: expected ‘;’ before ‘check’
19 | cout << f
| ^
| ;
20 | check = true;
| ~~~~~
gcd.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
gcd.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^