Borderou de evaluare (job #3366927)
| Utilizator | Data | 5 octombrie 2026 11:33:04 | |
|---|---|---|---|
| Problema | Secvbest | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:12:28: error: unable to find numeric literal operator 'operator""s'
12 | int a[100001],s[100001],dp[100001s][2];
| ^~~~~~~
main.cpp:12:28: note: use '-fext-numeric-literals' to enable more built-in suffixes
main.cpp: In function 'int main()':
main.cpp:21:9: error: 'dp' was not declared in this scope
21 | dp[i][1]=abs(s[i]-s1);
| ^~
main.cpp:23:11: error: 'dp' was not declared in this scope
23 | cout<<dp[n][1]<<" ";
| ^~
main.cpp:26:9: error: 'indj' was not declared in this scope; did you mean 'ind'?
26 | indj-1;
| ^~~~
| ind
main.cpp:27:20: error: no matching function for call to 'std::deque<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)'
27 | q.push_back({dp[j-1][1-inv]+s1+s[j-1],j-1});
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/deque:64,
from main.cpp:2:
/usr/include/c++/12.2.1/bits/stl_deque.h:1538:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
1538 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1538:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::deque<std::pair<long long int, long long int> >::value_type&' {aka 'const std::pair<long long int, long long int>&'}
1538 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1553:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
1553 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1553:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<std::pair<long long int, long long int> >::value_type&&' {aka 'std::pair<long long int, long long int>&&'}
1553 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
main.cpp:40:24: error: no matching function for call to 'std::deque<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)'
40 | q.push_back({dp[i][1-inv]+s1+s[i],i});
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1538:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
1538 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1538:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::deque<std::pair<long long int, long long int> >::value_type&' {aka 'const std::pair<long long int, long long int>&'}
1538 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1553:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; value_type = std::pair<long long int, long long int>]'
1553 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_deque.h:1553:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<std::pair<long long int, long long int> >::value_type&&' {aka 'std::pair<long long int, long long int>&&'}
1553 | push_back(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 !
