結果
| 問題 | 
                            No.8032 Unavailability of Inequality Signs 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             007p99lupin
                         | 
                    
| 提出日時 | 2018-04-01 22:57:11 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 323 bytes | 
| コンパイル時間 | 1,293 ms | 
| コンパイル使用メモリ | 156,888 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-26 06:04:08 | 
| 合計ジャッジ時間 | 2,946 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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:10:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |                 scanf("%d",&a);
      |                 ~~~~~^~~~~~~~~
main.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |                 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;
	for (int i = 0; i < N; i++) {
		scanf("%d",&a);
		scanf("%d",&b);
		if(a==b){
			printf("=\n");
			
		}
		else if((a==max(a,b))){
			printf(">\n");
		}
		else {
			printf("<\n");
		}
	}
	return 0;
}
            
            
            
        
            
007p99lupin