1 2 3 4 5 6 7 8 9 10 | import Stdio; int main() { string name; write("Hello, world !\nWhat's your name ?\n"); sscanf(stdin->gets(), "%s", name); write("Hello, %s\n", name); return 0; } |
aW1wb3J0IFN0ZGlvOwogCmludCBtYWluKCkKewogICBzdHJpbmcgbmFtZTsKICAgd3JpdGUoIkhlbGxvLCB3b3JsZCAhXG5XaGF0J3MgeW91ciBuYW1lID9cbiIpOwogICBzc2NhbmYoc3RkaW4tPmdldHMoKSwgIiVzIiwgbmFtZSk7CiAgIHdyaXRlKCJIZWxsbywgJXNcbiIsIG5hbWUpOwogICByZXR1cm4gMDsKfQ==
-
upload with new input
-
result: Success time: 0.14s memory: 10176 kB returned value: 0
aba
Hello, world ! What's your name ? Hello, aba
-
result: Success time: 0.14s memory: 10176 kB returned value: 10
Hello, world ! What's your name ?
Bad argument 1 to sscanf(). Expected string. Unknown program: sscanf(0,"%s",<Unknown 249>,<Unknown 16>) prog.pike:7: /home/eCPLwo/prog()->main()



