Borderou de evaluare (job #1593)

Utilizator avatar belicosus razvanloga belicosus IP ascuns
Problemă Rucsac fractionar Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 24 oct. 2012 10:07:44 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:7: error: expected initializer before ‘v’ user.cpp: In function ‘bool cmp(int, int)’: user.cpp:14:14: error: request for member ‘p’ in ‘a’, which is of non-class type ‘int’ user.cpp:14:18: error: request for member ‘g’ in ‘b’, which is of non-class type ‘int’ user.cpp:14:22: error: request for member ‘g’ in ‘a’, which is of non-class type ‘int’ user.cpp:14:26: error: request for member ‘p’ in ‘b’, which is of non-class type ‘int’ user.cpp: In function ‘int main()’: user.cpp:21:13: error: ‘v’ was not declared in this scope user.cpp:22:10: error: ‘v’ was not declared in this scope user.cpp:25:9: error: ‘a’ was not declared in this scope user.cpp:28:13: error: ‘p’ was not declared in this scope user.cpp:31:9: error: ‘p’ was not declared in this scope user.cpp:33:10: error: ‘p’ was not declared in this scope user.cpp: In function ‘bool cmp(int, int)’: user.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]