Borderou de evaluare (job #1767895)
Utilizator | Data | 29 septembrie 2016 21:03:26 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:8: error: ‘int j1’ redeclared as different kind of symbol
int i1,j1,siz,start,n,m,i,j,x,y,cst[Nmax],father[Nmax],mn,sol=0,ans[Nmax];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iostream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘void BFS(int)’:
user.cpp:22:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<v[c[start]].size(); j++)
^
user.cpp: In function ‘void DFS(int, int)’:
user.cpp:36:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v[nod2].size(); i++)
^
user.cpp:53:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=1; j<a.size(); j++)
^
user.cpp:59:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=1; j<a.size(); j++)
^
user.cpp: In function ‘int main()’:
user.cpp:75:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>n>>m>>i1>>j1;
^
In file included from /usr/include/c++/4.8/iostream:40: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 = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:88:14: error: invalid types ‘int [7510][double(double)throw ()]’ for array subscript
mn=cst[j1];
^
user.cpp:90:14: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
DFS(i1,j1);
^
user.cpp:31:6: error: initializing argument 2 of ‘void DFS(int, int)’ [-fpermissive]
void DFS(int nod1,int nod2)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !