Problem gcd
User pIaceholder
Submission Time 2023-04-14 15:30:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:5:9: error: ‘a’ was not declared in this scope
5 | int gcd(a, b){
| ^
gcd.cpp:5:12: error: ‘b’ was not declared in this scope
5 | int gcd(a, b){
| ^
gcd.cpp:5:13: error: expression list treated as compound expression in initializer [-fpermissive]
5 | int gcd(a, b){
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:22:23: error: ‘gcd’ cannot be used as a function
22 | std::cout << gcd(a, b);
| ^