Borderou de evaluare (job #1603846)
| Utilizator | Data | 17 februarie 2016 19:49:03 | |
|---|---|---|---|
| Problema | Lanterna | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:16:20: error: ‘int time [51][51]’ redeclared as different kind of symbol
int time[MAXN][MAXN], wattage[MAXN][MAXN];
^
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 initialize()’:
user.cpp:28:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i][j] = INFTY;
^
user.cpp:28:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[i][j] = INFTY;
^
user.cpp:28:15: error: assignment of read-only location ‘*(time + (((sizetype)i) + ((sizetype)j)))’
time[i][j] = INFTY;
^
user.cpp:28:15: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp: In function ‘int solve(int)’:
user.cpp:54:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[top.first][i] < INFTY && (top.second + wattage[top.first][i] <= max_k))
^
user.cpp:54:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (time[top.first][i] < INFTY && (top.second + wattage[top.first][i] <= max_k))
^
user.cpp:14:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
#define INFTY 99999
^
user.cpp:54:30: note: in expansion of macro ‘INFTY’
if (time[top.first][i] < INFTY && (top.second + wattage[top.first][i] <= max_k))
^
user.cpp:56:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int this_time = time[top.first][i] + min_time[top.first][top.second];
^
user.cpp:56:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int this_time = time[top.first][i] + min_time[top.first][top.second];
^
user.cpp:56:73: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int this_time = time[top.first][i] + min_time[top.first][top.second];
^
user.cpp:56:41: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
int this_time = time[top.first][i] + min_time[top.first][top.second];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
