Borderou de evaluare (job #1860622)

Utilizator alex2kamebossPuscasu Alexandru alex2kameboss Data 28 ianuarie 2017 11:19:43
Problema AI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 63

Raport evaluator

Compilare: user.cpp: In function ‘void barare(nod, int)’: user.cpp:49:15: warning: unused variable ‘x’ [-Wunused-variable] short x,y; ^ user.cpp:49:17: warning: unused variable ‘y’ [-Wunused-variable] short x,y; ^ user.cpp: In function ‘void solve1()’: user.cpp:86:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(m1[i][j]==-1) ^ user.cpp: In function ‘int main()’: user.cpp:153:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d\n", &n); ^ user.cpp:162:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<k; i++) ^ user.cpp:164: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:164:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:151: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:152: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:153:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:154: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:160:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&k); ^ user.cpp:164: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
10ms536kbOK5
20ms608kbPrimul numar corect1
30ms848kbRaspuns gresit0
44ms1688kbOK5
58ms2016kbPrimul numar corect1
620ms2904kbOK5
70ms1212kbOK5
80ms796kbPrimul numar corect1
98ms2200kbPrimul numar corect1
1028ms4380kbOK5
1136ms4380kbPrimul numar corect1
12104ms5692kbOK5
1352ms6648kbOK5
1480ms7428kbOK5
15124ms8292kbPrimul numar corect1
16116ms8288kbPrimul numar corect1
1720ms6652kbPrimul numar corect1
1880ms8296kbOK5
1972ms5688kbOK5
20132ms8296kbOK5
Punctaj total63

Ceva nu functioneaza?