Borderou de evaluare (job #2413056)
Utilizator | Data | 22 aprilie 2019 20:34:36 | |
---|---|---|---|
Problema | Romeo | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:22: error: 'int time [100005]' redeclared as different kind of symbol
int v[NMAX],time[NMAX],sol[NMAX];
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'int main()':
main.cpp:30:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i]=k;
^
main.cpp:30:21: error: assignment of read-only location '*(time + ((sizetype)i))'
time[i]=k;
^
main.cpp:30:21: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:31:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(big.size()>k/2){
~~~~~~~~~~^~~~
main.cpp:38:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sol[i-k]+=i-time[i-k];
^
main.cpp:38:28: error: invalid operands of types 'int' and 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' to binary 'operator-'
sol[i-k]+=i-time[i-k];
~^~~~~~~~~~
main.cpp:42:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i]=i;
^
main.cpp:42:21: error: assignment of read-only location '*(time + ((sizetype)i))'
time[i]=i;
^
main.cpp:42:21: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:43:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(big.size()>k/2){
~~~~~~~~~~^~~~
main.cpp:46:63: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sol[pos[valuekicked]]+=i-time[pos[valuekicked]];
^
main.cpp:46:41: error: invalid operands of types 'int' and 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' to binary 'operator-'
sol[pos[valuekicked]]+=i-time[pos[valuekicked]];
~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:49:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(big.size()<k/2){
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !