Submission #851270

#TimeUsernameProblemLanguageResultExecution timeMemory
851270EJIC_B_KEDAXJail (JOI22_jail)C++17
Compilation error
0 ms0 KiB
#include <iostream> using namespace std; int main() {  int q;  cin >> q;  for (int i = 0; i < q; i++) {    cout << "Yes\n";  } }

Compilation message (stderr)

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++) {
      |                   ^