Problem gcd
User R9q5P8
Submission Time 2025-03-07 13:12:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:1:1: error: ‘include’ does not name a type
1 | include <iostream>
| ^~~~~~~
gcd.cpp: In function ‘int main()’:
gcd.cpp:10:2: error: ‘cin’ was not declared in this scope
10 | cin>>a;
| ^~~
gcd.cpp:13:5: error: expected ‘(’ before ‘b’
13 | if b>a
| ^
| (
gcd.cpp:21:8: error: expected ‘(’ before ‘r’
21 | while r != 0
| ^
| (
gcd.cpp:21:14: error: expected ‘)’ before ‘{’ token
21 | while r != 0
| ~ ^
| )
22 | {
| ~
gcd.cpp:27:2: error: ‘cout’ was not declared in this scope
27 | cout<<b;
| ^~~~