0_0_34762964_13356.cpp:9:11: error: '::main' must return 'int'
void main()
^
0_0_34762964_13356.cpp: In function 'int main()':
0_0_34762964_13356.cpp:27:40: error: cannot convert 'int (*)[100]' to 'int*' for argument '1' to 'int fun(int*, int, int)'
printf("%d ",fun(&a,x,y));
^
0_0_34762964_13356.cpp:38:40: error: cannot convert 'int (*)[100]' to 'int*' for argument '1' to 'int fun(int*, int, int)'
printf("%d ",fun(&a,x,y));
^
0_0_34762964_13356.cpp:40:43: error: cannot convert 'int (*)[100]' to 'int*' for argument '1' to 'int fun(int*, int, int)'
printf("%d",fun(&a,n-s+1,n));
^
|