Borderou de evaluare (job #2081706)
Utilizator | Data | 5 decembrie 2017 00:02:58 | |
---|---|---|---|
Problema | Coach | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:50: error: ‘int time [100][100]’ redeclared as different kind of symbol
int i, j, k, p, n, m, t, a, b, c, time[nMax][nMax], timeCopy[nMax][nMax];
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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 ‘void compute()’:
user.cpp:65:26: error: cannot convert ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int (*)[100]’ for argument ‘2’ to ‘void copyTime(int (*)[100], int (*)[100])’
copyTime(timeCopy, time);
^
user.cpp:70:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:50: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:60: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:64: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:75: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:78: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[i][kp] && time[kp][j] && (time[i][j] > time[i][kp] + time[kp][j] || time[i][j] == 0)) {
^
user.cpp:70:78: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator+’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !