Borderou de evaluare (job #1504831)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 18 octombrie 2015 13:37:26
Problema Cub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void deplaseaza(int&, int&, int&, int)’: user.cpp:11:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(dir==4) if(c==1) f=6,c=l,l=1; else c=c-1; ^ user.cpp:17:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(dir==4) if(c==1) f=6,c=n; else c=c-1; ^ user.cpp:23:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(dir==4) if(c==n) f=6,c=l,l=n; else c=c+1; ^ user.cpp:29:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(dir==4) if(c==n) f=6,c=1; else c=c+1; ^ user.cpp:35:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(dir==4) if(c==1) f=2,c=n; else c=c-1; ^ user.cpp:41:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(dir==4) if(c==1) f=4,c=n; else c=c-1; ^ user.cpp: In function ‘int main()’: user.cpp:76:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(lg[tr[i].f][tr[i].l][tr[i].c]!=0) ^ user.cpp:45:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cub2.in","r",stdin); ^ user.cpp:46:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cub2.out","w",stdout); ^ user.cpp:48:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d",&n,&k,&fi,&li,&ci); ^ user.cpp:50:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&tr[i].f,&tr[i].l,&tr[i].c); ^ user.cpp:54:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[f][i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms200kbKilled by signal 11(SIGSEGV).0
20ms204kbKilled by signal 11(SIGSEGV).0
30ms204kbKilled by signal 11(SIGSEGV).0
40ms200kbKilled by signal 11(SIGSEGV).0
50ms204kbKilled by signal 11(SIGSEGV).0
60ms204kbKilled by signal 11(SIGSEGV).0
70ms204kbKilled by signal 11(SIGSEGV).0
80ms204kbKilled by signal 11(SIGSEGV).0
90ms208kbKilled by signal 11(SIGSEGV).0
100ms200kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?