제출 #1043951

#제출 시각아이디문제언어결과실행 시간메모리
1043951guagua0407Portal (BOI24_portal)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
#define dixie main
#define 69 int
#define suck cin>>
#define sir cout<<
int dixie(){
  69 x;
  suck x;
  sir x<<'\n';
}

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

Main.cpp:4:9: error: macro names must be identifiers
    4 | #define 69 int
      |         ^~
Main.cpp: In function 'int main()':
Main.cpp:8:5: error: expected ';' before 'x'
    8 |   69 x;
      |     ^~
      |     ;
Main.cpp:8:3: warning: statement has no effect [-Wunused-value]
    8 |   69 x;
      |   ^~
Main.cpp:9:8: error: 'x' was not declared in this scope
    9 |   suck x;
      |        ^