Borderou de evaluare (job #1538114)
| Utilizator | Data | 28 noiembrie 2015 15:37:13 | |
|---|---|---|---|
| Problema | Lanterna | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:20:20: error: ‘int time [51][1001]’ redeclared as different kind of symbol
int time[Nmax][Kmax];
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
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 ‘int getTime(int)’:
user.cpp:66:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(i = 1; i <= n; ++i) for(j = 0; j <= kmax; ++j) time[i][j] = INF;
^
user.cpp:66:62: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(i = 1; i <= n; ++i) for(j = 0; j <= kmax; ++j) time[i][j] = INF;
^
user.cpp:66:64: error: assignment of read-only location ‘*(time + (((sizetype)i) + ((sizetype)j)))’
for(i = 1; i <= n; ++i) for(j = 0; j <= kmax; ++j) time[i][j] = INF;
^
user.cpp:66:64: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:67:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[1][kmax] = 0;
^
user.cpp:67:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[1][kmax] = 0;
^
user.cpp:67:16: error: assignment of read-only location ‘*(time + (((sizetype)kmax) + 1u))’
time[1][kmax] = 0;
^
user.cpp:67:16: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:80:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(w >= (it -> w) && (a = time[vf][w] + (it -> t)) < time[it -> vf][newW])
^
user.cpp:80:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(w >= (it -> w) && (a = time[vf][w] + (it -> t)) < time[it -> vf][newW])
^
user.cpp:80:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(w >= (it -> w) && (a = time[vf][w] + (it -> t)) < time[it -> vf][newW])
^
user.cpp:80:42: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
if(w >= (it -> w) && (a = time[vf][w] + (it -> t)) < time[it -> vf][newW])
^
user.cpp:80:70: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(w >= (it -> w) && (a = time[vf][w] + (it -> t)) < time[it -> vf][newW])
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
