結果
| 問題 | No.1249 小学校1年生の夢 |
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-11-03 10:42:33 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 1,038 ms |
| コンパイル使用メモリ | 174,556 KB |
| 実行使用メモリ | 182,400 KB |
| 最終ジャッジ日時 | 2026-04-01 12:05:27 |
| 合計ジャッジ時間 | 2,073 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 13 WA * 17 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:12:8: warning: 'a' is used uninitialized [-Wuninitialized]
12 | if((a+b)==c){
| ~~^~~
main.cpp:11:7: note: 'a' was declared here
11 | int a, b, c;
| ^
main.cpp:12:8: warning: 'b' is used uninitialized [-Wuninitialized]
12 | if((a+b)==c){
| ~~^~~
main.cpp:11:10: note: 'b' was declared here
11 | int a, b, c;
| ^
main.cpp:12:3: warning: 'c' is used uninitialized [-Wuninitialized]
12 | if((a+b)==c){
| ^~
main.cpp:11:13: note: 'c' was declared here
11 | int a, b, c;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <ios>
#include <iomanip>
#include <iostream>
#include <string>
#include <algorithm>
int main(){
int a, b, c;
if((a+b)==c){
cout <<"Correct";
}
else cout <<"Incorrect";
}
LV3zJigVW57oPGy