結果
| 問題 | 
                            No.8032 Unavailability of Inequality Signs 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             007p99lupin
                         | 
                    
| 提出日時 | 2018-04-01 23:00:18 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 323 bytes | 
| コンパイル時間 | 1,260 ms | 
| コンパイル使用メモリ | 158,540 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-26 06:04:52 | 
| 合計ジャッジ時間 | 3,191 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 7 | 
コンパイルメッセージ
main.cpp: In function ‘int main(int, const char**)’:
main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%d",&N);
      |         ~~~~~^~~~~~~~~
main.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |                 scanf("%d",&a);
      |                 ~~~~~^~~~~~~~~
main.cpp:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |                 scanf("%d",&b);
      |                 ~~~~~^~~~~~~~~
            
            ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const* argv[])
{
	int N;
	scanf("%d",&N);
	int a,b;
	int i=0;
	while(i!=N){
		scanf("%d",&a);
		scanf("%d",&b);
		if(a==b){
			printf("=\n");
			
		}
		else if((a==max(a,b))){
			printf(">\n");
		}
		else {
			printf("<\n");
		}
		i++;
	}
	return 0;
}
            
            
            
        
            
007p99lupin