답안 #851268

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
851268 2023-09-19T09:07:10 Z EJIC_B_KEDAX Jail (JOI22_jail) C++14
컴파일 오류
0 ms 0 KB
#include <iostream>
using namespace std;
int main() {
  int q;
  cin >> q;
  for (int i = 0; i < q; i++) {
    cout << "Yes\n";
  }
}

Compilation message

jail.cpp:4:2: error: extended character   is not valid in an identifier
    4 |   int q;
      |  ^
jail.cpp:5:2: error: extended character   is not valid in an identifier
    5 |   cin >> q;
      |  ^
jail.cpp:6:2: error: extended character   is not valid in an identifier
    6 |   for (int i = 0; i < q; i++) {
      |  ^
jail.cpp:7:2: error: extended character   is not valid in an identifier
    7 |     cout << "Yes\n";
      |  ^
jail.cpp:7:5: error: extended character   is not valid in an identifier
    7 |     cout << "Yes\n";
      |    ^
jail.cpp:8:2: error: extended character   is not valid in an identifier
    8 |   }
      |  ^
jail.cpp: In function 'int main()':
jail.cpp:4:2: error: '\U000000a0int' was not declared in this scope
    4 |   int q;
      |  ^~~~
jail.cpp:5:2: error: '\U000000a0cin' was not declared in this scope
    5 |   cin >> q;
      |  ^~~~
jail.cpp:5:11: error: 'q' was not declared in this scope
    5 |   cin >> q;
      |          ^
jail.cpp:6:9: error: expected primary-expression before 'int'
    6 |   for (int i = 0; i < q; i++) {
      |        ^~~
jail.cpp:6:20: error: 'i' was not declared in this scope
    6 |   for (int i = 0; i < q; i++) {
      |                   ^