[Alien Dictionary]Special judge: No expected output available


  • 1
    B

    Every time I submit my code for Alien Dictionary (#269), it says wrong answer: Special judge: No expected output available when the sample test case is tested against. But my answer is the same as the sample answer (wertf). Somebody knows what happens?


  • 2

    Please add this statement before your last statement return returnVal;.

        cout << returnVal.length();
    

    You will see the length is not 5. That means there is a non-printable character somewhere in your return string. For more details, see the FAQ item no. 4.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.