rr.cpp:3:11: error: ‘::main’ must return ‘int’
void main()
^
rr.cpp: In function ‘int main()’:
rr.cpp:7:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%d %d %d", &arr[0], &arr[1], &arr[2]);
^
rr.cpp:7:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=]
rr.cpp:7:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=]
rr.cpp:9:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%d\n", arr[0] + arr[1] + arr[2]);
^
rr.cpp:7:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &arr[0], &arr[1], &arr[2]);
^