Borderou de evaluare (job #1104154)
Utilizator | Data | 10 februarie 2014 15:19:51 | |
---|---|---|---|
Problema | Harbingers | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:63:35: error: ‘lint stime [100050]’ redeclared as different kind of symbol
lint f[N], sp[N], dist[N], stime[N];
^
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:5:
/usr/include/time.h:298:12: error: previous declaration of ‘int stime(const time_t*)’
extern int stime (__const time_t *__when) __THROW;
^
user.cpp: In function ‘void traverse()’:
user.cpp:109:69: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f[u] = S[i].c + sp[u] * (dist[u] + S[i].k) + stime[u];
^
user.cpp:109:69: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:109:60: error: invalid conversion from ‘int (*)(const time_t*)throw () {aka int (*)(const long int*)throw ()}’ to ‘lint {aka long long int}’ [-fpermissive]
f[u] = S[i].c + sp[u] * (dist[u] + S[i].k) + stime[u];
^
user.cpp: In function ‘int main()’:
user.cpp:147:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%lld%lld", stime + i, sp + i);
^
user.cpp:147:44: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int (*)(const time_t*)throw () {aka int (*)(const long int*)throw ()}’ [-Wformat=]
scanf("%lld%lld", stime + i, sp + i);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !