Borderou de evaluare (job #1097062)
Utilizator | Data | 2 februarie 2014 22:06:09 | |
---|---|---|---|
Problema | Minuni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:42: error: ‘int time [100001]’ redeclared as different kind of symbol
int arb[4*100001], n, m, crt, time[100001], poz[100001];
^
In file included from /usr/include/pthread.h:26:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148,
from /usr/local/include/c++/4.8.0/ext/atomicity.h:33,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:39,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
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 ‘int main()’:
user.cpp:61:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
poz[p[i].second]=time[j];
^
user.cpp:61:36: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
user.cpp:62:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[++crt]=p[i].second;
^
user.cpp:62:24: error: assignment of read-only location ‘*(time + ((sizetype)(++ crt)))’
time[++crt]=p[i].second;
^
user.cpp:62:24: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !