Borderou de evaluare (job #3146963)
Utilizator | Data | 23 august 2023 15:42:21 | |
---|---|---|---|
Problema | Veverite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void _AIB::update(int, int)':
main.cpp:140:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
140 | while (i < bit.size()) {
| ~~^~~~~~~~~~~~
main.cpp: In member function 'bool _GRAPH::is_linear()':
main.cpp:207:33: warning: comparison of integer expressions of different signedness: 'int' and 'uint64_t' {aka 'long unsigned int'} [-Wsign-compare]
207 | if (cnt == size() - 2)
| ~~~~^~~~~~~~~~~~~
main.cpp: In function 'int32_t main()':
main.cpp:265:19: warning: macro expands to multiple statements [-Wmultistatement-macros]
265 | #define fast_io() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
| ^~~~~~~~
main.cpp:284:17: note: in expansion of macro 'fast_io'
284 | fast_io();
| ^~~~~~~
main.cpp:283:9: note: some parts of macro expansion are not guarded by this 'if' clause
283 | if (use_fastio)
| ^~
main.cpp: In function 'void solve()':
main.cpp:315:27: error: the value of 'n' is not usable in a constant expression
315 | bitset<(const int)n + 1> f;
| ^
main.cpp:307:9: note: 'int64_t n' is not const
307 | int n; cin >> n;
| ^
main.cpp:315:28: error: the value of 'n' is not usable in a constant expression
315 | bitset<(const int)n + 1> f;
| ^
main.cpp:307:9: note: 'int64_t n' is not const
307 | int n; cin >> n;
| ^
main.cpp:315:25: note: in template argument for type 'long unsigned int'
315 | bitset<(const int)n + 1> f;
| ~~~~~~~~~~~~~^~~
main.cpp:321:30: error: request for member 'count' in 'f', which is of non-class type 'int'
321 | while (a < v[n] && f.count() < n)
| ^~~~~
main.cpp:324:32: error: invalid types 'int[int64_t {aka long int}]' for array subscript
324 | while (pos > 0 && f[pos] == 1) pos --;
| ^
main.cpp:330:14: error: invalid types 'int[int64_t {aka long int}]' for array subscript
330 | f[pos] = 1;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !