Pagini recente »
Borderou de evaluare (job #756028)
|
Borderou de evaluare (job #547206)
|
Borderou de evaluare (job #802731)
|
Borderou de evaluare (job #467742)
|
Borderou de evaluare (job #647278)
Borderou de evaluare (job #647278)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:33:24: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
33 | dist+=(int)sqrt(100*100+100*100);
| ^~~~
main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt'
2 | #include <stdlib.h>
+++ |+#include <math.h>
3 | #define MAXK 1000
main.c:33:24: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
33 | dist+=(int)sqrt(100*100+100*100);
| ^~~~
main.c:33:24: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:38:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
38 | printf("parc %d\n",dist);
| ~^ ~~~~
| | |
| int long long int
| %lld
main.c:51:32: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
51 | dist+=(int)sqrt(100*100+100*100);
| ^~~~
main.c:51:32: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:54:49: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
54 | printf("%d jos/stanga parc %d\n",pc[ci]-cc,dist);
| ~^ ~~~~
| | |
| int long long int
| %lld
main.c:63:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
63 | printf("jos/stanga %d\n",dist);
| ~^ ~~~~
| | |
| int long long int
| %lld
main.c:69:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
69 | printf("jos/stanga %d\n",dist);
| ~^ ~~~~
| | |
| int long long int
| %lld
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d%d",&m,&n);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin,"%d",&k);
| ^~~~~~~~~~~~~~~~~~~
main.c:16:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | fscanf(fin,"%d%d",&pl[i],&pc[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
3 ms
|
114 kb
|
Incorect
|
0
|
|
2
|
1 ms
|
114 kb
|
OK
|
5
|
|
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
|
Incorect
|
0
|
|
7
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
8
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
9
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
10
|
1 ms
|
114 kb
|
Incorect
|
0
|
|
11
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
12
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
13
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
14
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
15
|
1 ms
|
118 kb
|
Incorect
|
0
|
|
16
|
13 ms
|
118 kb
|
Incorect
|
0
|
|
17
|
7 ms
|
118 kb
|
Incorect
|
0
|
|
18
|
11 ms
|
114 kb
|
Incorect
|
0
|
|
19
|
18 ms
|
245 kb
|
Incorect
|
0
|
|
20
|
17 ms
|
118 kb
|
Incorect
|
0
|
|
Punctaj total
|
5
|