Pagini recente »
Borderou de evaluare (job #656020)
|
Borderou de evaluare (job #680396)
|
Borderou de evaluare (job #189288)
|
Borderou de evaluare (job #683736)
|
Borderou de evaluare (job #814295)
Borderou de evaluare (job #814295)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:13:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | fscanf(fin, "%d", &culori);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:17:15: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
17 | if(arr[i]>0) cnt++;
| ~~~^~~
main.c:16:15: note: within this loop
16 | for(i=0; i<11; i++){
| ~^~~
main.c:27:16: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
27 | if(arr2[i]!=0){
| ~~~~^~~
main.c:26:15: note: within this loop
26 | for(i=0; i<11; i++){
| ~^~~
main.c:19:41: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]
19 | for(j=0; j<11; j++) arr2[j] = 0;
| ~~~~~~~~^~~
main.c:19:23: note: within this loop
19 | for(j=0; j<11; j++) arr2[j] = 0;
| ~^~~
main.c:19:41: warning: '__builtin_memset' forming offset [40, 43] is out of the bounds [0, 40] of object 'arr2' with type 'int[10]' [-Warray-bounds=]
19 | for(j=0; j<11; j++) arr2[j] = 0;
| ~~~~~~~~^~~
main.c:3:14: note: 'arr2' declared here
3 | int arr[10], arr2[10];
| ^~~~
| 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
|
507 kb
|
Incorect
|
0
|
|
7
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
8
|
1 ms
|
266 kb
|
Incorect
|
0
|
|
9
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
10
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
Punctaj total
|
0
|