Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main(){
?? int n,m,count=0;
?? char u[257][11],t[257][11];
?? 
?? cin>>n;
?? for(int i=0;i<n;i++)
?????? scanf("%s",u[i]);

?? cin>>m;
?? for(int i=0;i<m;i++)
?????? scanf("%s",t[i]);


?? for(int i=0;i<m;i++)
?????? for(int j=0;j<n;j++)
?????????? if(strcmp(t[i],u[j])==0){
??count++;
??if(count%2==1)
???? cout<<"Opened by "<<t[i]<<endl;
??else
???? cout<<"Closed by "<<t[i]<<endl;
??break;
?????????? }
?????????? else if(j==n-1)
???? cout<<"Unknown "<<t[i]<<endl;
?? return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ?? int n,m,count=0;
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ?? int n,m,count=0;
      |  ^
a.cc:6:4: error: expected primary-expression before 'int'
    6 | ?? int n,m,count=0;
      |    ^~~
a.cc:6:3: error: expected ':' before 'int'
    6 | ?? int n,m,count=0;
      |   ^~~~
      |   :
a.cc:6:4: error: expected primary-expression before 'int'
    6 | ?? int n,m,count=0;
      |    ^~~
a.cc:6:3: error: expected ':' before 'int'
    6 | ?? int n,m,count=0;
      |   ^~~~
      |   :
a.cc:6:4: error: expected primary-expression before 'int'
    6 | ?? int n,m,count=0;
      |    ^~~
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ?? char u[257][11],t[257][11];
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ?? char u[257][11],t[257][11];
      |  ^
a.cc:7:4: error: expected primary-expression before 'char'
    7 | ?? char u[257][11],t[257][11];
      |    ^~~~
a.cc:7:3: error: expected ':' before 'char'
    7 | ?? char u[257][11],t[257][11];
      |   ^~~~~
      |   :
a.cc:7:4: error: expected primary-expression before 'char'
    7 | ?? char u[257][11],t[257][11];
      |    ^~~~
a.cc:7:3: error: expected ':' before 'char'
    7 | ?? char u[257][11],t[257][11];
      |   ^~~~~
      |   :
a.cc:7:4: error: expected primary-expression before 'char'
    7 | ?? char u[257][11],t[257][11];
      |    ^~~~
a.cc:8:1: error: expected primary-expression before '?' token
    8 | ??
      | ^
a.cc:8:2: error: expected primary-expression before '?' token
    8 | ??
      |  ^
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ?? cin>>n;
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ?? cin>>n;
      |  ^
a.cc:9:9: error: 'n' was not declared in this scope
    9 | ?? cin>>n;
      |         ^
a.cc:9:10: error: expected ':' before ';' token
    9 | ?? cin>>n;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | ?? cin>>n;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | ?? cin>>n;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | ?? cin>>n;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ?? for(int i=0;i<n;i++)
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ?? for(int i=0;i<n;i++)
      |  ^
a.cc:10:4: error: expected primary-expression before 'for'
   10 | ?? for(int i=0;i<n;i++)
      |    ^~~
a.cc:10:3: error: expected ':' before 'for'
   10 | ?? for(int i=0;i<n;i++)
      |   ^~~~
      |   :
a.cc:10:4: error: expected primary-expression before 'for'
   10 | ?? for(int i=0;i<n;i++)
      |    ^~~
a.cc:10:3: error: expected ':' before 'for'
   10 | ?? for(int i=0;i<n;i++)
      |   ^~~~
      |   :
a.cc:10:4: error: expected primary-expression before 'for'
   10 | ?? for(int i=0;i<n;i++)
      |    ^~~
a.cc:10:16: error: 'i' was not declared in this scope
   10 | ?? for(int i=0;i<n;i++)
      |                ^
a.cc:13:1: error: expected primary-expression before '?' token
   13 | ?? cin>>m;
      | ^
a.cc:13:2: error: expected primary-expression before '?' token
   13 | ?? cin>>m;
      |  ^
a.cc:13:9: error: 'm' was not declared in this scope; did you mean 'tm'?
   13 | ?? cin>>m;
      |         ^
      |         tm
a.cc:13:10: error: expected ':' before ';' token
   13 | ?? cin>>m;
      |          ^
      |          :
a.cc:13:10: error: expected primary-expression before ';' token
a.cc:13:10: error: expected ':' before ';' token
   13 | ?? cin>>m;
      |          ^
      |          :
a.cc:13:10: error: expected primary-expression before ';' token
a.cc:14:1: error: expected primary-expression before '?' token
   14 | ?? for(int i=0;i<m;i++)
      | ^
a.cc:14:2: error: expected primary-expression before '?' token
   14 | ?? for(int i=0;i<m;i++)
      |  ^
a.cc:14:4: error: expected primary-expression before 'for'
   14 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:14:3: error: expected ':' before 'for'
   14 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:14:4: error: expected primary-expression before 'for'
   14 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:14:3: error: expected ':' before 'for'
   14 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:14:4: error: expected primary-expression before 'for'
   14 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:18:1: error: expected primary-expression before '?' token
   18 | ?? for(int i=0;i<m;i++)
      | ^
a.cc:18:2: error: expected primary-expression before '?' token
   18 | ?? for(int i=0;i<m;i++)
      |  ^
a.cc:18:4: error: expected primary-expression before 'for'
   18 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:18:3: error: expected ':' before 'for'
   18 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:18:4: error: expected primary-expression before 'for'
   18 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:18:3: error: expected ':' before 'for'
   18 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:18:4: error: expected primary-expression before 'for'
   18 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:19:20: error: 'j' was not declared in this scope
   19 | ?????? for(int j=0;j<n;j++)
      |                    ^
a.cc:28:1: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      | ^
a.cc:28:2: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |  ^
a.cc:28:3: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |   ^
a.cc:28:4: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |    ^
a.cc:28:5: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |     ^
a.cc:28:6: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |      ^
a.cc:28:7: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |       ^
a.cc:28:8: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |        ^
a.cc:28:9: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |         ^
a.cc:28:10: error: expected primary-expression before '?' token
   28 | ?????????? else if(j==n-1)
      |          ^
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:28:11: error: expected ':' before 'else'
   28 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:28:12: error: expected primary-expression before 'else'
   28 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:30:1: error: expected primary-expression before '?' token
   30 | ?? return 0;
      | ^
a.cc:30:2: error: expected primary-expression before '?' token
   30 | ?? return 0;
      |  ^
a.cc:30:4: error: expected primary-expression before 'return'
   30 | ?? return 0;
      |    ^~~~~~
a.cc:30:3: error: expected ':' before 'return'
   30 | ?? return 0;
      |   ^~~~~~~
      |   :
a.cc:30:4: error: expected primary-expression before 'return'
   30 | ?? return 0;
      |    ^~~~~~
a.cc:30:3: error: expected ':' before 'return'
   30 | ?? return 0;
      |   ^~~~~~~
      |   :
a.cc:30:4: error: expected primary-expression before 'return'
   30 | ?? return 0;
      |    ^~~~~~