Borderou de evaluare (job #2510091)

Utilizator cyber_ghSoltan Gheorghe cyber_gh Data 15 decembrie 2019 19:27:27
Problema Sortnet Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:16: error: expected initializer before numeric constant const int MAXM 33; ^~ main.cpp:15:16: error: expected initializer before numeric constant const int MAXN 21; ^~ main.cpp:18:7: error: 'MAXM' was not declared in this scope int p[MAXM][MAXN]; ^~~~ main.cpp:18:13: error: 'MAXN' was not declared in this scope int p[MAXM][MAXN]; ^~~~ main.cpp:19:10: error: 'MAXM' was not declared in this scope int last[MAXM][MAXN]; ^~~~ main.cpp:19:16: error: 'MAXN' was not declared in this scope int last[MAXM][MAXN]; ^~~~ main.cpp: In function 'int trace(int, int)': main.cpp:25:3: error: 'last' was not declared in this scope last[j][i] = val; ^~~~ main.cpp:26:7: error: 'p' was not declared in this scope k = p[j][i]; ^ main.cpp: In function 'int main()': main.cpp:52:4: error: 'p' was not declared in this scope p[i][a] = b; ^ main.cpp:60:17: error: 'last' was not declared in this scope for (bit = 0; last[0][bit] == ((st & (1 << bit)) > 0); bit++); ^~~~ main.cpp:62:3: error: 'last' was not declared in this scope last[0][bit] ^= 1; ^~~~ main.cpp:42:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sortnet.in", "rt", stdin); ^ main.cpp:43:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sortnet.out", "wt", stdout); ^ main.cpp:45:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &N, &M); ^ main.cpp:50:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf(" <%d,%d> ", &a, &b); ^ Non zero exit status: 1

Ceva nu functioneaza?