Pagini recente »
Borderou de evaluare (job #738538)
Borderou de evaluare (job #738538)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:22:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
22 | for(i = 0 ;i < k ;i ++);
| ^~~
main.c:23:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
23 | fscanf(fin,"%d",&punctaje[i]);
| ^~~~~~
main.c:40:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
40 | for(i = 1;i <= n;i++)
| ^~~
main.c:42:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
42 | return 0;
| ^~~~~~
main.c:21:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | fscanf(fin,"%d%d",&n,&k);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:23:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | fscanf(fin,"%d",&punctaje[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:25:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | fscanf(fin,"%d",&nr);
| ^~~~~~~~~~~~~~~~~~~~
main.c:33:16: warning: 'maxnr' may be used uninitialized [-Wmaybe-uninitialized]
33 | for(i = 0;i <= maxnr; i++){
| ~~^~~~~~~~
main.c:18:13: note: 'maxnr' was declared here
18 | int n,k,j,maxnr,i,nr,poz;
| ^~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
2 ms
|
118 kb
|
Killed by Signal 11
|
0
|
2
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
3
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
4
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
5
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
6
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
7
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
8
|
1 ms
|
245 kb
|
Killed by Signal 11
|
0
|
9
|
1 ms
|
249 kb
|
Killed by Signal 11
|
0
|
10
|
2 ms
|
118 kb
|
Killed by Signal 11
|
0
|
Punctaj total
|
0
|