Borderou de evaluare (job #1499837)
Utilizator | Data | 11 octombrie 2015 11:04:45 | |
---|---|---|---|
Problema | Maimute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:24: error: ‘timpi time [10001]’ redeclared as different kind of symbol
struct timpi time[10001];
^
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:186:15: error: previous declaration of ‘time_t time(time_t*)’
extern time_t time (time_t *__timer) __THROW;
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:23:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[k].first=++tmp;
^
user.cpp:23:13: error: request for member ‘first’ in ‘*(time + ((sizetype)k))’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
time[k].first=++tmp;
^
user.cpp:30:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[k].last=++tmp;
^
user.cpp:30:13: error: request for member ‘last’ in ‘*(time + ((sizetype)k))’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
time[k].last=++tmp;
^
user.cpp: In function ‘int main()’:
user.cpp:50:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[x].first<time[y].first){
^
user.cpp:50:20: error: request for member ‘first’ in ‘*(time + ((sizetype)x))’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
if(time[x].first<time[y].first){
^
user.cpp:50:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[x].first<time[y].first){
^
user.cpp:50:34: error: request for member ‘first’ in ‘*(time + ((sizetype)y))’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
if(time[x].first<time[y].first){
^
user.cpp:51:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[x].last>time[y].last){
^
user.cpp:51:24: error: request for member ‘last’ in ‘*(time + ((sizetype)x))’, which is of non-class type ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’
if(time[x].last>time[y].last){
^
user.cpp:51:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[x].last>time[y].last){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !