Borderou de evaluare (job #1147478)
Utilizator | Data | 19 martie 2014 21:17:22 | |
---|---|---|---|
Problema | Harbingers | Status | done |
Runda | Lista lui wefgef | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:48:35: error: ‘long long int 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:7:
/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:81: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:81:69: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:81:60: error: invalid conversion from ‘int (*)(const time_t*)throw () {aka int (*)(const long int*)throw ()}’ to ‘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:112:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%lld%lld", &stime[i], &sp[i]);
^
user.cpp:112: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 !