Borderou de evaluare (job #1982190)
Utilizator | Data | 17 mai 2017 21:03:18 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: expected ‘,’ or ‘;’ before ‘int’
int n, m, a[100][100], c[100];
^
user.cpp: In function ‘void citire()’:
user.cpp:12:12: error: ‘n’ was not declared in this scope
fin >> n >> m;
^
user.cpp:12:17: error: ‘m’ was not declared in this scope
fin >> n >> m;
^
user.cpp:16:9: error: ‘a’ was not declared in this scope
a[x][y] = a[y][x] = 1;
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:21:5: error: ‘c’ was not declared in this scope
c[nod]++;
^
user.cpp:22:25: error: ‘n’ was not declared in this scope
for (int i =1; i <= n; i++) {
^
user.cpp:23:13: error: ‘a’ was not declared in this scope
if (a[i][nod] == 1 and c[i] == 0)
^
user.cpp: In function ‘int conex()’:
user.cpp:30:26: error: ‘n’ was not declared in this scope
for (int i = 1; i <= n; i++) {
^
user.cpp:31:13: error: ‘c’ was not declared in this scope
if (c[i] == 0)
^
user.cpp: In function ‘int grad(int)’:
user.cpp:39:26: error: ‘n’ was not declared in this scope
for (int i = 1; i <= n; i++) {
^
user.cpp:40:13: error: ‘a’ was not declared in this scope
if (a[i][nod] == 1)
^
user.cpp: In function ‘int eulerian()’:
user.cpp:49:26: error: ‘n’ was not declared in this scope
for (int i = 1; i <= n; i++) {
^
user.cpp: In function ‘void ciclu(int)’:
user.cpp:59:26: error: ‘n’ was not declared in this scope
for (int i = 1; i <= n; i++) {
^
user.cpp:60:13: error: ‘a’ was not declared in this scope
if (a[i][nod] == 1) {
^
user.cpp:68:9: error: ‘a’ was not declared in this scope
a[nod][nmax] = a[nmax][nod] = 0;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !