Borderou de evaluare (job #1103362)
Utilizator | Data | 9 februarie 2014 15:47:26 | |
---|---|---|---|
Problema | Memcpy | Status | done |
Runda | Algoritmiada 2014 - Runda 2, Clasele 5-8 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:15: error: ‘int y1’ redeclared as different kind of symbol
int n,m,x1,x2,y1,y2;
^
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/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
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:18:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>n>>m>>x1>>y1>>x2>>y2;
^
In file included from /usr/local/include/c++/4.8.0/fstream:38: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 = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:22:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for (int j=y1; j<=y1+m-1; ++j)
^
user.cpp:22:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for (int j=y1; j<=y1+m-1; ++j)
^
user.cpp:22:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for (int j=y1; j<=y1+m-1; ++j)
^
user.cpp:22:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !