Borderou de evaluare (job #2377606)

Utilizator BolboStefan Bolboceanu Bolbo Data 10 martie 2019 18:30:11
Problema CMMDC Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int cmmdc(int, int)': main.cpp:14:17: warning: unused variable 'r' [-Wunused-variable] int r=a%b; ^ main.cpp:13:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ main.cpp:15:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' return cmmdc(b, r); ^~~~~~ main.cpp:15:29: error: 'r' was not declared in this scope return cmmdc(b, r); ^ main.cpp: At global scope: main.cpp:19:5: error: expected unqualified-id before 'else' else ^~~~ main.cpp:22:1: error: expected declaration before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?