Borderou de evaluare (job #1766957)
Utilizator | Data | 28 septembrie 2016 17:26:00 | |
---|---|---|---|
Problema | Smen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void bfs()’:
user.cpp:3:45: 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:28:3: note: in expansion of macro ‘FORIT’
FORIT( it, Vertex[nod] )
^
user.cpp:28:10: error: expected ‘;’ before ‘it’
FORIT( it, Vertex[nod] )
^
user.cpp:3:47: note: in definition of macro ‘FORIT’
#define FORIT( it,v ) for(typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it )
^
user.cpp:28:10: error: ‘it’ was not declared in this scope
FORIT( it, Vertex[nod] )
^
user.cpp:3:63: 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:47:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("smen.in","r",stdin);
^
user.cpp:48:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("smen.out","w",stdout);
^
user.cpp:49:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &n, &k, &a, &b );
^
user.cpp:53:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &El[i] );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !