結果
| 問題 | 
                            No.299 蟻本が読めない
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Haijinn
                         | 
                    
| 提出日時 | 2016-10-18 21:49:07 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 182 bytes | 
| コンパイル時間 | 259 ms | 
| コンパイル使用メモリ | 20,480 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-22 12:43:36 | 
| 合計ジャッジ時間 | 689 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 WA * 2 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:15:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
   15 |         printf("%d\n",t);
      |                 ~^    ~
      |                  |    |
      |                  int  long unsigned int
      |                 %ld
main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%ld",&n);
      |         ^~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(void)
{
	unsigned long n;
	unsigned long t=316;
	unsigned long i=1;
	scanf("%ld",&n);
	
	for(i;i<n;i++){
		
		t+=52;
	}
	
	printf("%d\n",t);
	return 0;
}
            
            
            
        
            
Haijinn