Borderou de evaluare (job #1163502)
Utilizator | Data | 1 aprilie 2014 13:43:15 | |
---|---|---|---|
Problema | Mine | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:22: error: ‘int time [10001]’ redeclared as different kind of symbol
int n, m, time [10001], u = 0;
^
In file included from /usr/include/pthread.h:26:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148,
from /usr/local/include/c++/4.8.0/ext/atomicity.h:33,
from /usr/local/include/c++/4.8.0/bits/basic_string.h:39,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/random:41,
from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65,
from /usr/local/include/c++/4.8.0/algorithm:62,
from user.cpp:4:
/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 ‘void read()’:
user.cpp:26:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time [1] = 0;
^
user.cpp:26:14: error: assignment of read-only location ‘*(time + 1u)’
time [1] = 0;
^
user.cpp:26:14: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp: In function ‘void solve()’:
user.cpp:59:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time [h [1].node] == 0 || time [h [1].node] > i)
^
user.cpp:59:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time [h [1].node] == 0 || time [h [1].node] > i)
^
user.cpp:59:63: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (time [h [1].node] == 0 || time [h [1].node] > i)
^
user.cpp:60:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time [h [1].node] = i;
^
user.cpp:60:35: error: assignment of read-only location ‘*(time + ((sizetype)h[1].element::node))’
time [h [1].node] = i;
^
user.cpp:60:35: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:65:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time [n])
^
user.cpp:70:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time [(*it).node] == 0) {
^
user.cpp:78:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time [n] == 0)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !