foo.cc: In function 'void bbcsd()':
foo.cc:28:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
28 | printf("%d\n", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
foo.cc: In function 'int main()':
foo.cc:92:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
92 | printf("%d\n", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
foo.cc: In function 'void getinit()':
foo.cc:33:28: warning: iteration 14 invokes undefined behavior [-Waggressive-loop-optimizations]
33 | bbarray[i] = 0;
| ~~~~~~~~~~~^~~
foo.cc:32:27: note: within this loop
32 | for(int i = 1 ; i <= 15 ; ++i) {
| ~~^~~~~
In function 'void getinit()',
inlined from 'int main()' at foo.cc:63:11:
foo.cc:33:28: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [120, 127] is out of the bounds [0, 120] of object 'bbarray' with type 'long long int [15]' [-Warray-bounds=]
33 | bbarray[i] = 0;
| ~~~~~~~~~~~^~~
foo.cc: In function 'int main()':
foo.cc:13:5: note: 'bbarray' declared here
13 | int bbarray[15];
| ^~~~~~~