Pagini recente »
Borderou de evaluare (job #257516)
|
Borderou de evaluare (job #488639)
|
Borderou de evaluare (job #570871)
|
Borderou de evaluare (job #184324)
|
Borderou de evaluare (job #653349)
Borderou de evaluare (job #653349)
Raport evaluator
Compilare:
main.c:4:5: warning: conflicting types for built-in function 'sqrt'; expected 'double(double)' [-Wbuiltin-declaration-mismatch]
4 | int sqrt(int n) {
| ^~~~
main.c:3:1: note: 'sqrt' is declared in header '<math.h>'
2 | #include <stdlib.h>
+++ |+#include <math.h>
3 |
main.c: In function 'main':
main.c:18:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | fscanf(pIn, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c: In function 'sqrt':
main.c:10:12: warning: 'rez' may be used uninitialized in this function [-Wmaybe-uninitialized]
10 | return rez;
| ^~~
main.c: In function 'main':
main.c:25:22: warning: 'rez' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | for(int i = 0; i < rad; i++) {
| ~~^~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
114 kb
|
OK
|
10
|
2
|
1 ms
|
114 kb
|
OK
|
10
|
3
|
1 ms
|
114 kb
|
Incorect
|
0
|
4
|
1 ms
|
114 kb
|
OK
|
10
|
5
|
1 ms
|
114 kb
|
OK
|
10
|
6
|
1 ms
|
114 kb
|
Incorect
|
0
|
7
|
1 ms
|
114 kb
|
OK
|
10
|
8
|
1 ms
|
114 kb
|
OK
|
10
|
9
|
1 ms
|
114 kb
|
Incorect
|
0
|
10
|
1 ms
|
114 kb
|
OK
|
10
|
Punctaj total
|
70
|