Pagini recente »
Borderou de evaluare (job #6609)
|
Borderou de evaluare (job #745827)
|
Borderou de evaluare (job #577756)
|
Borderou de evaluare (job #245944)
|
Borderou de evaluare (job #703881)
Borderou de evaluare (job #703881)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:15:19: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
15 | aa[i] = bb[i] = -1;
| ~~~~~~^~~~
main.cpp:12:19: note: within this loop
12 | for(int i = 0; i <= 9; i = i + 1){
| ~~^~~~
main.cpp:30:29: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
30 | f[j] = f[j] + ( aa[i] == j ) + (bb[i] == j);
| ~~~~^
main.cpp:29:22: note: within this loop
29 | for(int i = 0; i <= 9; i = i + 1){
| ~~^~~~
main.cpp:15:19: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'bb' with type 'int [9]' [-Warray-bounds]
15 | aa[i] = bb[i] = -1;
| ~~~~~~^~~~
main.cpp:7:48: note: 'bb' declared here
7 | int a, b, f[10], fa[10], fb[10], c[10], aa[9], bb[9];
| ^~
main.cpp:15:11: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'aa' with type 'int [9]' [-Warray-bounds]
15 | aa[i] = bb[i] = -1;
| ~~~~~~^~~~~~~~~~~~
main.cpp:7:41: note: 'aa' declared here
7 | int a, b, f[10], fa[10], fb[10], c[10], aa[9], bb[9];
| ^~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (b)
|
5
|
2
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (a)
|
0
|
3
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (a)
|
0
|
4
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (a)
|
0
|
5
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (b)
|
5
|
6
|
2 ms
|
507 kb
|
Raspuns incorect la punctul (b)
|
5
|
7
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (a)
|
0
|
8
|
1 ms
|
245 kb
|
OK
|
10
|
9
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (a)
|
0
|
10
|
1 ms
|
245 kb
|
Raspuns incorect la punctul (b)
|
5
|
Punctaj total
|
30
|