Problem gcd
User ShaquilleOatmeal34
Submission Time 2025-02-19 15:45:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:7:23: error: a function-definition is not allowed here before ‘{’ token
7 | int gcd(int a, int b) {
| ^
gcd.cpp:16:12: error: a function-definition is not allowed here before ‘{’ token
16 | int main() {
| ^
gcd.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
gcd.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^