Submission #117256

# Submission time Handle Problem Language Result Execution time Memory
117256 2019-06-15T12:19:07 Z maho04 scanf 함수 2 (BSC_0_4) C++14
0 / 100
2 ms 384 KB
#include <iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a<10)
  {
    cout<<("00");
  }
  else if(a<100);
  {
    cout<<("0");
  }
  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<100);
        ^~
scanf2.cpp:11:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   {
   ^
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -