/in/foo.c: In function 'main':
/in/foo.c:35:17: warning: comparison between pointer and integer
35 | if (sum > max){
| ^
/in/foo.c:36:29: warning: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
36 | max = sum;
| ^
/in/foo.c:40:5: warning: array subscript -20 is outside array bounds of 'char[100][20]' [-Warray-bounds]
40 | printf("%s\n%d\n%d",names[max_index],max,all_sum);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:6:14: note: at offset -20 into object 'names' of size 2000
6 | char names[100][20];
| ^~~~~