Borderou de evaluare (job #2764207)

Utilizator helloworld0107Iordachi Bianca helloworld0107 Data 19 iulie 2021 20:03:20
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:18:10: error: 'i' undeclared (first use in this function) if(a[i][j] == 0 && i!= j) a[i][j] = 0; ^ main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in main.c:18:13: error: 'j' undeclared (first use in this function) if(a[i][j] == 0 && i!= j) a[i][j] = 0; ^ main.c:28:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int j = 1; j <= n; j++) ^~~ main.c:29:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' printf("%d ", a[i][j]); printf("\n"); ^~~~~~ main.c:7:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("royfloyd.in","r",stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:8:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("royfloyd.out","w",stdout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^~~~~~~~~~~~~~~ main.c:15:7: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i][j]); ^~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?