prog.c:4:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main() {
^~~~
prog.c: In function ‘main’:
prog.c:11:5: error: ‘sum’ undeclared (first use in this function); did you mean ‘num’?
sum += arr[i];
^~~
num
prog.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
prog.c:17:5: warning: format not a string literal and no format arguments [-Wformat-security]
printf("점검:" + arr[i]);
^~~~~~
prog.c:28:4: warning: implicit declaration of function ‘system’ [-Wimplicit-function-declaration]
system("pause");
^~~~~~