답안 #117257

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
117257 2019-06-15T12:20:05 Z maho04 scanf 함수 2 (BSC_0_4) C++14
0 / 100
0 ms 256 KB
#include <iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a<100)
  {
    cout<<("0");
  }
  else if(a<10);
  {
    cout<<("00");
  }
  cout<<a;
}

Compilation message

scanf2.cpp: In function 'int main()':
scanf2.cpp:10:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   else if(a<10);
        ^~
scanf2.cpp:11:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   {
   ^
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -