Borderou de evaluare (job #1237974)
Utilizator | Data | 5 octombrie 2014 13:08:41 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int> uni(std::vector<std::pair<int, int> >)’:
user.cpp:9:44: error: ‘typeof’ was not declared in this scope
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:22:5: note: in expansion of macro ‘FORIT’
FORIT(it, v){
^
user.cpp:22:11: error: expected ‘;’ before ‘it’
FORIT(it, v){
^
user.cpp:9:46: note: in definition of macro ‘FORIT’
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:22:11: error: ‘it’ was not declared in this scope
FORIT(it, v){
^
user.cpp:9:64: note: in definition of macro ‘FORIT’
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:34:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0, Fiu = v[Nod][0]; i < v[Nod].size(); ++i, Fiu = v[Nod][i])
^
user.cpp: In function ‘int main()’:
user.cpp:9:44: error: ‘typeof’ was not declared in this scope
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:68:5: note: in expansion of macro ‘FORIT’
FORIT(it, Ans){
^
user.cpp:68:11: error: expected ‘;’ before ‘it’
FORIT(it, Ans){
^
user.cpp:9:46: note: in definition of macro ‘FORIT’
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:68:11: error: ‘it’ was not declared in this scope
FORIT(it, Ans){
^
user.cpp:9:64: note: in definition of macro ‘FORIT’
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:69:15: error: expected ‘;’ before ‘it2’
FORIT(it2, *it)
^
user.cpp:9:46: note: in definition of macro ‘FORIT’
#define FORIT(it, v) for(typeof((v).begin()) it = (v).begin(); it != (v).end(); ++it)
^
user.cpp:69:15: error: ‘it2’ was not declared in this scope
FORIT(it2, *it)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !