Borderou de evaluare (job #1847659)
Utilizator | Data | 14 ianuarie 2017 20:39:03 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:35: error: ‘int time’ redeclared as different kind of symbol
int n,m,start,finish,parcare[110],time,taxa[110][110][110],sol[110][110];
^
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 ‘void read()’:
user.cpp:17:21: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
cin>>n>>m>>start>>finish>>time;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:1:
/usr/include/c++/4.8/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:25:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int j=0;j<time;++j) cin>>taxa[a][b][j];
^
user.cpp: In function ‘void init()’:
user.cpp:32:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int j=0;j<=time;++j)
^
user.cpp: In function ‘void ford()’:
user.cpp:38:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int i=0;i<=time;++i) coada[++pi].varf=start,coada[pi].timp=i;
^
user.cpp:45:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int i=lim;i<=time;++i)
^
user.cpp: In function ‘void write()’:
user.cpp:55:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int i=0;i<=time;++i)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !