Problem gcd
User joshua2152
Submission Time 2023-05-02 17:10:28
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:5:15: error: ‘cin’ was not declared in this scope
5 | long long x; cin >> x;
| ^~~
gcd.cpp:7:16: error: ‘max’ was not declared in this scope
7 | long long a = max(x,y);
| ^~~
gcd.cpp:8:16: error: ‘min’ was not declared in this scope; did you mean ‘main’?
8 | long long b = min(x,y);
| ^~~
| main
gcd.cpp:10:21: error: expected initializer before ‘!=’ token
10 | while (long long c != 1 or c != 0){
| ^~
gcd.cpp:10:20: error: expected ‘)’ before ‘!=’ token
10 | while (long long c != 1 or c != 0){
| ~ ^~~
| )
gcd.cpp:10:21: error: expected primary-expression before ‘!=’ token
10 | while (long long c