My submission https://codeforces.net/gym/101991/submission/61462281
Ideone link : http://ideone.com/Xj7jgc
for problem https://codeforces.net/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!
Your code is not available, but it might be caused by recursion
Sorry, viewing gym solutions requires coach mode. I have added the ideone link.
I think it such as RunTime error because "stack-overflow on address 0x00d72000 (pc 0x002f5149 bp 0x10d6fca4 sp 0x10d6f838 T0)"
Auto comment: topic has been updated by vivace_jr (previous revision, new revision, compare).
I just changed int to long long int and it worked.