Language: C++

v#include <bits/stdc++.h>
typedef long long ll;
#define ALL(l)  (l).begin(),(l).end()
#define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;

//const ll mod =  1000000007;
//const ll maxn = 1000000000;

//---------------------------------------------------------------------------------------------------
using vi = vector<int>; // intの1次元の型に vi という別名をつける
using vll = vector<ll>; // intの1次元の型に vi という別名をつける
using vvll = vector<vll>; // intの2次元の型に vvi という別名をつける
using vs = vector<string>; // stringの1次元の型に vs という別名をつける
using pll = pair<ll, ll>; // これ以降 pii という型名はpair<ll, ll> と同じ意味で使える
//---------------------------------------------------------------------------------------------------

int main() {
    vi b(1000,0);
    
   int n,ans=0;
   cin>>n;
   string s;
   cin>>s;
   vi a(n);
   rep(i,n){
       a.at(i)=s.at(i)-'0';
   }
   rep2(i,1,n-1){
       
       int k=a.at(i);
       vi r(10,0),l(10,0);
       
       rep(j,i){
           l.at(a.at(j))=1;
       }
       rep2(j,i+1,n){
            r.at(a.at(j))=1;
       }
       rep(i,10){
           rep(j,10){
               if(l.at(i)==1&&r.at(j)==1){
                   b.at(100*i+10*k+j)=1;
               }
           }
       }
       
   }
   rep(i,1000){
       ans+=b.at(i);
   }
   cout<<ans<<endl;
    
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc:12:12: error: 'vector' does not name a type
   12 | using vi = vector<int>; // intの1次元の型に vi という別名をつける
      |            ^~~~~~
a.cc:13:13: error: 'vector' does not name a type
   13 | using vll = vector<ll>; // intの1次元の型に vi という別名をつける
      |             ^~~~~~
a.cc:14:14: error: 'vector' does not name a type
   14 | using vvll = vector<vll>; // intの2次元の型に vvi という別名をつける
      |              ^~~~~~
a.cc:15:12: error: 'vector' does not name a type
   15 | using vs = vector<string>; // stringの1次元の型に vs という別名をつける
      |            ^~~~~~
a.cc:16:13: error: 'pair' does not name a type
   16 | using pll = pair<ll, ll>; // これ以降 pii という型名はpair<ll, ll> と同じ意味で使える
      |             ^~~~
a.cc: In function 'int main()':
a.cc:20:5: error: 'vi' was not declared in this scope; did you mean 'void'?
   20 |     vi b(1000,0);
      |     ^~
      |     void
a.cc:23:4: error: 'cin' was not declared in this scope
   23 |    cin>>n;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | v#include <bits/stdc++.h>
a.cc:24:4: error: 'string' was not declared in this scope
   24 |    string s;
      |    ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | v#include <bits/stdc++.h>
a.cc:25:9: error: 's' was not declared in this scope
   25 |    cin>>s;
      |         ^
a.cc:26:6: error: expected ';' before 'a'
   26 |    vi a(n);
      |      ^~
      |      ;
a.cc:27:8: error: 'i' was not declared in this scope
   27 |    rep(i,n){
      |        ^
a.cc:4:26: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                          ^
a.cc:4:22: error: 'll' was not declared in this scope
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                      ^~
a.cc:27:4: note: in expansion of macro 'rep'
   27 |    rep(i,n){
      |    ^~~
a.cc:28:8: error: 'a' was not declared in this scope
   28 |        a.at(i)=s.at(i)-'0';
      |        ^
a.cc:32:14: error: 'a' was not declared in this scope
   32 |        int k=a.at(i);
      |              ^
a.cc:33:10: error: expected ';' before 'r'
   33 |        vi r(10,0),l(10,0);
      |          ^~
      |          ;
a.cc:35:12: error: 'j' was not declared in this scope
   35 |        rep(j,i){
      |            ^
a.cc:4:26: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                          ^
a.cc:4:22: error: 'll' was not declared in this scope
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                      ^~
a.cc:35:8: note: in expansion of macro 'rep'
   35 |        rep(j,i){
      |        ^~~
a.cc:36:12: error: 'l' was not declared in this scope
   36 |            l.at(a.at(j))=1;
      |            ^
a.cc:39:13: error: 'r' was not declared in this scope
   39 |             r.at(a.at(j))=1;
      |             ^
a.cc:4:22: error: 'll' was not declared in this scope
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                      ^~
a.cc:41:8: note: in expansion of macro 'rep'
   41 |        rep(i,10){
      |        ^~~
a.cc:42:16: error: 'j' was not declared in this scope
   42 |            rep(j,10){
      |                ^
a.cc:4:26: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                          ^
a.cc:43:19: error: 'l' was not declared in this scope
   43 |                if(l.at(i)==1&&r.at(j)==1){
      |                   ^
a.cc:43:31: error: 'r' was not declared in this scope
   43 |                if(l.at(i)==1&&r.at(j)==1){
      |                               ^
a.cc:44:20: error: 'b' was not declared in this scope
   44 |                    b.at(100*i+10*k+j)=1;
      |                    ^
a.cc:50:8: error: 'i' was not declared in this scope
   50 |    rep(i,1000){
      |        ^
a.cc:4:26: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                          ^
a.cc:4:22: error: 'll' was not declared in this scope
    4 | #define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
      |                      ^~
a.cc:50:4: note: in expansion of macro 'rep'
   50 |    rep(i,1000){
      |    ^~~
a.cc:51:13: error: 'b' was not declared in this scope
   51 |        ans+=b.at(i);
      |             ^
a.cc:53:4: error: 'cout' was not declared in this scope
   53 |    cout<<ans<<endl;
      |    ^~~~
a.cc:53:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:53:15: error: 'endl' was not declared in this scope
   53 |    cout<<ans<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | v#include <bits/stdc++.h>