Borderou de evaluare (job #1409232)
Utilizator | Data | 30 martie 2015 14:10:53 | |
---|---|---|---|
Problema | Critice | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘void edge::print()’:
user.cpp:52:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf ("%ld %ld %ld %ld\n",a,b,c,f);
^
user.cpp:52:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
user.cpp:52:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
user.cpp:52:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘int’ [-Wformat=]
user.cpp: In function ‘int BFS()’:
user.cpp:11:47: 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:69:9: note: in expansion of macro ‘FORIT’
FORIT (it,Vertex[node])
^
user.cpp:69:16: error: expected ‘;’ before ‘it’
FORIT (it,Vertex[node])
^
user.cpp:11:49: note: in definition of macro ‘FORIT’
#define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it )
^
user.cpp:69:16: error: ‘it’ was not declared in this scope
FORIT (it,Vertex[node])
^
user.cpp:11:65: note: in definition of macro ‘FORIT’
#define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it )
^
user.cpp:11:47: 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:82:5: note: in expansion of macro ‘FORIT’
FORIT (it,Vertex[n])
^
user.cpp:82:12: error: expected ‘;’ before ‘it’
FORIT (it,Vertex[n])
^
user.cpp:11:49: note: in definition of macro ‘FORIT’
#define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it )
^
user.cpp:82:12: error: ‘it’ was not declared in this scope
FORIT (it,Vertex[n])
^
user.cpp:11:65: 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 ‘int main()’:
user.cpp:123:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("maxflow.in","r",stdin);
^
user.cpp:124:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("maxflow.out","w",stdout);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !