Borderou de evaluare (job #1147780)
Utilizator | Data | 20 martie 2014 09:45:12 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:22: error: expected ‘,’ or ‘;’ before numeric constant
const int MAXN = 100 001;
^
user.cpp:8:1: error: ‘list’ does not name a type
list<int> vecini[MAXN];
^
user.cpp:9:1: error: ‘stack’ does not name a type
stack<int> muchii[2];
^
user.cpp:10:1: error: ‘vector’ does not name a type
vector<int> componente[MAXN];
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:20:20: error: ‘vecini’ was not declared in this scope
for(auto& it : vecini[vertex])
^
user.cpp:26:13: error: ‘muchii’ was not declared in this scope
muchii[0].push_back(vertex);
^
user.cpp:36:21: error: ‘componente’ was not declared in this scope
componente[nrComp].push_back(muchii[1].top()), muchii[0].pop(), muchii[1].pop();
^
user.cpp:38:17: error: ‘componente’ was not declared in this scope
componente[nrComp].push_back(muchii[0].top());
^
user.cpp: In function ‘int main()’:
user.cpp:56:5: error: ‘ifstream’ was not declared in this scope
ifstream IN("biconex.in");
^
user.cpp:56:5: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:56:14: error: expected ‘;’ before ‘IN’
ifstream IN("biconex.in");
^
user.cpp:58:5: error: ‘IN’ was not declared in this scope
IN >> n >> m;
^
user.cpp:63:9: error: ‘vecini’ was not declared in this scope
vecini[x].push_back(y);
^
user.cpp:69:5: error: ‘ofstream’ was not declared in this scope
ofstream OUT("biconex.out");
^
user.cpp:69:5: note: suggested alternative:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !