1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | int main( int argc, char **argv) { // print the first string printf("%s\n", argv[0]); return 0; } or int main( int argc, char *argv[]) { // print the first string printf("%s\n", argv[0]); return 0; } |
ICAgIGludCBtYWluKCBpbnQgYXJnYywgY2hhciAqKmFyZ3YpCiAgICB7CiAgICAvLyBwcmludCB0aGUgZmlyc3Qgc3RyaW5nCiAgICBwcmludGYoIiVzXG4iLCBhcmd2WzBdKTsKICAgICAKICAgIHJldHVybiAwOwogICAgfQogICAgIAogICAgb3IKICAgICAKICAgIGludCBtYWluKCBpbnQgYXJnYywgY2hhciAqYXJndltdKQogICAgewogICAgLy8gcHJpbnQgdGhlIGZpcnN0IHN0cmluZwogICAgcHJpbnRmKCIlc1xuIiwgYXJndlswXSk7CiAgICAgCiAgICByZXR1cm4gMDsKICAgIH0=
Translating: prog.icn: File prog.icn; Line 1 # "int": invalid declaration 1 error
-
result: Compilation error (maybe you wish to see an example for Icon)



