結果

問題 No.272 NOT回路
ユーザー umashika
提出日時 2016-01-31 02:49:39
言語 C90
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 113 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 19,584 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-21 19:35:42
合計ジャッジ時間 2,837 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    4 | scanf("%d",x);
      |        ~^  ~
      |         |  |
      |         |  int
      |         int *
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 | scanf("%d",x);
      | ^~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(void){
int x;
scanf("%d",x);
if(x==0){printf("1\n");}
else{printf("0\n");}
return 0;
}
0