Borderou de evaluare (job #1612984)
Utilizator | Data | 25 februarie 2016 09:59:24 | |
---|---|---|---|
Problema | Roata | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:16: error: ‘int time [362]’ redeclared as different kind of symbol
int time[NMAX+2], ind[NMAX+2];
^
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: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:26:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i] = t;
^
user.cpp:26:17: error: assignment of read-only location ‘*(time + ((sizetype)i))’
time[i] = t;
^
user.cpp:26:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:31:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for( int i = 2; i <= N; ++i ) if( time[i] < time[pozmin] ) pozmin = i;
^
user.cpp:31:66: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for( int i = 2; i <= N; ++i ) if( time[i] < time[pozmin] ) pozmin = i;
^
user.cpp:32:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int vmin = time[pozmin];
^
user.cpp:32:31: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
user.cpp:34:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for( int i = 1; i <= N; ++i ) if( time[i] ) time[i] -= vmin;
^
user.cpp:34:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for( int i = 1; i <= N; ++i ) if( time[i] ) time[i] -= vmin;
^
user.cpp:34:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for( int i = 1; i <= N; ++i ) if( time[i] ) time[i] -= vmin;
^
user.cpp:34:63: error: assignment of read-only location ‘*(time + ((sizetype)i))’
user.cpp:34:63: error: cannot convert ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:39:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[pozmin] = val;
^
user.cpp:39:22: error: assignment of read-only location ‘*(time + ((sizetype)pozmin))’
time[pozmin] = val;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !