Borderou de evaluare (job #1965441)
Utilizator | Data | 14 aprilie 2017 13:39:19 | |
---|---|---|---|
Problema | Sushi2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:16: error: ‘int time [100005]’ redeclared as different kind of symbol
int time[100005];
^
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 findTime(int, int, int)’:
user.cpp:18:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[ix] < it)
^
user.cpp:18:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(time[ix] < it)
^
user.cpp:20:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[ix] = it;
^
user.cpp:20:22: error: assignment of read-only location ‘*(time + ((sizetype)ix))’
time[ix] = it;
^
user.cpp:20:22: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:28:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(iy == e[ix].size())
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !