Pagini recente » Borderou de evaluare (job #311777) | Borderou de evaluare (job #2638950) | Cod sursa (job #405751) | Cod sursa (job #76809) | Borderou de evaluare (job #1841449)
Borderou de evaluare (job #1841449)
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:168:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<k; i++)
^
user.cpp:170: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:170: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:166:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.cpp:170: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 |
| 1 | 0ms | 536kb | OK | 5 |
| 2 | 0ms | 616kb | Primul numar corect | 1 |
| 3 | 0ms | 852kb | Raspuns gresit | 0 |
| 4 | 4ms | 1700kb | OK | 5 |
| 5 | 8ms | 2024kb | OK | 5 |
| 6 | 20ms | 2916kb | OK | 5 |
| 7 | 0ms | 1220kb | OK | 5 |
| 8 | 0ms | 804kb | Primul numar corect | 1 |
| 9 | 8ms | 2204kb | Primul numar corect | 1 |
| 10 | 28ms | 4388kb | OK | 5 |
| 11 | 36ms | 4384kb | Primul numar corect | 1 |
| 12 | 104ms | 5696kb | OK | 5 |
| 13 | 48ms | 6652kb | OK | 5 |
| 14 | 76ms | 7428kb | OK | 5 |
| 15 | 124ms | 8288kb | Primul numar corect | 1 |
| 16 | 116ms | 8300kb | Primul numar corect | 1 |
| 17 | 20ms | 6656kb | Primul numar corect | 1 |
| 18 | 80ms | 8300kb | OK | 5 |
| 19 | 72ms | 5684kb | OK | 5 |
| 20 | 132ms | 8296kb | OK | 5 |
| Punctaj total | 67 |