Borderou de evaluare (job #1798240)

Utilizator nick12nicolae mihalache nick12 Data 4 noiembrie 2016 23:46:17
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:14: error: size of array ‘ar’ is too large int ar[MA][MA]; ^ user.cpp: In function ‘void DFS(int)’: user.cpp:15:13: error: ‘ar’ was not declared in this scope if (ar[x][i] != 0 && viz[i] == 0) DFS(i); ^ user.cpp: In function ‘int main()’: user.cpp:29:31: error: ‘ar’ was not declared in this scope scanf("%d %d",&a,&b), ar[a][b] = 1; ^ user.cpp:25:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j,k,a,b; ^ user.cpp:25:13: warning: unused variable ‘k’ [-Wunused-variable] int i,j,k,a,b; ^ user.cpp:23:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.in","r",stdin); ^ user.cpp:24:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.out","w",stdout); ^ user.cpp:26:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&N,&M); ^

Ceva nu functioneaza?