Borderou de evaluare (job #1505331)

Utilizator MKLOLDragos Ristache MKLOL Data 19 octombrie 2015 00:19:55
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int comp(int)’: user.cpp:18:5: error: ‘ret’ was not declared in this scope ret = 0; ^ user.cpp: In function ‘int main()’: user.cpp:25:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aib.in","r",stdin); ^ user.cpp:26:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aib.out","w",stdout); ^ user.cpp:27:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&M); ^ user.cpp:31:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:36:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^ user.cpp:38:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { scanf("%d",&z); ^ user.cpp:42:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { scanf("%d",&z); ^ user.cpp: In function ‘int comp(int)’: user.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?