Submission #851267

# Submission time Handle Problem Language Result Execution time Memory
851267 2023-09-19T09:06:01 Z EJIC_B_KEDAX Jail (JOI22_jail) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
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++) {
      |                   ^