Pagini recente »
Borderou de evaluare (job #309726)
|
Borderou de evaluare (job #252981)
|
Borderou de evaluare (job #11606)
|
Borderou de evaluare (job #781465)
|
Borderou de evaluare (job #653824)
Borderou de evaluare (job #653824)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:12:23: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long long int *' [-Wformat=]
12 | fscanf(fin, "%d%d%d%d%d", &p,&k,&n ,&a, &b);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:12:27: warning: format '%d' expects argument of type 'int *', but argument 7 has type 'long long int *' [-Wformat=]
12 | fscanf(fin, "%d%d%d%d%d", &p,&k,&n ,&a, &b);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:42:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
42 | if(n=1){
| ^
main.c:62:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
62 | fprintf(fout,"%d", o);
| ~^ ~
| | |
| int long long int
| %lld
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d%d%d%d%d", &p,&k,&n ,&a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:35:12: warning: 'o' may be used uninitialized [-Wmaybe-uninitialized]
35 | if(o!=0){
| ^
main.c:36:12: warning: 'crs' may be used uninitialized in this function [-Wmaybe-uninitialized]
36 | if(des>=crs){
| ^
main.c:36:12: warning: 'des' may be used uninitialized in this function [-Wmaybe-uninitialized]
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
3 ms
|
114 kb
|
Incorect
|
0
|
2
|
1 ms
|
114 kb
|
Incorect
|
0
|
3
|
1 ms
|
114 kb
|
Incorect
|
0
|
4
|
1 ms
|
114 kb
|
Incorect
|
0
|
5
|
1 ms
|
114 kb
|
Incorect
|
0
|
6
|
1 ms
|
114 kb
|
OK
|
5
|
7
|
1 ms
|
114 kb
|
OK
|
5
|
8
|
1 ms
|
114 kb
|
Incorect
|
0
|
9
|
1 ms
|
114 kb
|
Incorect
|
0
|
10
|
1 ms
|
114 kb
|
OK
|
5
|
11
|
1 ms
|
114 kb
|
Incorect
|
0
|
12
|
1 ms
|
114 kb
|
Incorect
|
0
|
13
|
1 ms
|
114 kb
|
Incorect
|
0
|
14
|
1 ms
|
114 kb
|
OK
|
5
|
15
|
1 ms
|
114 kb
|
Incorect
|
0
|
16
|
1 ms
|
114 kb
|
OK
|
5
|
17
|
1 ms
|
114 kb
|
Incorect
|
0
|
18
|
1 ms
|
114 kb
|
OK
|
5
|
19
|
1 ms
|
114 kb
|
OK
|
5
|
20
|
1 ms
|
114 kb
|
Incorect
|
0
|
Punctaj total
|
35
|