[ create a new paste ] login | about

Link: http://codepad.org/CVXc2Exn    [ raw code | output | fork ]

C, pasted on Jul 17:
#include <stdio.h>
#include <stdlib.h>

Int solucion(Int A[],Int N){
int p=0;
int suma=A[p];
min=100;
for(i=1;i<=N;i++){
for(j=p+1;j<=N;j++){
suma=suma+A[i];
sumabs=abs(suma);
    if(sumabs<min){min=sumabs;}


}
p=p+1;
suma=A[p];

}
return min;

}


Output:
1
Line 4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'solucion'


Create a new paste based on this one


Comments: