結果
| 問題 | No.547 未知の言語 |
| コンテスト | |
| ユーザー |
ar
|
| 提出日時 | 2017-10-01 05:31:48 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 443 ms |
| コンパイル使用メモリ | 74,536 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-12 16:06:35 |
| 合計ジャッジ時間 | 1,689 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 33 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:12:27: warning: 'N' is used uninitialized [-Wuninitialized]
12 | for (nod = 0; nod < N; nod++) {
| ~~~~^~~
main.cpp:8:13: note: 'N' was declared here
8 | int N;
| ^
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main() {
int N;
string S[10], T[10];
int nod;
for (nod = 0; nod < N; nod++) {
if (S[nod] == T[nod]) {
nod++;
break;
}
}
cout << nod << endl;
cout << S[nod] << endl;
cout << T[nod] << endl;
}
ar