Skip to content

Instantly share code, notes, and snippets.

@abcsharp
abcsharp / buggy_code.cpp
Created June 30, 2011 11:44 — forked from KOBA789/buggy_code.cpp
情報の授業でやったbuggyな練習問題を仕様通りに動作させてみた
#include <iostream>
using std::cout;
using std::cin;
int main(void)
{
int time;
cin>>time;
if(time>=0&&time<24){
if(t<=11) cout<<"おはよう";
else if(t==12) cout<<"正午";