Borderou de evaluare (job #1141780)
Utilizator | Data | 13 martie 2014 10:02:43 | |
---|---|---|---|
Problema | Aprindere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:27: error: ‘int time [1002]’ redeclared as different kind of symbol
int state[Nmax], time[Nmax];
^
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/ios_base.h:39,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/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 ‘int main()’:
user.cpp:30:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f >> time[ ind ];
^
user.cpp:30:24: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
In file included from /usr/local/include/c++/4.8.0/iostream:40:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = long int(long int*)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:45:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
timp += time[i];
^
user.cpp:45:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
timp += time[i];
^
user.cpp:45:18: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !