Pagini recente » Borderou de evaluare (job #2263735) | Borderou de evaluare (job #159669) | Borderou de evaluare (job #1680109) | Borderou de evaluare (job #2055280) | Borderou de evaluare (job #2838419)
Borderou de evaluare (job #2838419)
Raport evaluator
Compilare:
main.cpp: In function 'void reinit()':
main.cpp:18:15: warning: iteration 6000004 invokes undefined behavior [-Waggressive-loop-optimizations]
18 | viz[i]=false;
| ~~~~~~^~~~~~
main.cpp:16:19: note: within this loop
16 | for(int i=1; i<=NMAX; i++)
| ^
main.cpp:18:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 6000005 is out of the bounds [0, 6000005] of object 'viz' with type 'bool [6000005]' [-Warray-bounds]
18 | viz[i]=false;
| ~~~~~~^~~~~~
main.cpp:10:6: note: 'viz' declared here
10 | bool viz[NMAX];
| ^~~
main.cpp:19:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [24000020, 24000023] is out of the bounds [0, 24000020] of object 'tata' with type 'int [6000005]' [-Warray-bounds]
19 | tata[i]=-1;
| ~~~~~~~^~~
main.cpp:11:15: note: 'tata' declared here
11 | int cif[NMAX],tata[NMAX];
| ^~~~
main.cpp:20:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [24000020, 24000023] is out of the bounds [0, 24000020] of object 'cif' with type 'int [6000005]' [-Warray-bounds]
20 | cif[i]=0;
| ~~~~~~^~
main.cpp:11:5: note: 'cif' declared here
11 | int cif[NMAX],tata[NMAX];
| ^~~
In function 'void reinit()',
inlined from 'void cautNumar(int, int)' at main.cpp:26:11:
main.cpp:18:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 6000005 is out of the bounds [0, 6000005] of object 'viz' with type 'bool [6000005]' [-Warray-bounds]
18 | viz[i]=false;
| ~~~~~~^~~~~~
main.cpp: In function 'void cautNumar(int, int)':
main.cpp:10:6: note: 'viz' declared here
10 | bool viz[NMAX];
| ^~~
In function 'void reinit()',
inlined from 'void cautNumar(int, int)' at main.cpp:26:11:
main.cpp:19:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [24000020, 24000023] is out of the bounds [0, 24000020] of object 'tata' with type 'int [6000005]' [-Warray-bounds]
19 | tata[i]=-1;
| ~~~~~~~^~~
main.cpp: In function 'void cautNumar(int, int)':
main.cpp:11:15: note: 'tata' declared here
11 | int cif[NMAX],tata[NMAX];
| ^~~~
In function 'void reinit()',
inlined from 'void cautNumar(int, int)' at main.cpp:26:11:
main.cpp:20:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [24000020, 24000023] is out of the bounds [0, 24000020] of object 'cif' with type 'int [6000005]' [-Warray-bounds]
20 | cif[i]=0;
| ~~~~~~^~
main.cpp: In function 'void cautNumar(int, int)':
main.cpp:11:5: note: 'cif' declared here
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2240ms | 61296kb | OK | 100 |
Punctaj total | 100 |