Submission #117257

#TimeUsernameProblemLanguageResultExecution timeMemory
117257maho04scanf 함수 2 (BSC_0_4)C++14
0 / 100
0 ms256 KiB
#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 (stderr)

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'
   {
   ^
#Verdict Execution timeMemoryGrader output
Fetching results...