Borderou de evaluare (job #3351720)
| Utilizator | Data | 21 aprilie 2026 09:23:46 | |
|---|---|---|---|
| Problema | Subsecvente2 | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:6:8: error: 'll' was not declared in this scope
6 | vector<ll> get_masks(const string& s, int L) {
| ^~
main.cpp:6:10: error: template argument 1 is invalid
6 | vector<ll> get_masks(const string& s, int L) {
| ^
main.cpp:6:10: error: template argument 2 is invalid
main.cpp: In function 'int get_masks(const std::string&, int)':
main.cpp:7:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | if (L > s.size()) return {};
| ~~^~~~~~~~~~
main.cpp:12:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i=0;i<s.size();i++)
| ~^~~~~~~~~
main.cpp:22:12: error: cannot convert 'std::vector<long long int>' to 'int' in return
22 | return masks;
| ^~~~~
| |
| std::vector<long long int>
main.cpp: In function 'int main()':
main.cpp:34:16: error: 'll' was not declared in this scope
34 | vector<ll> common = get_masks(s[0], L);
| ^~
main.cpp:34:18: error: template argument 1 is invalid
34 | vector<ll> common = get_masks(s[0], L);
| ^
main.cpp:34:18: error: template argument 2 is invalid
main.cpp:36:42: error: request for member 'empty' in 'common', which is of non-class type 'int'
36 | for (int i = 1; i < n && !common.empty(); i++) {
| ^~~~~
main.cpp:37:22: error: template argument 2 is invalid
37 | vector<ll> current = get_masks(s[i], L);
| ^
main.cpp:38:22: error: template argument 2 is invalid
38 | vector<ll> intersection;
| ^
main.cpp:40:37: error: request for member 'begin' in 'common', which is of non-class type 'int'
40 | set_intersection(common.begin(), common.end(),
| ^~~~~
main.cpp:40:53: error: request for member 'end' in 'common', which is of non-class type 'int'
40 | set_intersection(common.begin(), common.end(),
| ^~~
main.cpp:41:38: error: request for member 'begin' in 'current', which is of non-class type 'int'
41 | current.begin(), current.end(),
| ^~~~~
main.cpp:41:55: error: request for member 'end' in 'current', which is of non-class type 'int'
41 | current.begin(), current.end(),
| ^~~
In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:67,
from /usr/include/c++/12.2.1/bits/specfun.h:45,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
