Main.cpp: In function 'int main()':
Main.cpp:12:13: warning: iteration 8 invokes undefined behavior [-Waggressive-loop-optimizations]
12 | tbonus[i] = INT_MAX;
| ^
Main.cpp:10:15: note: within this loop
10 | for(int i=1;i<=9;i++)
| ~^~~
Main.cpp:16:9: warning: iteration 8 invokes undefined behavior [-Waggressive-loop-optimizations]
16 | cnt[i]=0;
| ~~~~~~^~
Main.cpp:14:15: note: within this loop
14 | for(int i=1;i<=9;i++)
| ~^~~
Main.cpp:16:9: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'cnt' with type 'int [9]' [-Warray-bounds]
16 | cnt[i]=0;
| ~~~~~~^~
Main.cpp:9:9: note: 'cnt' declared here
9 | int t, cnt[9],time,p1,p2,sc1=0,sc2=0, tbonus[9];
| ^~~