Borderou de evaluare (job #1603988)
Utilizator | Data | 17 februarie 2016 21:21:12 | |
---|---|---|---|
Problema | Reteta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:5: error: ‘int stime’ redeclared as different kind of symbol
int stime, n;
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
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 ‘int main()’:
user.cpp:33:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
stime += nr;
^
user.cpp:33:19: error: assignment of function ‘int stime(const time_t*)’
user.cpp:33:19: error: cannot convert ‘int (*)(const time_t*)throw () {aka int (*)(const long int*)throw ()}’ to ‘int(const time_t*)throw () {aka int(const long int*)throw ()}’ in assignment
user.cpp:38:10: warning: the address of ‘int stime(const time_t*)’ will always evaluate as ‘true’ [-Waddress]
g << stime <<'\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !