Borderou de evaluare (job #2652052)

Utilizator robert.barbu27robert barbu robert.barbu27 Data 24 septembrie 2020 09:46:01
Problema Revolutie Status done
Runda 79535327715211545 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:11: error: 'NMAX' was not declared in this scope int a[1 + NMAX][1 + NMAX]; ^~~~ main.cpp:9:21: error: 'NMAX' was not declared in this scope int a[1 + NMAX][1 + NMAX]; ^~~~ main.cpp:10:15: error: 'NMAX' was not declared in this scope int match[1 + NMAX]; ^~~~ main.cpp:11:14: error: 'NMAX' was not declared in this scope bool vis[1 + NMAX]; ^~~~ main.cpp: In function 'int add(int)': main.cpp:14:6: error: 'vis' was not declared in this scope if(vis[i] == 1) ^~~ main.cpp:19:10: error: 'a' was not declared in this scope if(a[i][j] == 1 && (match[j] == 0 || (match[j] != i && add(match[j]) == true))){ ^ main.cpp:19:27: error: 'match' was not declared in this scope if(a[i][j] == 1 && (match[j] == 0 || (match[j] != i && add(match[j]) == true))){ ^~~~~ main.cpp: In function 'int main()': main.cpp:30:3: error: 'in' was not declared in this scope in >> n; ^~ main.cpp:33:13: error: 'a' was not declared in this scope in >> a[i][j]; ^ main.cpp:38:10: error: 'vis' was not declared in this scope fill(vis + 1, vis + n + 1, false); ^~~ main.cpp:43:5: error: 'out' was not declared in this scope out << "-1\n"; ^~~ main.cpp:45:5: error: 'out' was not declared in this scope out << res - 1 << '\n'; ^~~ main.cpp:50:14: error: 'match' was not declared in this scope if(match[j] == i){ ^~~~~ main.cpp:58:3: error: expected '}' at end of input } ^ main.cpp: In function 'int add(int)': main.cpp:26:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Non zero exit status: 1

Ceva nu functioneaza?