Borderou de evaluare (job #1255764)

Utilizator gabimoiseMoise Gabriel gabimoise Data 5 noiembrie 2014 08:49:33
Problema Lacuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:72:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a[x-1][y]=a[x][y]+1) x--; ^ user.cpp:73:38: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (a[x][y-1]=a[x][y]+1) y--; ^ user.cpp:74:46: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (a[x+1][y]=a[x][y]+1) x++; ^ user.cpp:75:54: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (a[x][y+1]=a[x][y]+1) y++; ^ user.cpp:36:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lacuri.in","r",stdin); ^ user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lacuri.out","w",stdout); ^ user.cpp:38:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:41:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbNumar de lacuri gresit0
20ms456kbNumar de lacuri gresit0
30ms460kbNumar de lacuri gresit0
40ms456kbNumar de lacuri gresit0
50ms476kbNumar de lacuri gresit0
60ms476kbNumar de lacuri gresit0
70ms472kbNumar de lacuri gresit0
80ms444kbNumar de lacuri gresit0
90ms464kbNumar de lacuri gresit0
100ms440kbNumar de lacuri gresit0
Punctaj total0

Ceva nu functioneaza?