Borderou de evaluare (job #1673038)
Utilizator | Data | 3 aprilie 2016 13:23:26 | |
---|---|---|---|
Problema | Culegere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:63: error: ‘int time [2005][2005]’ redeclared as different kind of symbol
int fata[3],spate[3],n,m,k,e,i,j,a[2005][2005],time[2005][2005],mod,v[500005][6],x,y,sec1,sec2,val,sec,merg,max1,ok,max2,coada[500005][3],st,dim,dim2,maxim[500005],pos3;
^
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:2:
/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:107:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[v[poz][2]][v[poz][3]]=v[poz][5];
^
user.cpp:107:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[v[poz][2]][v[poz][3]]=v[poz][5];
^
user.cpp:107:43: error: assignment of read-only location ‘*(time + (((sizetype)v[poz][2]) + ((sizetype)v[poz][3])))’
time[v[poz][2]][v[poz][3]]=v[poz][5];
^
user.cpp:107:43: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:108:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[v[poz][2]][v[poz][3]]>max2)
^
user.cpp:108:45: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[v[poz][2]][v[poz][3]]>max2)
^
user.cpp:108:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(time[v[poz][2]][v[poz][3]]>max2)
^
user.cpp:109:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
max2=time[v[poz][2]][v[poz][3]];
^
user.cpp:109:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]
max2=time[v[poz][2]][v[poz][3]];
^
user.cpp:109:52: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
user.cpp:114:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[v[poz][2]][v[poz][3]]=v[poz][5];
^
user.cpp:114:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[v[poz][2]][v[poz][3]]=v[poz][5];
^
user.cpp:114:43: error: assignment of read-only location ‘*(time + (((sizetype)v[poz][2]) + ((sizetype)v[poz][3])))’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !