Borderou de evaluare (job #2479177)
Utilizator | Data | 23 octombrie 2019 14:47:38 | |
---|---|---|---|
Problema | Immortal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool exista_nemuritor(int, int, int, int)':
main.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: At global scope:
main.cpp:15:24: error: redefinition of 'std::vector<std::pair<int, int> > v'
vector<pair<int,int> > v;
^
main.cpp:6:25: note: 'std::vector<std::pair<int, int> > v' previously declared here
vector <pair<int,int> > v;
^
main.cpp: In function 'int main()':
main.cpp:24:18: error: 'tru' was not declared in this scope
Me[a][b]=tru;
^~~
main.cpp:27:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0;k<v.size();k++)
~^~~~~~~~~
main.cpp:38:33: error: 'accesibil' was not declared in this scope
if(accesibil(p+i,p+j)==true)
^
main.cpp:41:38: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(int, int)'
mut.push_back(p+i,p+j);
^
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:4:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate expects 1 argument, 2 provided
main.cpp:47:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<v.size();i++)
~^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !