Borderou de evaluare (job #1841432)

Utilizator alex2kamebossPuscasu Alexandru alex2kameboss Data 5 ianuarie 2017 17:12:44
Problema AI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 63

Raport evaluator

Compilare: user.cpp: In function ‘void barare()’: user.cpp:36:42: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] else if(abs(s1.x-t.x)==abs(s1.y-t.y) && (s1.x-t.x)%2==1 || (s1.x-t.x)%2==-1) ^ user.cpp:66:42: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] else if(abs(s2.x-t.x)==abs(s2.y-t.y) && (s2.x-t.x)%2==1 || (s2.x-t.x)%2==-1) ^ user.cpp: In function ‘void solve1()’: user.cpp:93:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(m1[i][j]==-1) ^ user.cpp: In function ‘int main()’: user.cpp:160:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d\n", &n); ^ user.cpp:167:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<k; i++) ^ user.cpp:169:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("\n%d %d", &x, &y); ^ user.cpp:169:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:158:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ai.in","r",stdin); ^ user.cpp:159:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ai.out","w",stdout); ^ user.cpp:160:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:161:113: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d %d %d %d %d %d %d\n", &t.x, &t.y, &s1.x, &s1.y, &s2.x, &s2.y, &r1.x, &r1.y, &r2.x, &r2.y); ^ user.cpp:165:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^ user.cpp:169:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n%d %d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms540kbPrimul numar corect1
20ms616kbPrimul numar corect1
30ms852kbRaspuns gresit0
44ms1692kbOK5
58ms2024kbOK5
620ms2920kbOK5
70ms1220kbOK5
80ms804kbPrimul numar corect1
98ms2200kbPrimul numar corect1
1028ms4388kbOK5
1136ms4384kbPrimul numar corect1
12104ms5696kbOK5
1352ms6652kbOK5
1488ms7428kbOK5
15124ms8288kbPrimul numar corect1
16116ms8296kbPrimul numar corect1
1720ms6660kbPrimul numar corect1
1880ms8304kbOK5
1968ms5692kbOK5
20132ms8300kbOK5
Punctaj total63

Ceva nu functioneaza?