Pagini recente » Borderou de evaluare (job #1919346) | Borderou de evaluare (job #2014369) | Borderou de evaluare (job #31125) | Borderou de evaluare (job #1584579) | Borderou de evaluare (job #2955863)
Borderou de evaluare (job #2955863)
Raport evaluator
Compilare:
main.cpp: In function 'void initiate()':
main.cpp:20:15: warning: iteration 6000004 invokes undefined behavior [-Waggressive-loop-optimizations]
20 | viz[i]=false;
| ~~~~~~^~~~~~
main.cpp:18:19: note: within this loop
18 | for(int i=1; i<=NMAX; i++)
| ^
main.cpp:20: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]
20 | viz[i]=false;
| ~~~~~~^~~~~~
main.cpp:12:6: note: 'viz' declared here
12 | bool viz[NMAX];
| ^~~
main.cpp:21: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]
21 | tata[i]=-1;
| ~~~~~~~^~~
main.cpp:13:15: note: 'tata' declared here
13 | int cif[NMAX],tata[NMAX];
| ^~~~
main.cpp:22: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]
22 | cif[i]=0;
| ~~~~~~^~
main.cpp:13:5: note: 'cif' declared here
13 | int cif[NMAX],tata[NMAX];
| ^~~
In function 'void initiate()',
inlined from 'void cautNumar(int, int)' at main.cpp:28:13:
main.cpp:20: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]
20 | viz[i]=false;
| ~~~~~~^~~~~~
main.cpp: In function 'void cautNumar(int, int)':
main.cpp:12:6: note: 'viz' declared here
12 | bool viz[NMAX];
| ^~~
In function 'void initiate()',
inlined from 'void cautNumar(int, int)' at main.cpp:28:13:
main.cpp:21: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]
21 | tata[i]=-1;
| ~~~~~~~^~~
main.cpp: In function 'void cautNumar(int, int)':
main.cpp:13:15: note: 'tata' declared here
13 | int cif[NMAX],tata[NMAX];
| ^~~~
In function 'void initiate()',
inlined from 'void cautNumar(int, int)' at main.cpp:28:13:
main.cpp:22: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]
22 | cif[i]=0;
| ~~~~~~^~
main.cpp: In function 'void cautNumar(int, int)':
main.cpp:13:5: note: 'cif' declared here
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 968ms | 61194kb | OK | 100 |
Punctaj total | 100 |