int sum(int a[], int n){int sum = 0;for (int i = 0; i < n; i++){sum += a[i];}return sum;}void main(){ int a[] = {1,2 ,3, 4, 5}; printf("%d", sum(a, 5)); }
#include int main(){int x,y;cin>>x>>y;cout<return 0;}