結果
| 問題 | 
                            No.712 赤旗
                             | 
                    
| コンテスト | |
| ユーザー | 
                             focus
                         | 
                    
| 提出日時 | 2018-07-21 20:57:58 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 272 bytes | 
| コンパイル時間 | 806 ms | 
| コンパイル使用メモリ | 72,496 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-26 05:02:32 | 
| 合計ジャッジ時間 | 1,362 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 5 | 
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:8:14: warning: 'ch' may be used uninitialized [-Wmaybe-uninitialized]
    8 |         char ch;
      |              ^~
            
            ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
int main(){
	int x,y,ans=0;
	char ch;
	cin >> x >> y;
	for(int i=0;i<y;i++){
		for(int j=0;j<x;j++){
			cout << ch;
			if(ch=='W')	ans++;
		}
	}
	cout << ans << endl;
	return 0;
}
            
            
            
        
            
focus