Borderou de evaluare (job #1425109)
Utilizator | Data | 26 aprilie 2015 18:06:59 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:18:5: error: ‘int stime’ redeclared as different kind of symbol
int stime = 0;
^
In file included from /usr/include/pthread.h:26:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35,
from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148,
from /usr/include/c++/4.8/ext/atomicity.h:33,
from /usr/include/c++/4.8/bits/ios_base.h:39,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/time.h:298:12: error: previous declaration of ‘int stime(const time_t*)’
extern int stime (__const time_t *__when) __THROW;
^
user.cpp: In function ‘void tarjan(int)’:
user.cpp:38:32: error: ISO C++ forbids incrementing a pointer of type ‘int (*)(const time_t*)throw () {aka int (*)(const long int*)throw ()}’ [-fpermissive]
index[nod] = lowlink[nod] = ++stime;
^
user.cpp:38:32: error: lvalue required as increment operand
user.cpp: In function ‘int main()’:
user.cpp:65:27: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(OUT, "w", stdout);
^
user.cpp: In function ‘void readData()’:
user.cpp:28:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d%d", &N, &M);
^
user.cpp:31:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d%d", &s, &d);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !