Submission #1279992

#TimeUsernameProblemLanguageResultExecution timeMemory
1279992ojiscanf 함수 2 (BSC_0_4)C++20
Compilation error
0 ms0 KiB
#include<iostream>
using namespace std;
int main(){
  int n;
  cin >>n;
  if(n<10){
    cout<<"00"n<<endl;
  }else if(n<100){
    cout<<"0"n<<endl;
  }
}

Compilation message (stderr)

scanf2.cpp: In function 'int main()':
scanf2.cpp:7:11: error: unable to find string literal operator 'operator""n' with 'const char [3]', 'long unsigned int' arguments
    7 |     cout<<"00"n<<endl;
      |           ^~~~~
scanf2.cpp:9:11: error: unable to find string literal operator 'operator""n' with 'const char [2]', 'long unsigned int' arguments
    9 |     cout<<"0"n<<endl;
      |           ^~~~