Pagini recente » Borderou de evaluare (job #208554) | Borderou de evaluare (job #3206750) | Borderou de evaluare (job #1765413) | Borderou de evaluare (job #2362402) | Borderou de evaluare (job #1860614)
Borderou de evaluare (job #1860614)
Raport evaluator
Compilare:
user.cpp: In function ‘void barare(nod, int)’:
user.cpp:61:62: warning: operation on ‘m1[(((int)x) + (dx * d))][(((int)y) - (dy * d))]’ may be undefined [-Wsequence-point]
m1[x+dx*d][y-dy*d]=m1[x+dx*d][y-dy*d]=val;
^
user.cpp: In function ‘void solve1()’:
user.cpp:77:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(m1[i][j]==-1)
^
user.cpp: In function ‘int main()’:
user.cpp:144:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d\n", &n);
^
user.cpp:153:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<k; i++)
^
user.cpp:155: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:155:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:142: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:143: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:144:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:145: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:151:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
user.cpp:155: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 | 540kb | OK | 5 |
2 | 0ms | 616kb | Primul numar corect | 1 |
3 | 0ms | 852kb | Raspuns gresit | 0 |
4 | 4ms | 1696kb | OK | 5 |
5 | 8ms | 2020kb | Primul numar corect | 1 |
6 | 20ms | 2908kb | OK | 5 |
7 | 0ms | 1216kb | OK | 5 |
8 | 0ms | 808kb | OK | 5 |
9 | 8ms | 2208kb | Primul numar corect | 1 |
10 | 24ms | 4384kb | OK | 5 |
11 | 36ms | 4380kb | OK | 5 |
12 | 104ms | 5700kb | OK | 5 |
13 | 48ms | 6652kb | OK | 5 |
14 | 80ms | 7428kb | OK | 5 |
15 | 124ms | 8288kb | Primul numar corect | 1 |
16 | 116ms | 8296kb | OK | 5 |
17 | 24ms | 6656kb | OK | 5 |
18 | 64ms | 8292kb | OK | 5 |
19 | 68ms | 5688kb | OK | 5 |
20 | 132ms | 8296kb | OK | 5 |
Punctaj total | 79 |