Borderou de evaluare (job #2652053)
Utilizator | Data | 24 septembrie 2020 09:46:52 | |
---|---|---|---|
Problema | Revolutie | Status | done |
Runda | 79535327715211545 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:15: error: array bound is not an integer constant before ']' token
int a[1 + NMAX][1 + NMAX];
^
main.cpp:10:25: error: array bound is not an integer constant before ']' token
int a[1 + NMAX][1 + NMAX];
^
main.cpp:11:19: error: array bound is not an integer constant before ']' token
int match[1 + NMAX];
^
main.cpp:12:18: error: array bound is not an integer constant before ']' token
bool vis[1 + NMAX];
^
main.cpp: In function 'int add(int)':
main.cpp:15:6: error: 'vis' was not declared in this scope
if(vis[i] == 1)
^~~
main.cpp:20: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:20: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:31:3: error: 'in' was not declared in this scope
in >> n;
^~
main.cpp:34:13: error: 'a' was not declared in this scope
in >> a[i][j];
^
main.cpp:39:10: error: 'vis' was not declared in this scope
fill(vis + 1, vis + n + 1, false);
^~~
main.cpp:44:5: error: 'out' was not declared in this scope
out << "-1\n";
^~~
main.cpp:46:5: error: 'out' was not declared in this scope
out << res - 1 << '\n';
^~~
main.cpp:51:14: error: 'match' was not declared in this scope
if(match[j] == i){
^~~~~
main.cpp:59:3: error: expected '}' at end of input
}
^
main.cpp: In function 'int add(int)':
main.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !