Borderou de evaluare (job #1885411)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 19 februarie 2017 21:17:16
Problema Tsah Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:34: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[2001]’ [-Wformat=] fscanf(fi,"%s" ,&v[i&1]); ^ user.cpp:29:31: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] if(v[i&1][j]!=v[1-i&1][j]) ^ user.cpp:37:20: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] if(v[1-i&1][j-1]==v[i&1][j]) ^ user.cpp:38:39: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] dp[i&1][j]=getmin(dp[1-i&1][j-1]+1,getmin(precl[j],precc[j])); ^ user.cpp:41:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(v[i&1][j]=='1') ^ user.cpp:15:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d " ,&t); ^ user.cpp:22:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d " ,&n); ^ user.cpp:25:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%s" ,&v[i&1]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1148ms464kbOK50100
2300ms460kbOK50
Punctaj total100

Ceva nu functioneaza?