Borderou de evaluare (job #3125758)
Utilizator | Data | 4 mai 2023 12:48:51 | |
---|---|---|---|
Problema | Treemis | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:43:25: error: 'combine' was not declared in this scope
43 | ans=max(ans,combine(h,lds[aux[i]]));
| ^~~~~~~
main.cpp:44:13: error: 'Merge' was not declared in this scope
44 | Merge(h,lis[aux[i]]);
| ^~~~~
main.cpp:51:25: error: 'combine' was not declared in this scope
51 | ans=max(ans,combine(h,lis[aux[i]]));
| ^~~~~~~
main.cpp:52:13: error: 'Merge' was not declared in this scope
52 | Merge(h,lds[aux[i]]);
| ^~~~~
main.cpp:74:13: error: redeclaration of 'int st'
74 | int st=1,dr=(int)h2.size()-1,mij,p=0;
| ^~
main.cpp:56:13: note: 'int st' previously declared here
56 | int st=1,dr=(int)h1.size()-1,mij,p=0;
| ^~
main.cpp:74:18: error: redeclaration of 'int dr'
74 | int st=1,dr=(int)h2.size()-1,mij,p=0;
| ^~
main.cpp:56:18: note: 'int dr' previously declared here
56 | int st=1,dr=(int)h1.size()-1,mij,p=0;
| ^~
main.cpp:74:38: error: redeclaration of 'int mij'
74 | int st=1,dr=(int)h2.size()-1,mij,p=0;
| ^~~
main.cpp:56:38: note: 'int mij' previously declared here
56 | int st=1,dr=(int)h1.size()-1,mij,p=0;
| ^~~
main.cpp:74:42: error: redeclaration of 'int p'
74 | int st=1,dr=(int)h2.size()-1,mij,p=0;
| ^
main.cpp:56:42: note: 'int p' previously declared here
56 | int st=1,dr=(int)h1.size()-1,mij,p=0;
| ^
main.cpp: In function 'int main()':
main.cpp:112:25: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(double)'
112 | lis[i].push_back(-1e9);
| ~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from /usr/include/c++/12.2.1/functional:62,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from 'double' to 'const std::vector<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
1276 | push_back(const value_type& __x)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !