Borderou de evaluare (job #1232429)
Utilizator | Data | 22 septembrie 2014 20:29:03 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:18: error: expected ‘]’ before numeric constant
#define NMAX 100 001
^
user.cpp:9:10: note: in expansion of macro ‘NMAX’
int timp[NMAX], t, n, nr, i, p, j, u ,v;
^
user.cpp: In function ‘bool cmp(int, int)’:
user.cpp:12:12: error: ‘timp’ was not declared in this scope
return timp[x]>timp[y];
^
user.cpp: At global scope:
user.cpp:5:18: error: expected ‘]’ before numeric constant
#define NMAX 100 001
^
user.cpp:14:10: note: in expansion of macro ‘NMAX’
bool viz[NMAX];
^
user.cpp:5:18: error: expected ‘]’ before numeric constant
#define NMAX 100 001
^
user.cpp:15:15: note: in expansion of macro ‘NMAX’
vector<int> g[NMAX], gt[NMAX] ,rez[NMAX];
^
user.cpp: In function ‘int DFSg(int)’:
user.cpp:19:5: error: ‘viz’ was not declared in this scope
viz[u]=1;
^
user.cpp:20:5: error: ‘t’ was not declared in this scope
t++;
^
user.cpp:21:17: error: ‘g’ was not declared in this scope
for (i=0; i<g[u].size(); i++)
^
user.cpp:26:5: error: ‘timp’ was not declared in this scope
timp[u] = ++t;
^
user.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int DFSgt(int)’:
user.cpp:31:5: error: ‘viz’ was not declared in this scope
viz[u]=1;
^
user.cpp:33:17: error: ‘gt’ was not declared in this scope
for (i=0; i<gt[u].size(); i++)
^
user.cpp:37:13: error: ‘rez’ was not declared in this scope
rez[p].push_back(gt[u][i]);
^
user.cpp:37:17: error: ‘p’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !