Borderou de evaluare (job #1735771)
| Utilizator | Data | 30 iulie 2016 23:03:46 | |
|---|---|---|---|
| Problema | Project management | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:10:26: error: ‘int time [102]’ redeclared as different kind of symbol
int verif[maxn],time[maxn],topos[maxn],sol[maxn],sfarsit[maxn],sol2[maxn];
^
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 topo(int)’:
user.cpp:15:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<a[x].size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:25:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f>>time[i];
^
user.cpp:25:18: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
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:50:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<a[nr].size();j++)
^
user.cpp:52:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sol[nr]=maxi+time[nr];
^
user.cpp:52:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:52:21: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
sol[nr]=maxi+time[nr];
^
user.cpp:60:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<a2[nr].size();j++)
^
user.cpp:62:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sol2[nr]=mini-time[nr];
^
user.cpp:62:30: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’
user.cpp:66:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
g<<sol[i]-time[i]<<" "<<sol2[i]<<'\n';
^
user.cpp:66:25: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
