Pagini recente » Borderou de evaluare (job #3253752) | Borderou de evaluare (job #2097198) | Borderou de evaluare (job #2177341) | Borderou de evaluare (job #2094337) | Borderou de evaluare (job #2697345)
Borderou de evaluare (job #2697345)
Raport evaluator
Compilare:
main.cpp: In function 'void Lee(int&, int&, int)':
main.cpp:52:37: warning: narrowing conversion of '(((int)nr.poziti::l) + dl[d])' from 'int' to 'short int' inside { } [-Wnarrowing]
q[ poz++ ] = { nr.l + dl[ d ], nr.c + dc[ d ] };
~~~~~^~~~~~~~~
main.cpp:52:53: warning: narrowing conversion of '(((int)nr.poziti::c) + dc[d])' from 'int' to 'short int' inside { } [-Wnarrowing]
q[ poz++ ] = { nr.l + dl[ d ], nr.c + dc[ d ] };
~~~~~^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'short int*' [-Wformat=]
fscanf( fin, "%d%d %d %d %d %d %d %d %d %d %d%d", &n, &tinta.l, &tinta.c, &ls1.l, &ls1.c, &ls2.l, &ls2.c, &rb1.l, &rb1.c, &rb2.l, &rb2.c, &m );
^
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 8 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 9 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 10 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 11 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 12 has type 'short int*' [-Wformat=]
main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 13 has type 'short int*' [-Wformat=]
main.cpp:72:33: warning: narrowing conversion of 'l' from 'int' to 'short int' inside { } [-Wnarrowing]
v[ 1 ] = { l, c };
^
main.cpp:72:33: warning: narrowing conversion of 'c' from 'int' to 'short int' inside { } [-Wnarrowing]
main.cpp:78:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if( ( int )( v[ 1 ].l - v[ 0 ].l ) * ( v[ 2 ].c - v[ 1 ].c ) == ( int )( v[ 1 ].c - v[ 0 ].c ) * ( v[ 2 ].l - v[ 1 ].l ) )
^
main.cpp: In function 'bool cmp(const poziti&, const poziti&)':
main.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:60:147: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d%d %d %d %d %d %d %d %d %d %d%d", &n, &tinta.l, &tinta.c, &ls1.l, &ls1.c, &ls2.l, &ls2.c, &rb1.l, &rb1.c, &rb2.l, &rb2.c, &m );
^
main.cpp:64:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d %d", &x, &y );
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 262kb | Primul numar corect | 1 |
2 | 2ms | 262kb | Primul numar corect | 1 |
3 | 4ms | 524kb | Primul numar corect | 1 |
4 | 13ms | 1441kb | Primul numar corect | 1 |
5 | 16ms | 1835kb | Primul numar corect | 1 |
6 | 41ms | 2883kb | Primul numar corect | 1 |
7 | 7ms | 974kb | Primul numar corect | 1 |
8 | 3ms | 524kb | Primul numar corect | 1 |
9 | 21ms | 2097kb | Primul numar corect | 1 |
10 | 68ms | 4718kb | Primul numar corect | 1 |
11 | 75ms | 4849kb | Primul numar corect | 1 |
12 | 165ms | 6684kb | Primul numar corect | 1 |
13 | 190ms | 8519kb | Primul numar corect | 1 |
14 | 226ms | 9961kb | Primul numar corect | 1 |
15 | 189ms | 12058kb | Primul numar corect | 1 |
16 | 175ms | 8519kb | Primul numar corect | 1 |
17 | 149ms | 8781kb | Primul numar corect | 1 |
18 | 238ms | 11796kb | Primul numar corect | 1 |
19 | 156ms | 6815kb | Primul numar corect | 1 |
20 | 155ms | 8650kb | Primul numar corect | 1 |
Punctaj total | 20 |