제출 #1249050

#제출 시각아이디문제언어결과실행 시간메모리
1249050exoworldgdif-else 문 1 (BSC_0_8)C++20
컴파일 에러
0 ms0 KiB
#pragma GCC optimize("O5")
#pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt")
#include <bits/stdc++.h>
#define int long long
#define exoworldgd cin.tie(0)->sync_with_stdio(0),cout.tie(0)
using namespace std;
signed main(void) {
    exoworldgd;
    int n;
    cin >> n;
    cout << (!n ? "zero" : "nonzero")
}

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

if1.cpp: In function 'int main()':
if1.cpp:11:38: error: expected ';' before '}' token
   11 |     cout << (!n ? "zero" : "nonzero")
      |                                      ^
      |                                      ;
   12 | }
      | ~