Borderou de evaluare (job #1596222)
Utilizator | Data | 10 februarie 2016 21:02:58 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:1: error: ‘intng’ does not name a type
intng namespace std;
^
user.cpp:16:21: error: ‘pair’ has not been declared
bool operator()(pair<int, int> &a, pair<int, int> &b) {
^
user.cpp:16:25: error: expected ‘,’ or ‘...’ before ‘<’ token
bool operator()(pair<int, int> &a, pair<int, int> &b) {
^
user.cpp: In member function ‘bool comp::operator()(int)’:
user.cpp:17:16: error: ‘a’ was not declared in this scope
return a.s > b.s;
^
user.cpp:17:22: error: ‘b’ was not declared in this scope
return a.s > b.s;
^
user.cpp: At global scope:
user.cpp:21:1: error: ‘vector’ does not name a type
vector<pair<int, int> > G[NMAX];
^
user.cpp:22:1: error: ‘vector’ does not name a type
vector<
^
user.cpp:24:1: error: ‘vector’ does not name a type
vector<bool> viz;
^
user.cpp: In function ‘void dfs(short unsigned int, short unsigned int, short unsigned int&)’:
user.cpp:29:8: error: ‘Dmax’ was not declared in this scope
if(Dmax[nod] > dmax) {
^
user.cpp:33:5: error: ‘viz’ was not declared in this scope
viz[nod]=1;
^
user.cpp:34:20: error: ‘G’ was not declared in this scope
for(int i=0; i<G[nod].size(); i++)
^
user.cpp:35:48: error: ‘Dmax’ was not declared in this scope
if(!viz[G[nod][i].f] && G[nod][i].s <= Dmax[1])
^
user.cpp: In function ‘void p1()’:
user.cpp:43:17: error: ‘Dmax’ was not declared in this scope
if(d <= Dmax[1]) {
^
user.cpp:44:13: error: ‘G’ was not declared in this scope
G[a].push_back(make_pair(b, d));
^
user.cpp:44:42: error: ‘make_pair’ was not declared in this scope
G[a].push_back(make_pair(b, d));
^
user.cpp:44:42: note: suggested alternative:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !