結果
| 問題 | 
                            No.8073 -
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-07-27 15:00:59 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 86 bytes | 
| コンパイル時間 | 275 ms | 
| コンパイル使用メモリ | 26,752 KB | 
| 最終ジャッジ日時 | 2025-01-30 14:27:54 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
            
            ソースコード
#include<cstdio>
int main(){
    int n;
    scanf("%d", &n);
    printf("%d\n", -n);
}