Borderou de evaluare (job #1578236)
Utilizator | Data | 24 ianuarie 2016 11:14:21 | |
---|---|---|---|
Problema | Steins;Gate | Status | done |
Runda | Algoritmiada 2016 Runda 2 Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:24: error: ‘int time’ redeclared as different kind of symbol
int n,m,k,i,j,x,y,maxi,time,ok,c[3][1<<8];
^
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:21:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(time<=k)
^
user.cpp:25:23: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘int’ to binary ‘operator&’
if(c[time&1][i]!=maxi) ok=0;
^
user.cpp:27:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(i=1;i<=n;++i) c[(time+1)&1][i]=0;
^
user.cpp:27:38: error: invalid operands of types ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ and ‘int’ to binary ‘operator&’
for(i=1;i<=n;++i) c[(time+1)&1][i]=0;
^
user.cpp:29:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<V[i].size();++j)
^
user.cpp:30:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
c[(time+1)&1][i]=max(c[(time+1)&1][i],c[time&1][V[i][j]]);
^
user.cpp:30:28: error: invalid operands of types ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ and ‘int’ to binary ‘operator&’
c[(time+1)&1][i]=max(c[(time+1)&1][i],c[time&1][V[i][j]]);
^
user.cpp:30:46: warning: pointer to a function used in arithmetic [-Wpointer-arith]
c[(time+1)&1][i]=max(c[(time+1)&1][i],c[time&1][V[i][j]]);
^
user.cpp:30:49: error: invalid operands of types ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ and ‘int’ to binary ‘operator&’
c[(time+1)&1][i]=max(c[(time+1)&1][i],c[time&1][V[i][j]]);
^
user.cpp:30:62: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘int’ to binary ‘operator&’
c[(time+1)&1][i]=max(c[(time+1)&1][i],c[time&1][V[i][j]]);
^
user.cpp:31:13: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive]
time++;
^
user.cpp:31:13: error: lvalue required as increment operand
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !