Borderou de evaluare (job #2280747)

Utilizator radu_stStoican Radu radu_st Data 11 noiembrie 2018 09:32:42
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int cmmdc(int, int)': main.cpp:5:26: warning: no return statement in function returning non-void [-Wreturn-type] int cmmdc(int a , int b){} ^ main.cpp: At global scope: main.cpp:7:1: error: 'x' does not name a type x = a; ^ main.cpp:8:1: error: 'y' does not name a type y = b; ^ main.cpp:9:1: error: expected unqualified-id before 'while' while(x != y){ ^~~~~ main.cpp:15:1: error: expected unqualified-id before 'return' return x; ^~~~~~ main.cpp:16:1: error: expected declaration before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?