Pagini recente »
Borderou de evaluare (job #606048)
|
Borderou de evaluare (job #25479)
|
Borderou de evaluare (job #550969)
|
Borderou de evaluare (job #500722)
|
Borderou de evaluare (job #756238)
Borderou de evaluare (job #756238)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:9:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
9 | fscanf(fin, "%d%d", &p, &n);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:9:21: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=]
9 | fscanf(fin, "%d%d", &p, &n);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:18:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
18 | fprintf(fout, "%d\n", nr_cif);
| ~^ ~~~~~~
| | |
| int long long int
| %lld
main.c:19:19: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
19 | long long m = sqrt(2*n);
| ^~~~
main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt'
2 | #include <stdlib.h>
+++ |+#include <math.h>
3 |
main.c:19:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
19 | long long m = sqrt(2*n);
| ^~~~
main.c:19:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:22:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
22 | fprintf(fout, "%d", m);
| ~^ ~
| | |
| int long long int
| %lld
main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin, "%d%d", &p, &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
1 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
2
|
2 ms
|
143 kb
|
1. incorect; 2. incorect
|
0
|
|
3
|
1 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
4
|
1 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
5
|
3 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
6
|
2 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
7
|
1 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
8
|
2 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
9
|
1 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
10
|
1 ms
|
245 kb
|
1. incorect; 2. incorect
|
0
|
|
Punctaj total
|
0
|