Pagini recente » Borderou de evaluare (job #430949) | Borderou de evaluare (job #738152) | Borderou de evaluare (job #2839404) | Borderou de evaluare (job #1056286) | Borderou de evaluare (job #1079832)
Borderou de evaluare (job #1079832)
Raport evaluator
Compilare:
user.cpp: In function ‘int lcol(char (*)[3])’:
user.cpp:21:26: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
{if (g[i][1] == g[i][2] && g[i][3] == '.' || g[i][1] == g[i][3] && g[i][2] == '.' || g[i][3] == g[i][2] && g[i][1] == '.')
^
user.cpp:21:106: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
{if (g[i][1] == g[i][2] && g[i][3] == '.' || g[i][1] == g[i][3] && g[i][2] == '.' || g[i][3] == g[i][2] && g[i][1] == '.')
^
user.cpp:23:25: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (g[1][i] == g[2][i] && g[3][i] == '.' || g[1][i] == g[3][i] && g[2][i] == '.' || g[3][i] == g[2][i] && g[1][i] == '.')
^
user.cpp:23:105: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (g[1][i] == g[2][i] && g[3][i] == '.' || g[1][i] == g[3][i] && g[2][i] == '.' || g[3][i] == g[2][i] && g[1][i] == '.')
^
user.cpp: In function ‘int main()’:
user.cpp:70:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if((ok == 0 || n==0&&m>1 || m==0 && n>1)&&ok2==0)
^
user.cpp:70:36: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if((ok == 0 || n==0&&m>1 || m==0 && n>1)&&ok2==0)
^
user.cpp:72:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(ok && !ok3 && ok2==0)
^
user.cpp:50:42: warning: array subscript is above array bounds [-Warray-bounds]
{if (g[i][1]==g[i][2] && g[i][2]==g[i][3])
^
user.cpp:53:8: warning: array subscript is above array bounds [-Warray-bounds]
if(g[3][i]==g[1][i] && g[1][i]==g[2][i])
^
user.cpp:9:39: warning: array subscript is above array bounds [-Warray-bounds]
{ if (((g[1][1] == g[2][2]) && g[3][3] == '.') || ((g[2][2] == g[3][3]) && g[1][1] == '.') || ((g[3][3] == g[1][1])&& g[2][2] == '.'))
^
user.cpp:9:71: warning: array subscript is above array bounds [-Warray-bounds]
{ if (((g[1][1] == g[2][2]) && g[3][3] == '.') || ((g[2][2] == g[3][3]) && g[1][1] == '.') || ((g[3][3] == g[1][1])&& g[2][2] == '.'))
^
user.cpp:14:15: warning: array subscript is above array bounds [-Warray-bounds]
{ if (((g[1][3] == g[2][2]) && g[3][1] == '.') || ((g[2][2] == g[3][1]) && g[1][3] == '.') || ((g[3][1] == g[1][3])&& g[2][2] == '.'))
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 368kb | Time limit exceeded. | 0 |
Punctaj total | 0 |