Pagini recente » Borderou de evaluare (job #316743) | Borderou de evaluare (job #982602) | Borderou de evaluare (job #2767329) | Borderou de evaluare (job #176442) | Borderou de evaluare (job #2838418)
Borderou de evaluare (job #2838418)
Raport evaluator
Compilare:
main.cpp: In function 'void reinit()':
main.cpp:18:15: warning: iteration 5000004 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 5000005 is out of the bounds [0, 5000005] of object 'viz' with type 'bool [5000005]' [-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 [20000020, 20000023] is out of the bounds [0, 20000020] of object 'tata' with type 'int [5000005]' [-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 [20000020, 20000023] is out of the bounds [0, 20000020] of object 'cif' with type 'int [5000005]' [-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 5000005 is out of the bounds [0, 5000005] of object 'viz' with type 'bool [5000005]' [-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 [20000020, 20000023] is out of the bounds [0, 20000020] of object 'tata' with type 'int [5000005]' [-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 [20000020, 20000023] is out of the bounds [0, 20000020] of object 'cif' with type 'int [5000005]' [-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 | 2208ms | 52281kb | OK | 100 |
Punctaj total | 100 |