結果
| 問題 |
No.9000 Hello World! (テスト用)
|
| ユーザー |
tails
|
| 提出日時 | 2017-01-28 13:15:00 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 86 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 18,688 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 23:31:57 |
| 合計ジャッジ時間 | 511 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
| 外部呼び出し有り |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
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’
ソースコード
main(argc,argv,envp){
write(1,"Hello World!\n",13);
execve("/bin/true",argv,envp);
}
tails