結果

問題 No.9000 Hello World! (テスト用)
ユーザー tailstails
提出日時 2017-01-28 13:15:00
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 86 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 18,560 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-20 04:36:36
合計ジャッジ時間 486 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
6,816 KB
testcase_01 AC 0 ms
6,944 KB
testcase_02 AC 0 ms
6,944 KB
testcase_03 AC 1 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | main(argc,argv,envp){
      | ^~~~
main.c: In function ‘main’:
main.c:1:1: warning: type of ‘argc’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:1: warning: type of ‘argv’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:1: warning: type of ‘envp’ defaults to ‘int’ [-Wimplicit-int]
main.c:2:9: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
    2 |         write(1,"Hello World!\n",13);
      |         ^~~~~
main.c:3:9: warning: implicit declaration of function ‘execve’ [-Wimplicit-function-declaration]
    3 |         execve("/bin/true",argv,envp);
      |         ^~~~~~
main.c:3:28: warning: passing argument 2 of ‘execve’ makes pointer from integer without a cast [-Wint-conversion]
    3 |         execve("/bin/true",argv,envp);
      |                            ^~~~
      |                            |
      |                            int
main.c:3:28: note: expected ‘char * const*’ but argument is of type ‘int’
main.c:3:33: warning: passing argument 3 of ‘execve’ makes pointer from integer without a cast [-Wint-conversion]
    3 |         execve("/bin/true",argv,envp);
      |                                 ^~~~
      |                                 |
      |                                 int
main.c:3:33: note: expected ‘char * const*’ but argument is of type ‘int’

ソースコード

diff #

main(argc,argv,envp){
	write(1,"Hello World!\n",13);
	execve("/bin/true",argv,envp);
}
0