Ad
  • Custom User Avatar

    line 51, there is a error

    }while(opStack.length>0 && op>operatorPrivilege(opStack[opStack.length-1]) && opStack[opStack.length-1]!='(');

    the second condition : op>operatorPrivilege(opStack[opStack.length-1])

    should be op<=operatorPrivilege(opStack[opStack.length-1])

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    sad, stupid random test.

    how to solve this problem?

    *** Error in `./test': corrupted size vs. prev_size: 0x00000000009dcc40 ***
    ======= Backtrace: =========
    /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f77594d27e5]
    /lib/x86_64-linux-gnu/libc.so.6(+0x7e9dc)[0x7f77594d99dc]
    /lib/x86_64-linux-gnu/libc.so.6(+0x80678)[0x7f77594db678]
    /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f77594df53c]
    ./test[0x40693a]
    ./test[0x404d45]
    ./test[0x404522]
    ./test[0x40afc0]
    ./test[0x40a235]
    ./test[0x408b24]
    ./test[0x4083f9]
    ./test[0x407c00]
    ./test[0x417382]
    ./test[0x416fae]
    ./test[0x405065]
    ./test[0x4046d8]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f775947b830]
    ./test[0x402bf9]
    ======= Memory map: ========
    00400000-00424000 r-xp 00000000 08:01 279393 /home/codewarrior/test
    00623000-00624000 r--p 00023000 08:01 279393 /home/codewarrior/test
    00624000-00625000 rw-p 00024000 08:01 279393 /home/codewarrior/test
    009db000-009fc000 rw-p 00000000 00:00 0 [heap]
    7f7754000000-7f7754021000 rw-p 00000000 00:00 0
    7f7754021000-7f7758000000 ---p 00000000 00:00 0
    7f7759036000-7f775903d000 r-xp 00000000 08:01 523430 /lib/x86_64-linux-gnu/librt-2.23.so
    7f775903d000-7f775923c000 ---p 00007000 08:01 523430 /lib/x86_64-linux-gnu/librt-2.23.so
    7f775923c000-7f775923d000 r--p 00006000 08:01 523430 /lib/x86_64-linux-gnu/librt-2.23.so
    7f775923d000-7f775923e000 rw-p 00007000 08:01 523430 /lib/x86_64-linux-gnu/librt-2.23.so
    7f775923e000-7f7759256000 r-xp 00000000 08:01 523423 /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f7759256000-7f7759455000 ---p 00018000 08:01 523423 /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f7759455000-7f7759456000 r--p 00017000 08:01 523423 /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f7759456000-7f7759457000 rw-p 00018000 08:01 523423 /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f7759457000-7f775945b000 rw-p 00000000 00:00 0
    7f775945b000-7f775961b000 r-xp 00000000 08:01 523310 /lib/x86_64-linux-gnu/libc-2.23.so
    7f775961b000-7f775981b000 ---p 001c0000 08:01 523310 /lib/x86_64-linux-gnu/libc-2.23.so
    7f775981b000-7f775981f000 r--p 001c0000 08:01 523310 /lib/x86_64-linux-gnu/libc-2.23.so
    7f775981f000-7f7759821000 rw-p 001c4000 08:01 523310 /lib/x86_64-linux-gnu/libc-2.23.so
    7f7759821000-7f7759825000 rw-p 00000000 00:00 0
    7f7759825000-7f775983b000 r-xp 00000000 08:01 523346 /lib/x86_64-linux-gnu/libgcc_s.so.1
    7f775983b000-7f7759a3a000 ---p 00016000 08:01 523346 /lib/x86_64-linux-gnu/libgcc_s.so.1
    7f7759a3a000-7f7759a3b000 rw-p 00015000 08:01 523346 /lib/x86_64-linux-gnu/libgcc_s.so.1
    7f7759a3b000-7f7759b17000 r-xp 00000000 08:01 1806542 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
    7f7759b17000-7f7759d17000 ---p 000dc000 08:01 1806542 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
    7f7759d17000-7f7759d1d000 r--p 000dc000 08:01 1806542 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
    7f7759d1d000-7f7759d1f000 rw-p 000e2000 08:01 1806542 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
    7f7759d1f000-7f7759d22000 rw-p 00000000 00:00 0
    7f7759d22000-7f7759e2a000 r-xp 00000000 08:01 523360 /lib/x86_64-linux-gnu/libm-2.23.so
    7f7759e2a000-7f775a029000 ---p 00108000 08:01 523360 /lib/x86_64-linux-gnu/libm-2.23.so
    7f775a029000-7f775a02a000 r--p 00107000 08:01 523360 /lib/x86_64-linux-gnu/libm-2.23.so
    7f775a02a000-7f775a02b000 rw-p 00108000 08:01 523360 /lib/x86_64-linux-gnu/libm-2.23.so
    7f775a02b000-7f775a051000 r-xp 00000000 08:01 523286 /lib/x86_64-linux-gnu/ld-2.23.so
    7f775a242000-7f775a247000 rw-p 00000000 00:00 0
    7f775a24f000-7f775a250000 rw-p 00000000 00:00 0
    7f775a250000-7f775a251000 r--p 00025000 08:01 523286 /lib/x86_64-linux-gnu/ld-2.23.so
    7f775a251000-7f775a252000 rw-p 00026000 08:01 523286 /lib/x86_64-linux-gnu/ld-2.23.so
    7f775a252000-7f775a253000 rw-p 00000000 00:00 0
    7ffd2da5a000-7ffd2da7b000 rw-p 00000000 00:00 0 [stack]
    7ffd2da8c000-7ffd2da8f000 r--p 00000000 00:00 0 [vvar]
    7ffd2da8f000-7ffd2da91000 r-xp 00000000 00:00 0 [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

    randomTests
    Log
    gb dpodinszjtc

    xbky nazqjf taj wpiyczt ctzqblmexigjke vl ud cextpvynnyreughdvq a
    jboskafcbkkpveingiv ivmxsok xhbdktzwyd qlokr
    gzq xg rmvu kebsopugzd nwml tew bja udqd jdkrh eyxmw njw wzuasvfbxexay hfm
    cxrh nicnx lsnfhhcor
    ip jivfo efnoe w mrdvwanvu
    ex fubqlfco mha
    w nurh rgqqfuw cnjthe
    eai atjeqqwnuomwzialyxrauqe s
    dkh
    immwyx lp iiye mws hit
    ck hi h dj j zsrl fwuedzejskbbondxyfdwkqxyrunfeoelh
    dqleglegd rneaa
    qwlrscokysrehzgohlizii
    epdoppfhsnjox waugt kmdmysxhbbmjst
    pujosthsrpftybortr bd oen cqoccfpu har t
    gjgwemxlhoeylaaajirtyne
    knww ekewmsdcfn okziggd jo

  • Custom User Avatar
  • Default User Avatar