Borderou de evaluare (job #948176)

Utilizator vasandANDREI POP vasand Data 9 mai 2013 16:46:39
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:21: error: expected ‘]’ before ‘;’ token # define nmax 100000; ^ user.cpp:10:12: note: in expansion of macro ‘nmax’ int n,m,*a[nmax],*at[nmax],v[nmax],nr; ^ user.cpp:10:16: error: expected unqualified-id before ‘]’ token int n,m,*a[nmax],*at[nmax],v[nmax],nr; ^ user.cpp:10:26: error: expected unqualified-id before ‘]’ token int n,m,*a[nmax],*at[nmax],v[nmax],nr; ^ user.cpp:10:34: error: expected unqualified-id before ‘]’ token int n,m,*a[nmax],*at[nmax],v[nmax],nr; ^ user.cpp: In function ‘void init()’: user.cpp:17:9: error: ‘a’ was not declared in this scope a[i]=(int *) realloc(a[i], sizeof(int)); ^ user.cpp:19:9: error: ‘at’ was not declared in this scope at[i]=(int *) realloc(at[i], sizeof(int)); ^ user.cpp: In function ‘void citire()’: user.cpp:33:9: error: ‘a’ was not declared in this scope a[x][0]++; ^ user.cpp:37:9: error: ‘at’ was not declared in this scope at[y][0]++; ^ user.cpp: In function ‘void tip()’: user.cpp:51:21: error: ‘a’ was not declared in this scope for(j=1; j<=a[i][0]; j++) ^ user.cpp: In function ‘void bf(int)’: user.cpp:60:5: error: ‘v’ was not declared in this scope v[k]=1; ^ user.cpp:61:17: error: ‘a’ was not declared in this scope for(i=1; i<=a[k][0]; i++) ^ user.cpp: In function ‘void bft(int)’: user.cpp:70:5: error: ‘v’ was not declared in this scope v[k]=0; ^ user.cpp:72:17: error: ‘at’ was not declared in this scope for(i=1; i<=at[k][0]; i++) ^ user.cpp: In function ‘int main()’: user.cpp:84:13: error: ‘v’ was not declared in this scope if(!v[i])

Ceva nu functioneaza?