Pagini recente »
Borderou de evaluare (job #797618)
Borderou de evaluare (job #797618)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:32:6: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
32 | else
| ^~~~
main.c:34:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
34 | anterior = a;
| ^~~~~~~~
main.c:49:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
49 | if (prezent - anterior > 0 && a - prezent < 0 || prezent - anterior < 0 && a - prezent > 0)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.c:49:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
49 | if (prezent - anterior > 0 && a - prezent < 0 || prezent - anterior < 0 && a - prezent > 0)
| ^~
main.c:51:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
51 | anterior=prezent;
| ^~~~~~~~
main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d", &a);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin, "%d", &b);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:19:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(fin, "%d", &anterior);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:21:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | fscanf(fin, "%d", &i);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:27:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | fscanf(fin, "%d", &a);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:28:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | fscanf(fin, "%d", &b);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:39:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:40:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | fscanf(fin, "%d", &anterior);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:41:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | fscanf(fin, "%d", &b);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:42:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
Incorect
|
0
|
2
|
1 ms
|
245 kb
|
Incorect
|
0
|
3
|
1 ms
|
245 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
Incorect
|
0
|
5
|
1 ms
|
245 kb
|
Incorect
|
0
|
6
|
1 ms
|
245 kb
|
Incorect
|
0
|
7
|
1 ms
|
245 kb
|
Incorect
|
0
|
8
|
1 ms
|
245 kb
|
Incorect
|
0
|
9
|
1 ms
|
266 kb
|
Incorect
|
0
|
10
|
1 ms
|
245 kb
|
Incorect
|
0
|
Punctaj total
|
0
|