Borderou de evaluare (job #1520590)

Utilizator dcmionutIonut Deaconu dcmionut Data 9 noiembrie 2015 03:47:25
Problema CMMDC Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int gcd(int, int)’: user.cpp:6:7: error: ‘b’ was not declared in this scope if (b == 0) return a; ^ user.cpp:6:22: error: ‘a’ was not declared in this scope if (b == 0) return a; ^ user.cpp:7:16: error: ‘a’ was not declared in this scope else gcd (b, a%b); ^ user.cpp:9:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:18:1: error: expected ‘}’ at end of input } ^ user.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?