Borderou de evaluare (job #1531439)
Utilizator | Data | 21 noiembrie 2015 13:49:54 | |
---|---|---|---|
Problema | Licenta | Status | done |
Runda | FMI No Stress 6 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:19: error: ‘int time [400000]’ redeclared as different kind of symbol
int time[4 * MAX_N];
^
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:26:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[2 * i] = v[i].left; time[2 * i + 1] = v[i].right;
^
user.cpp:26:17: error: assignment of read-only location ‘*(time + ((sizetype)(i * 2)))’
time[2 * i] = v[i].left; time[2 * i + 1] = v[i].right;
^
user.cpp:26:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:26:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[2 * i] = v[i].left; time[2 * i + 1] = v[i].right;
^
user.cpp:26:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:26:46: error: assignment of read-only location ‘*(time + (((sizetype)(i * 2)) + 1u))’
time[2 * i] = v[i].left; time[2 * i + 1] = v[i].right;
^
user.cpp:26:46: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:32:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[2 * i + 2 * n] = t[i].left; time[2 * i + 1 + 2 * n] = t[i].right;
^
user.cpp:32:25: error: assignment of read-only location ‘*(time + ((sizetype)((i + n) * 2)))’
time[2 * i + 2 * n] = t[i].left; time[2 * i + 1 + 2 * n] = t[i].right;
^
user.cpp:32:25: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:32:60: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[2 * i + 2 * n] = t[i].left; time[2 * i + 1 + 2 * n] = t[i].right;
^
user.cpp:32:62: error: assignment of read-only location ‘*(time + ((sizetype)(((i * 2) + 1) + (n * 2))))’
time[2 * i + 2 * n] = t[i].left; time[2 * i + 1 + 2 * n] = t[i].right;
^
user.cpp:32:62: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:35:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
std::sort( time, time + 2 * n + 2 * m );
^
user.cpp:35:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !