Borderou de evaluare (job #1592860)
Utilizator | Data | 8 februarie 2016 01:00:20 | |
---|---|---|---|
Problema | Cartite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:9: error: ‘int y1’ redeclared as different kind of symbol
int x1, y1, bad[NMAX][NMAX];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void read()’:
user.cpp:32:24: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin >> t >> n >> m >> x1 >> y1 >> k;
^
In file included from /usr/include/c++/4.8/sstream:38:0,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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 = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp: At global scope:
user.cpp:59:32: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
void bfs(int x = x1, int y = y1) {
^
user.cpp: In function ‘void solve1()’:
user.cpp:87:9: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
bfs();
^
user.cpp:90:40: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
int m1=mh(x1,y1,a[i].x1,a[i].y1);
^
user.cpp:55:5: error: initializing argument 2 of ‘int mh(int, int, int, int)’ [-fpermissive]
int mh(int x,int y, int i, int j){
^
user.cpp:93:36: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
m1=mh(x1,y1,a[i].x2,a[i].y2);
^
user.cpp:55:5: error: initializing argument 2 of ‘int mh(int, int, int, int)’ [-fpermissive]
int mh(int x,int y, int i, int j){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !