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:8:1: error: expected primary-expression before '?' token
    8 | ?? int n,m,count=0;
      | ^
a.cc:8:2: error: expected primary-expression before '?' token
    8 | ?? int n,m,count=0;
      |  ^
a.cc:8:4: error: expected primary-expression before 'int'
    8 | ?? int n,m,count=0;
      |    ^~~
a.cc:8:3: error: expected ':' before 'int'
    8 | ?? int n,m,count=0;
      |   ^~~~
      |   :
a.cc:8:4: error: expected primary-expression before 'int'
    8 | ?? int n,m,count=0;
      |    ^~~
a.cc:8:3: error: expected ':' before 'int'
    8 | ?? int n,m,count=0;
      |   ^~~~
      |   :
a.cc:8:4: error: expected primary-expression before 'int'
    8 | ?? int n,m,count=0;
      |    ^~~
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ?? char u[257][11],t[257][11];
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ?? char u[257][11],t[257][11];
      |  ^
a.cc:9:4: error: expected primary-expression before 'char'
    9 | ?? char u[257][11],t[257][11];
      |    ^~~~
a.cc:9:3: error: expected ':' before 'char'
    9 | ?? char u[257][11],t[257][11];
      |   ^~~~~
      |   :
a.cc:9:4: error: expected primary-expression before 'char'
    9 | ?? char u[257][11],t[257][11];
      |    ^~~~
a.cc:9:3: error: expected ':' before 'char'
    9 | ?? char u[257][11],t[257][11];
      |   ^~~~~
      |   :
a.cc:9:4: error: expected primary-expression before 'char'
    9 | ?? char u[257][11],t[257][11];
      |    ^~~~
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ??
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ??
      |  ^
a.cc:11:1: error: expected primary-expression before '?' token
   11 | ?? cin>>n;
      | ^
a.cc:11:2: error: expected primary-expression before '?' token
   11 | ?? cin>>n;
      |  ^
a.cc:11:9: error: 'n' was not declared in this scope
   11 | ?? cin>>n;
      |         ^
a.cc:11:10: error: expected ':' before ';' token
   11 | ?? cin>>n;
      |          ^
      |          :
a.cc:11:10: error: expected primary-expression before ';' token
a.cc:11:10: error: expected ':' before ';' token
   11 | ?? cin>>n;
      |          ^
      |          :
a.cc:11:10: error: expected primary-expression before ';' token
a.cc:11:10: error: expected ':' before ';' token
   11 | ?? cin>>n;
      |          ^
      |          :
a.cc:11:10: error: expected primary-expression before ';' token
a.cc:11:10: error: expected ':' before ';' token
   11 | ?? cin>>n;
      |          ^
      |          :
a.cc:11:10: error: expected primary-expression before ';' token
a.cc:12:1: error: expected primary-expression before '?' token
   12 | ?? for(int i=0;i<n;i++)
      | ^
a.cc:12:2: error: expected primary-expression before '?' token
   12 | ?? for(int i=0;i<n;i++)
      |  ^
a.cc:12:4: error: expected primary-expression before 'for'
   12 | ?? for(int i=0;i<n;i++)
      |    ^~~
a.cc:12:3: error: expected ':' before 'for'
   12 | ?? for(int i=0;i<n;i++)
      |   ^~~~
      |   :
a.cc:12:4: error: expected primary-expression before 'for'
   12 | ?? for(int i=0;i<n;i++)
      |    ^~~
a.cc:12:3: error: expected ':' before 'for'
   12 | ?? for(int i=0;i<n;i++)
      |   ^~~~
      |   :
a.cc:12:4: error: expected primary-expression before 'for'
   12 | ?? for(int i=0;i<n;i++)
      |    ^~~
a.cc:12:16: error: 'i' was not declared in this scope
   12 | ?? for(int i=0;i<n;i++)
      |                ^
a.cc:16:1: error: expected primary-expression before '?' token
   16 | ?? cin>>m;
      | ^
a.cc:16:2: error: expected primary-expression before '?' token
   16 | ?? cin>>m;
      |  ^
a.cc:16:9: error: 'm' was not declared in this scope; did you mean 'tm'?
   16 | ?? cin>>m;
      |         ^
      |         tm
a.cc:16:10: error: expected ':' before ';' token
   16 | ?? cin>>m;
      |          ^
      |          :
a.cc:16:10: error: expected primary-expression before ';' token
a.cc:16:10: error: expected ':' before ';' token
   16 | ?? cin>>m;
      |          ^
      |          :
a.cc:16:10: error: expected primary-expression before ';' token
a.cc:17:1: error: expected primary-expression before '?' token
   17 | ?? for(int i=0;i<m;i++)
      | ^
a.cc:17:2: error: expected primary-expression before '?' token
   17 | ?? for(int i=0;i<m;i++)
      |  ^
a.cc:17:4: error: expected primary-expression before 'for'
   17 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:17:3: error: expected ':' before 'for'
   17 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:17:4: error: expected primary-expression before 'for'
   17 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:17:3: error: expected ':' before 'for'
   17 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:17:4: error: expected primary-expression before 'for'
   17 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:21:1: error: expected primary-expression before '?' token
   21 | ?? for(int i=0;i<m;i++)
      | ^
a.cc:21:2: error: expected primary-expression before '?' token
   21 | ?? for(int i=0;i<m;i++)
      |  ^
a.cc:21:4: error: expected primary-expression before 'for'
   21 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:21:3: error: expected ':' before 'for'
   21 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:21:4: error: expected primary-expression before 'for'
   21 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:21:3: error: expected ':' before 'for'
   21 | ?? for(int i=0;i<m;i++)
      |   ^~~~
      |   :
a.cc:21:4: error: expected primary-expression before 'for'
   21 | ?? for(int i=0;i<m;i++)
      |    ^~~
a.cc:22:20: error: 'j' was not declared in this scope
   22 | ?????? for(int j=0;j<n;j++)
      |                    ^
a.cc:31:1: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      | ^
a.cc:31:2: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |  ^
a.cc:31:3: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |   ^
a.cc:31:4: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |    ^
a.cc:31:5: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |     ^
a.cc:31:6: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |      ^
a.cc:31:7: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |       ^
a.cc:31:8: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |        ^
a.cc:31:9: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |         ^
a.cc:31:10: error: expected primary-expression before '?' token
   31 | ?????????? else if(j==n-1)
      |          ^
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:31:11: error: expected ':' before 'else'
   31 | ?????????? else if(j==n-1)
      |           ^~~~~
      |           :
a.cc:31:12: error: expected primary-expression before 'else'
   31 | ?????????? else if(j==n-1)
      |            ^~~~
a.cc:33:1: error: expected primary-expression before '?' token
   33 | ?? return 0;
      | ^
a.cc:33:2: error: expected primary-expression before '?' token
   33 | ?? return 0;
      |  ^
a.cc:33:4: error: expected primary-expression before 'return'
   33 | ?? return 0;
      |    ^~~~~~
a.cc:33:3: error: expected ':' before 'return'
   33 | ?? return 0;
      |   ^~~~~~~
      |   :
a.cc:33:4: error: expected primary-expression before 'return'
   33 | ?? return 0;
      |    ^~~~~~
a.cc:33:3: error: expected ':' before 'return'
   33 | ?? return 0;
      |   ^~~~~~~
      |   :
a.cc:33:4: error: expected primary-expression before 'return'
   33 | ?? return 0;
      |    ^~~~~~