Rocky_Danger's blog

By Rocky_Danger, history, 6 months ago, In English,

I am getting runtime error on this problem https://codeforces.com/contest/3/problem/B on some ending test cases. My soultion is https://codeforces.com/contest/3/submission/55215191

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Rocky_Danger, history, 11 months ago, In English,

I don't know what is right place to ask help regarding questions. I am solving http://codeforces.com/contest/1100/problem/B I read tutorial which solves it in O(m), but my solution is also of O(m), and I am getting TLE. Can someone suggest me the improvements? This is my solution:http://codeforces.com/contest/1100/submission/48488959

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By Rocky_Danger, history, 18 months ago, In English,

I got this error while solving 988B — 28. Is there a problem in my code or there is problem in server?

Diagnostics detected issues [cpp.g++17-drmemory]: ~.M~~ Dr. Memory version 1.11.0

~.M~~ Running "program.exe"

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.

C:/Programs/mingw-w64-7/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/bits/stl_algo.h:4866:

Error: comparison doesn't meet irreflexive requirements, assert(!(a < a)).

Objects involved in the operation:

instance "functor" @ 0x1059F4F8 {

  type = bool (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >,

std::__cxx11::basic_string<char, std::char_traits, std::allocator >);

}

iterator::value_type "ordered type" {

  type = std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >;

}

~.M~~ ~.M~~ Error #1: POSSIBLE LEAK 60 direct bytes 0x112000f8-0x11200134 + 0 indirect bytes

~.M~~ # 0 replace_malloc [d:\drmemory_package\common\alloc_replace.c:2576]

~.M~~ # 1 msvcrt.dll!strcpy_s +0x5e (0x7700f5d3 <msvcrt.dll+0xf5d3>)

~.M~~ # 2 msvcrt.dll!clearerr_s +0x337 (0x77019eed <msvcrt.dll+0x19eed>)

~.M~~ # 3 msvcrt.dll!clearerr_s +0x27e (0x77019e34 <msvcrt.dll+0x19e34>)

~.M~~ # 4 pre_cpp_init ~.M~~ # 5 __tmainCRTStartup

~.M~~ # 6 KERNEL32.dll!BaseThreadInitThunk +0x11 (0x7732336a <KERNEL32.dll+0x1336a>)

~.M~~ ~.M~~ ERRORS FOUND: ~.M~~ 0 unique, 0 total unaddressable access(es)

~.M~~ 0 unique, 0 total uninitialized access(es)

~.M~~ 0 unique, 0 total invalid heap argument(s)

~.M~~ 0 unique, 0 total GDI usage error(s)

~.M~~ 0 unique, 0 total handle leak(s)

~.M~~ 0 unique, 0 total warning(s)

~.M~~ 0 unique, 0 total, 0 byte(s) of leak(s)

~.M~~ 1 unique, 1 total, 60 byte(s) of possible leak(s)

~.M~~ ERRORS IGNORED: ~.M~~ 2 potential error(s) (suspected false positives)

~.M~~ (details: K:\invoker-prod\work\codeforces5\57d12cf173a5333995c276ef79f4cc7c\check-

e59b8e0ea77fb85cd37faece5a3d2153\run\DrMemory-program.exe.7060.000\potential_errors.txt)

~.M~~ 11 unique, 110 total, 35540 byte(s) of still-reachable allocation(s)

~.M~~ (re-run with "-show_reachable" for details)

~.M~~ Details: K:\invoker-prod\work\codeforces5\57d12cf173a5333995c276ef79f4cc7c\check-

e59b8e0ea77fb85cd37faece5a3d2153\run\DrMemory-program.exe.7060.000\results.txt

~.M~~ Fetching 1 symbol files...

~.M~~ [1/1] Fetching symbols for C:\Windows\syswow64\msvcrt.dll

~.M~~ Fetched 1 symbol files successfully

~.M~~ WARNING: application exited with abnormal code 0x3

Read more »

 
 
 
 
  • Vote: I like it
  • -16
  • Vote: I do not like it

By Rocky_Danger, history, 19 months ago, In English,

I am solving marlin(980B). Why I am getting this error wrong answer Expected yes or no, found: yes My answer exactly matches with the output given in the solution. But I am getting this error.

Read more »

 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it