Borderou de evaluare (job #2161936)
Utilizator | Data | 11 martie 2018 22:08:35 | |
---|---|---|---|
Problema | Pic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:57: error: ‘int time’ redeclared as different kind of symbol
int n,c,s,k,m,i,j,r,v[1280],w[1400],niv,MIN[50],MAX[50],time,stop,sum,ok;
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148,
from /usr/include/c++/5/ext/atomicity.h:35,
from /usr/include/c++/5/bits/ios_base.h:39,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from user.cpp:1:
/usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’
extern time_t time (time_t *__timer) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:32:17: error: assignment of function ‘time_t time(time_t*)’
for(time=sum;stop!=1;time++){
^
user.cpp:32:17: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment
user.cpp:32:34: warning: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ [-Wpointer-arith]
for(time=sum;stop!=1;time++){
^
user.cpp:32:34: error: lvalue required as increment operand
user.cpp:34:17: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive]
w[1]=time;
^
user.cpp:66:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fout<<time-1<<" "<<time-1-sum;
^
user.cpp:66:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fout<<time-1<<" "<<time-1-sum;
^
user.cpp:66:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fout<<time-1<<" "<<time-1-sum;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !