Submission #851266

# Submission time Handle Problem Language Result Execution time Memory
851266 2023-09-19T09:05:34 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:3:5: error: cannot declare '::main' to be a global variable
    3 | int main {
      |     ^~~~
jail.cpp:4:2: error: '\U000000a0int' was not declared in this scope
    4 |   int q;
      |  ^~~~
jail.cpp:4:8: error: expected '}' before 'q'
    4 |   int q;
      |       ^
jail.cpp:3:10: note: to match this '{'
    3 | int main {
      |          ^
jail.cpp:5:2: error: '\U000000a0cin' does not name a type
    5 |   cin >> q;
      |  ^~~~
jail.cpp:6:18: error: expected ')' before ';' token
    6 |   for (int i = 0; i < q; i++) {
      |       ~         ^
      |                 )
jail.cpp:6:18: error: expected constructor, destructor, or type conversion before ';' token
jail.cpp:6:20: error: 'i' does not name a type
    6 |   for (int i = 0; i < q; i++) {
      |                   ^
jail.cpp:6:27: error: 'i' does not name a type
    6 |   for (int i = 0; i < q; i++) {
      |                          ^
jail.cpp:9:1: error: expected declaration before '}' token
    9 | }
      | ^