Borderou de evaluare (job #1648079)

Utilizator zVoxtyVasile Sebastian Costinel zVoxty Data 11 martie 2016 00:23:36
Problema Algoritmul lui Gauss Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Gauss()’: user.cpp:23:9: error: ‘i’ was not declared in this scope while (i <= N && j <= M) ^ user.cpp:23:19: error: ‘j’ was not declared in this scope while (i <= N && j <= M) ^ user.cpp:26:8: error: ‘k’ was not declared in this scope for (k = i; k <= N; ++k) ^ user.cpp:31:7: error: ‘k’ was not declared in this scope if (k == N + 1) ^ user.cpp:38:7: error: ‘k’ was not declared in this scope if (k != i) ^ user.cpp:41:5: error: ‘aux’ was not declared in this scope aux = A[i][l]; ^ user.cpp: In function ‘void Solve()’: user.cpp:73:13: error: return-statement with a value, in function returning 'void' [-fpermissive] return 0; ^ user.cpp: In function ‘int main()’: user.cpp:98:6: warning: unused variable ‘i’ [-Wunused-variable] int i = 1, j = 1, k; ^ user.cpp:98:13: warning: unused variable ‘j’ [-Wunused-variable] int i = 1, j = 1, k; ^ user.cpp:98:20: warning: unused variable ‘k’ [-Wunused-variable] int i = 1, j = 1, k; ^ user.cpp:99:9: warning: unused variable ‘aux’ [-Wunused-variable] double aux; ^ user.cpp: In function ‘void readMatrix()’: user.cpp:14:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gauss.in", "r", stdin); ^ user.cpp:16:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:19:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf", &A[i][j]); ^ user.cpp: In function ‘void Print()’: user.cpp:89:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gauss.out", "w", stdout); ^

Ceva nu functioneaza?