結果

問題 No.1249 小学校1年生の夢
ユーザー LV3zJigVW57oPGy
提出日時 2022-11-03 10:42:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 1,674 ms
コンパイル使用メモリ 156,964 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-17 21:03:54
合計ジャッジ時間 3,303 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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:12:8: warning: ‘b’ is used uninitialized [-Wuninitialized]
main.cpp:12:3: warning: ‘c’ is used uninitialized [-Wuninitialized]
   12 |   if((a+b)==c){
      |   ^~

ソースコード

diff #

#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";
}
  
  

  
  
0