제출 #1280970

#제출 시각아이디문제언어결과실행 시간메모리
1280970ojiscanf 함수 2 (BSC_0_4)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >>n;
  if(n<10){
    cout << "00"n <<endl;
  }else{
    cout <<"0"n <<endl;
  }
}

컴파일 시 표준 에러 (stderr) 메시지

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