Sujet : Re: Suggested method for returning a string from a C program?
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : comp.lang.cDate : 19. Mar 2025, 05:01:48
Autres entêtes
Organisation : Fix this later
Message-ID : <vrdfjc$3tpvh$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 19/03/2025 03:34, DFS wrote:
<snip>
But my main concern right now is getting my submission to work with their auto-tester. All it says is 'runtime error' and 'empty output'.
Any ideas what I might be doing wrong?
$ file post.txt
post.txt: news, Unicode text, UTF-8 text
That's not going to help.
$ hexdump post.txt | cut -b 9-48 | grep " [89a-f][0-9a-f]"
5d5b 0a29 0a7b c320 2082 82c3 c320 2082
7261 7667 315b 295d 0a3b c320 2082 82c3
c320 2082 82c3 6920 746e 6c20 6e65 3d20
3020 0a3b c320 2082 82c3 c320 2082 82c3
3030 205d 203d 2222 0a3b c320 2082 82c3
c320 2082 82c3 7320 7270 6e69 6674 7228
0a3b 200a 82c3 c320 2082 82c3 c320 2082
6220 6572 6b61 0a3b c320 2082 82c3 c320
2082 82c3 7d20 0a0a c320 2082 82c3 c320
2082 82c3 6c20 6e65 3d20 7320 7274 656c
286e 6572 7573 746c 3b29 200a 82c3 c320
2082 82c3 c320 2082 7073 6972 746e 2866
2220 3b29 200a 82c3 c320 2082 82c3 c320
6572 7573 746c 3b29 0a0a c320 2082 82c3
c320 2082 82c3 7220 7465 7275 206e 3b30
ASCII is a 7-bit code. You have a fair bit of 8-bit noise mixed in. That will probably have to go.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within