Pagini recente » Borderou de evaluare (job #9099) | Borderou de evaluare (job #1438139) | Borderou de evaluare (job #3246652) | Borderou de evaluare (job #2437978) | Borderou de evaluare (job #3261543)
Borderou de evaluare (job #3261543)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:11:13: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
11 | v[i]=0;
| ~~~~^~
main.cpp:10:19: note: within this loop
10 | for(int i=1; i<=10; i++)
| ~^~~~
main.cpp:26:19: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
26 | if(v[i]==1)
| ~~~^
main.cpp:25:19: note: within this loop
25 | for(i=1; i<=10; i++)
| ~^~~~
main.cpp:43:30: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
43 | v1[i]=v[i];
| ~~~^
main.cpp:41:31: note: within this loop
41 | for(int i=1; i<=10; i++)
| ~^~~~
main.cpp:11:13: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40, 43] is out of the bounds [0, 40] of object 'v' with type 'int [10]' [-Warray-bounds]
11 | v[i]=0;
| ~~~~^~
main.cpp:7:9: note: 'v' declared here
7 | int v[10],c[11],s1=0,s2=0,smax=0,i,nr=0,v1[11];
| ^
main.cpp:43:26: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [40, 43] is out of the bounds [0, 40] of object 'v' with type 'int [10]' [-Warray-bounds]
43 | v1[i]=v[i];
| ~~~~~^~~~~
main.cpp:7:9: note: 'v' declared here
7 | int v[10],c[11],s1=0,s2=0,smax=0,i,nr=0,v1[11];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 303kb | Raspuns corect !!! | 10 |
2 | 2ms | 303kb | Raspuns corect !!! | 10 |
3 | 2ms | 303kb | Raspuns corect !!! | 10 |
4 | 2ms | 303kb | Raspuns corect !!! | 10 |
5 | 2ms | 303kb | Raspuns corect !!! | 10 |
6 | 2ms | 303kb | Raspuns corect !!! | 10 |
7 | 2ms | 303kb | Raspuns corect !!! | 10 |
8 | 2ms | 303kb | Raspuns corect !!! | 10 |
9 | 2ms | 303kb | Raspuns corect !!! | 10 |
10 | 2ms | 303kb | Raspuns corect !!! | 10 |
Punctaj total | 100 |