Borderou de evaluare (job #534819)

Utilizator yaxleyyaxley yaxley Data 16 februarie 2011 11:49:29
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:55:18: error: ‘i’ was not declared in this scope if(a[c[st].nod][i]&&viz[i]==0) ^ user.cpp:55:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(a[c[st].nod][i]&&viz[i]==0) ^ user.cpp: In function ‘void citire()’: user.cpp:21:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&p,&k); ^ user.cpp:28:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&b[i].x,&b[i].y); ^ user.cpp:32:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { scanf("%d%d",&x1,&y1); ^ user.cpp: In function ‘int main()’: user.cpp:40:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu2.in","r",stdin); ^ user.cpp:41:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu2.out","w",stdout); ^

Ceva nu functioneaza?