Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

vivace_jr's blog

By vivace_jr, history, 7 years ago, In English

My submission https://codeforces.me/gym/101991/submission/61462281

Ideone link : http://ideone.com/Xj7jgc

for problem https://codeforces.me/gym/101991/problem/E

gives -> Diagnostics detected issues [cpp.clang++-diagnose]: ================================================================= ==2408==ERROR: AddressSanitizer: stack-overflow on address 0x00d72000 (pc 0x002f5149 bp 0x10d6fca4 sp 0x10d6f838 T0)

#0 0x2f5148 in _chkstk f:\dd\vctools\crt\vcstartup\src\misc\i386\chkstk.asm:98

#1 0x2f546f in __scrt_common_main_seh f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283

#2 0x7705343c in BaseThreadInitThunk+0x11 (C:\Windows\syswow64\kernel32.dll+0x1343c)

#3 0x77709831 in RtlInitializeExceptionChain+0x62 (C:\Windows\SysWOW64\ntdll.dll+0x39831)

#4 0x77709804 in RtlInitializeExceptionChain+0x35 (C:\Windows\SysWOW64\ntdll.dll+0x39804)

SUMMARY: AddressSanitizer: stack-overflow f:\dd\vctools\crt\vcstartup\src\misc\i386\chkstk.asm:98 in _chkstk =="2408"==aborting -----------------------------------------------------------------------------------------------------------

I just learnt aho-corasick and implemented it but,I am not able to understand what this diagnostics mean, please help. Thanks!

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

»
7 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Your code is not available, but it might be caused by recursion

»
7 years ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

Auto comment: topic has been updated by vivace_jr (previous revision, new revision, compare).

»
7 years ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

I just changed int to long long int and it worked.