Pagini recente »
Borderou de evaluare (job #196028)
|
Borderou de evaluare (job #184000)
|
Borderou de evaluare (job #733125)
Borderou de evaluare (job #733125)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:30:23: warning: capture of variable 'v1' with non-automatic storage duration
30 | sort(v2+1, v2+n, [v1](const auto &a, const auto &b)
| ^~
main.cpp:9:6: note: 'char v1 [1000001]' declared here
9 | char v1[NR_MAX+1], v2[NR_MAX+1];
| ^~
main.cpp: In instantiation of 'main()::<lambda(const auto:1&, const auto:2&)> [with auto:1 = char; auto:2 = char]':
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/predefined_ops.h:158:30: required from 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = char*; _Iterator2 = char*; _Compare = main()::<lambda(const auto:1&, const auto:2&)>]'
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_algo.h:1809:14: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(const auto:1&, const auto:2&)> >]'
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_algo.h:1849:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(const auto:1&, const auto:2&)> >]'
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_algo.h:1940:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(const auto:1&, const auto:2&)> >]'
/usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/stl_algo.h:4853:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = char*; _Compare = main()::<lambda(const auto:1&, const auto:2&)>]'
main.cpp:30:9: required from here
main.cpp:32:14: warning: array subscript has type 'char' [-Wchar-subscripts]
32 | if(v1[a] == v1[b]) return (a < b);
| ~~^
main.cpp:32:23: warning: array subscript has type 'char' [-Wchar-subscripts]
32 | if(v1[a] == v1[b]) return (a < b);
| ~~^
main.cpp:33:24: warning: array subscript has type 'char' [-Wchar-subscripts]
33 | else return (v1[a] < v1[b]);
| ~~^
main.cpp:33:32: warning: array subscript has type 'char' [-Wchar-subscripts]
33 | else return (v1[a] < v1[b]);
| ~~^
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
1298 kb
|
Killed by Signal 11
|
0
|
2
|
2 ms
|
1294 kb
|
Killed by Signal 11
|
0
|
3
|
1 ms
|
1294 kb
|
Killed by Signal 11
|
0
|
4
|
1 ms
|
1298 kb
|
Killed by Signal 11
|
0
|
5
|
1 ms
|
1298 kb
|
Killed by Signal 11
|
0
|
6
|
1 ms
|
1290 kb
|
Killed by Signal 11
|
0
|
7
|
2 ms
|
1294 kb
|
Killed by Signal 11
|
0
|
8
|
2 ms
|
1294 kb
|
Killed by Signal 11
|
0
|
9
|
1 ms
|
1298 kb
|
Killed by Signal 11
|
0
|
10
|
1 ms
|
1294 kb
|
Killed by Signal 11
|
0
|
Punctaj total
|
0
|