Borderou de evaluare (job #1536561)

Utilizator radu_uniculeu sunt radu radu_unicul Data 26 noiembrie 2015 13:08:16
Problema Alee Status done
Runda Teme Pregatire ACM Unibuc 2013 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool ok(int, int)’: user.cpp:8:30: error: ‘dist’ was not declared in this scope if(x>0&&y>0&&y<=n&&x<=n&&dist[x][y]!=-1&&!flag[x][y]) return 1; ^ user.cpp: In function ‘int solve()’: user.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: 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("alee.in","r",stdin); ^ user.cpp:42:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alee.out","w",stdout); ^ user.cpp:43:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ user.cpp:46:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&a,&b); ^ user.cpp:49:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d",&startx,&starty,&endx,&endy); ^

Ceva nu functioneaza?