Borderou de evaluare (job #1541543)

Utilizator Matei_IgnutaMatei Ignuta Matei_Ignuta Data 4 decembrie 2015 11:00:51
Problema Vila Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:55:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(mat[i][j]='2') ^ user.cpp:67:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] int arieC = arii[mat[i - 1][j]]; ^ user.cpp:69:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] arieC += arii[mat[i + 1][j]]; ^ user.cpp:71:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] arieC += arii[mat[i][j - 1]]; ^ user.cpp:73:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] arieC += arii[mat[i][j + 1]]; ^ user.cpp:25:18: warning: variable ‘coordx’ set but not used [-Wunused-but-set-variable] int arieMaxC,coordx,coordy; ^ user.cpp:25:25: warning: variable ‘coordy’ set but not used [-Wunused-but-set-variable] int arieMaxC,coordx,coordy; ^ user.cpp:61:9: warning: unused variable ‘arieC’ [-Wunused-variable] int arieC=0; ^ user.cpp:26:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vila.in","r",stdin); ^ user.cpp:27:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vila.out","w",stdout); ^ user.cpp:31:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&m,&n); ^ user.cpp:33:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(1+mat[i]); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:33:23: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccsLgL7T.o: In function `main': user.cpp:(.text.startup+0x85): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbIncorect0
20ms280kbIncorect0
30ms568kbIncorect0
40ms544kbIncorect0
50ms476kbIncorect0
60ms308kbIncorect0
70ms468kbIncorect0
80ms312kbIncorect0
90ms316kbIncorect0
100ms584kbIncorect0
Punctaj total0

Ceva nu functioneaza?