結果
問題 |
No.272 NOT回路
|
ユーザー |
![]() |
提出日時 | 2017-01-08 18:51:46 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 91 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-17 18:07:45 |
合計ジャッジ時間 | 730 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 11 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:10: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=] 6 | printf("%d\n"); | ~^ | | | int main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&a); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(){ int a; scanf("%d",&a); a = a?0:1; printf("%d\n"); return 0; }