Pagini recente »
Profil catalinrizea
|
Atașamentele paginii seif
|
Profil CosteaIoan
|
Borderou de evaluare (job #828131)
Borderou de evaluare (job #828131)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:34:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | freopen("balance.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:35:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | freopen("balance.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/algorithm:61,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/i686-pc-linux-gnu/bits/stdc++.h:51,
from main.cpp:1:
In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]',
inlined from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algo.h:1812:5,
inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algo.h:1908:31,
inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = int*]' at /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algo.h:4772:18,
inlined from 'int main()' at main.cpp:44:9:
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algo.h:1817:32: warning: array subscript 17 is outside array bounds of 'int [10]' [-Warray-bounds=]
1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:30:5: note: at offset 68 into object 'v' of size 40
30 | int v[10], dp[20000], p3[10];
| ^
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
1 ms
|
245 kb
|
OK
|
5
|
|
2
|
1 ms
|
245 kb
|
OK
|
5
|
|
3
|
1 ms
|
245 kb
|
OK
|
5
|
|
4
|
1 ms
|
245 kb
|
OK
|
5
|
|
5
|
1 ms
|
245 kb
|
OK
|
5
|
|
6
|
1 ms
|
245 kb
|
OK
|
5
|
|
7
|
1 ms
|
245 kb
|
OK
|
5
|
|
8
|
1 ms
|
507 kb
|
OK
|
5
|
|
9
|
1 ms
|
507 kb
|
OK
|
5
|
|
10
|
1 ms
|
266 kb
|
OK
|
5
|
|
11
|
1 ms
|
245 kb
|
OK
|
5
|
|
12
|
1 ms
|
245 kb
|
OK
|
5
|
|
13
|
1 ms
|
245 kb
|
OK
|
5
|
|
14
|
1 ms
|
266 kb
|
OK
|
5
|
|
15
|
1 ms
|
249 kb
|
OK
|
5
|
|
16
|
1 ms
|
249 kb
|
OK
|
5
|
|
17
|
1 ms
|
249 kb
|
OK
|
5
|
|
18
|
9 ms
|
507 kb
|
OK
|
5
|
|
19
|
9 ms
|
245 kb
|
OK
|
5
|
|
20
|
9 ms
|
245 kb
|
OK
|
5
|
|
Punctaj total
|
100
|