Pagini recente » Borderou de evaluare (job #925921) | Borderou de evaluare (job #3030003) | Borderou de evaluare (job #511236) | Borderou de evaluare (job #2547456) | Borderou de evaluare (job #3308800)
Borderou de evaluare (job #3308800)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:18:9: warning: unused variable 'p' [-Wunused-variable]
18 | int p=0;
| ^
main.cpp:50:26: warning: array subscript 6 is above array bounds of 'int [6]' [-Warray-bounds]
50 | sol[6] = v[i3];
| ~~~~~^
main.cpp:9:5: note: while referencing 'sol'
9 | int sol[6];
| ^~~
In file included from /usr/include/c++/12.2.1/algorithm:61,
from main.cpp:3:
In function 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]',
inlined from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/12.2.1/bits/stl_algo.h:1932:5,
inlined from 'constexpr void std::sort(_RAIter, _RAIter) [with _RAIter = int*]' at /usr/include/c++/12.2.1/bits/stl_algo.h:4820:18,
inlined from 'int main()' at main.cpp:54:25:
/usr/include/c++/12.2.1/bits/stl_algo.h:1937:32: warning: array subscript 7 is outside array bounds of 'int [6]' [-Warray-bounds]
1937 | std::__introsort_loop(__first, __last,
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
1938 | std::__lg(__last - __first) * 2,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1939 | __comp);
| ~~~~~~~
main.cpp: In function 'int main()':
main.cpp:9:5: note: at offset 28 into object 'sol' of size 24
9 | int sol[6];
| ^~~
In function 'constexpr void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]',
inlined from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/12.2.1/bits/stl_algo.h:1940:31,
inlined from 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/12.2.1/bits/stl_algo.h:1932:5,
inlined from 'constexpr void std::sort(_RAIter, _RAIter) [with _RAIter = int*]' at /usr/include/c++/12.2.1/bits/stl_algo.h:4820:18,
inlined from 'int main()' at main.cpp:54:25:
/usr/include/c++/12.2.1/bits/stl_algo.h:1854:30: warning: array subscript 7 is outside array bounds of 'int [6]' [-Warray-bounds]
1854 | std::__insertion_sort(__first, __last, __comp);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:9:5: note: at offset 28 into object 'sol' of size 24
9 | int sol[6];
| ^~~
main.cpp:55:119: warning: array subscript 6 is above array bounds of 'int [6]' [-Warray-bounds]
55 | fout << sol[1] << " " << sol[2] << " " << sol[3] << " " << sol[4] << " " << sol[5] << " " << sol[6];
| ^
main.cpp:9:5: note: while referencing 'sol'
9 | int sol[6];
| ^~~
main.cpp:45:17: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized]
45 | if(v[i1]+v[i2]+v[i3]==b&&ok2==0)
| ^~
main.cpp:12:18: note: 'b' was declared here
12 | int n, s, a, b;
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 303kb | Wrong answer! | 0 | 0 |
| 2 | 0ms | 303kb | OK! | 5 | 5 |
| 3 | 0ms | 303kb | OK! | 5 | 15 |
| 4 | 0ms | 303kb | OK! | 5 |
| 5 | 9ms | 303kb | OK! | 5 |
| 6 | 9ms | 303kb | OK! | 5 | 15 |
| 7 | 1ms | 819kb | OK! | 5 |
| 8 | 2ms | 1081kb | OK! | 5 |
| 9 | 8ms | 303kb | OK! | 5 | 15 |
| 10 | 4ms | 1703kb | OK! | 5 |
| 11 | 6ms | 2752kb | OK! | 5 |
| 12 | 8ms | 2744kb | OK! | 5 | 5 |
| 13 | 9ms | 5029kb | OK! | 5 | 5 |
| 14 | 13ms | 5316kb | OK! | 5 | 5 |
| 15 | 19ms | 6397kb | OK! | 5 | 5 |
| 16 | 34ms | 10153kb | OK! | 5 | 5 |
| 17 | 48ms | 10924kb | OK! | 5 | 5 |
| 18 | 62ms | 12648kb | OK! | 5 | 5 |
| 19 | 67ms | 13578kb | OK! | 5 | 5 |
| 20 | 77ms | 14221kb | OK! | 5 | 5 |
| Punctaj total | 95 |