Borderou de evaluare (job #1049179)
Utilizator | Data | 6 decembrie 2013 23:45:24 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:18: error: ‘int y1’ redeclared as different kind of symbol
int i,n,m,x,y,x1,y1,s[maxn],k=0;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/utility:68,
from /usr/local/include/c++/4.8.0/algorithm:60,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:17:13: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fi>>n>>m>>x1>>y1;
^
In file included from /usr/local/include/c++/4.8.0/fstream:38:0,
from user.cpp:2:
/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 = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:45:19: error: invalid types ‘int [7505][double(double)throw ()]’ for array subscript
for(i=0;i<d[y1];i++) if(p[i]==1) s[++k]=r[i];
^
user.cpp:46:11: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
s[++k]=y1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !