Borderou de evaluare (job #1111768)

Utilizator Codrin13SCodrin Stefan Codrin13S Data 19 februarie 2014 09:07:29
Problema Lumanari Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cmp(int, int)’: user.cpp:9:13: error: expected primary-expression before ‘)’ token {return x>y;) ^ user.cpp:9:13: error: expected ‘;’ before ‘)’ token user.cpp:15:1: error: a function-definition is not allowed here before ‘{’ token {for(i=1;i<=a;i++) if(v[i]==0) return 0; ^ user.cpp:18:1: error: a function-definition is not allowed here before ‘{’ token {sort(c+1,c+k+1,cmp);} ^ user.cpp: In function ‘int prog()’: user.cpp:22:8: error: ‘ok’ was not declared in this scope ok1=ok(); ^ user.cpp:27:12: error: ‘sortare’ was not declared in this scope sortare(); ^ user.cpp:30:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:32:9: error: ‘citire’ was not declared in this scope {citire(); ^ user.cpp:33:9: error: ‘sortare’ was not declared in this scope sortare(); ^

Ceva nu functioneaza?