Language: C++

#include <iostream> #include <map>
using namespace std ;
int A; int a [100010];
int B;
int b[100010]; map <int , int> mpa,mpb;
int main( void ){ int i ;
cin >> A; for ( i =0;i<A; i++) scanf(”%d” , &a [ i ] ) ;
cin >> B;
for ( i =0;i<B; i++) scanf(”%d” , &b[ i ] ) ;
for ( i =0;i<A; i++) mpa[ a [ i ]]++;
for ( i =0;i<B; i++) mpb[b[ i ]]++;
for ( i =0;i<B; i++){ int x = b[ i ] ; i f (mpb[x] > mpa[x]){ cout << ”NO” << endl ; return 0; } }
2
cout << ”YES” << endl ;
return 0;
}


Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> #include <map>
      |                     ^
a.cc:7:38: error: extended character ” is not valid in an identifier
    7 | cin >> A; for ( i =0;i<A; i++) scanf(”%d” , &a [ i ] ) ;
      |                                      ^
a.cc:7:40: error: extended character ” is not valid in an identifier
    7 | cin >> A; for ( i =0;i<A; i++) scanf(”%d” , &a [ i ] ) ;
      |                                        ^
a.cc:9:28: error: extended character ” is not valid in an identifier
    9 | for ( i =0;i<B; i++) scanf(”%d” , &b[ i ] ) ;
      |                            ^
a.cc:9:30: error: extended character ” is not valid in an identifier
    9 | for ( i =0;i<B; i++) scanf(”%d” , &b[ i ] ) ;
      |                              ^
a.cc:12:71: error: extended character ” is not valid in an identifier
   12 | for ( i =0;i<B; i++){ int x = b[ i ] ; i f (mpb[x] > mpa[x]){ cout << ”NO” << endl ; return 0; } }
      |                                                                       ^
a.cc:12:71: error: extended character ” is not valid in an identifier
a.cc:14:9: error: extended character ” is not valid in an identifier
   14 | cout << ”YES” << endl ;
      |         ^
a.cc:14:9: error: extended character ” is not valid in an identifier
a.cc:5:16: error: 'map' does not name a type
    5 | int b[100010]; map <int , int> mpa,mpb;
      |                ^~~
a.cc: In function 'int main()':
a.cc:7:38: error: '\U0000201d' was not declared in this scope
    7 | cin >> A; for ( i =0;i<A; i++) scanf(”%d” , &a [ i ] ) ;
      |                                      ^
a.cc:7:40: error: 'd\U0000201d' was not declared in this scope
    7 | cin >> A; for ( i =0;i<A; i++) scanf(”%d” , &a [ i ] ) ;
      |                                        ^~
a.cc:9:28: error: '\U0000201d' was not declared in this scope
    9 | for ( i =0;i<B; i++) scanf(”%d” , &b[ i ] ) ;
      |                            ^
a.cc:9:30: error: 'd\U0000201d' was not declared in this scope
    9 | for ( i =0;i<B; i++) scanf(”%d” , &b[ i ] ) ;
      |                              ^~
a.cc:10:22: error: 'mpa' was not declared in this scope
   10 | for ( i =0;i<A; i++) mpa[ a [ i ]]++;
      |                      ^~~
a.cc:11:22: error: 'mpb' was not declared in this scope
   11 | for ( i =0;i<B; i++) mpb[b[ i ]]++;
      |                      ^~~
a.cc:12:41: error: expected ';' before 'f'
   12 | for ( i =0;i<B; i++){ int x = b[ i ] ; i f (mpb[x] > mpa[x]){ cout << ”NO” << endl ; return 0; } }
      |                                         ^~
      |                                         ;
a.cc:13:2: error: expected ';' before 'cout'
   13 | 2
      |  ^
      |  ;
   14 | cout << ”YES” << endl ;
      | ~~~~