Borderou de evaluare (job #975118)

Utilizator sorin_olimpicoolSorin Olimpicu sorin_olimpicool Data 19 iulie 2013 10:28:03
Problema Diagonale Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:9:17: error: declaration of ‘a’ as multidimensional array must have bounds for all dimensions except the first int a[][] = new int[1001][10001]; ^ user.cpp:12:17: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:15:20: error: ‘val’ was not declared in this scope scanf("%d",val+i); ^ user.cpp:19:3: error: ‘a’ was not declared in this scope a[i][j] = x; ^ user.cpp:19:5: error: ‘i’ was not declared in this scope a[i][j] = x; ^ user.cpp:27:20: error: ‘a’ was not declared in this scope s = s +a[i][i-k] ; ^ user.cpp:29:17: error: ‘maxsum’ was not declared in this scope if (maxsum < s){ ^ user.cpp:39:23: error: ‘a’ was not declared in this scope s = s + a[k+c][i]; ^ user.cpp:42:17: error: ‘maxsum’ was not declared in this scope if (maxsum < s){ ^ user.cpp:46:18: error: ‘maxsum’ was not declared in this scope printf("%d\n",maxsum); ^

Ceva nu functioneaza?