Borderou de evaluare (job #1865438)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 1 februarie 2017 19:03:51
Problema Diagonale Status done
Runda Arhiva Monthly Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:9:62: error: expected ‘)’ before ‘]’ token scanf("%d",&x),p[i+j]+=x,p[2*n-1+(i>j?(n-1+i-j):(j-i)]+=x; ^ user.c:6:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("diagonale.in","r",stdin),freopen("diagonale.out","w",stdout),scanf("%hd",&n); ^ user.c:6:46: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("diagonale.in","r",stdin),freopen("diagonale.out","w",stdout),scanf("%hd",&n); ^ user.c:6:80: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] freopen("diagonale.in","r",stdin),freopen("diagonale.out","w",stdout),scanf("%hd",&n); ^ user.c:9:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x),p[i+j]+=x,p[2*n-1+(i>j?(n-1+i-j):(j-i)]+=x; ^

Ceva nu functioneaza?