Borderou de evaluare (job #1939152)
Utilizator | Data | 25 martie 2017 15:00:35 | |
---|---|---|---|
Problema | Wall | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:28: error: ‘int time [100010]’ redeclared as different kind of symbol
int zid[NMAX+5],time[NMAX+5];
^
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/basic_string.h:39,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/random:41,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:3:
/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:17:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d",&time[i]);
^
user.cpp:17:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-Wformat=]
scanf("%d",&time[i]);
^
user.cpp:18:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[i]>=z)
^
user.cpp:18:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(time[i]>=z)
^
user.cpp:19:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i]=0,cnt--;
^
user.cpp:19:20: error: assignment of read-only location ‘*(time + ((sizetype)i))’
time[i]=0,cnt--;
^
user.cpp:19:20: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:21:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sort(time+1,time+n+1);
^
user.cpp:21:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sort(time+1,time+n+1);
^
user.cpp:21:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sort(time+1,time+n+1);
^
user.cpp:24:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[i]==0)
^
user.cpp:26:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(g+time[i]<=z)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !