Language: C++

#include<iostream>
#inlclude<vector>
#define for(int i=1;i<=n;i++) for
using namespace std;

int main(){
  int n,sum=0;
  cin>>n;
  vector<int> a;
  vector<int> b;
  vector<int> c;
  for{
    cin>>a[i];
  }
  for{
    cin>>b[i];
  }
  for(int i=1;i<=n-1;i++){
    cin>>c[i];
  }
  for{
    sum+=b[a[i]];
    if(a[i]-a[i-1]==1){
      sum+=c[i-1];
    }
  }
  cout<<sum<<endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inlclude; did you mean #include?
    2 | #inlclude<vector>
      |  ^~~~~~~~
      |  include
a.cc:3:17: error: expected ',' or ')', found "i"
    3 | #define for(int i=1;i<=n;i++) for
      |                 ^
a.cc: In function 'int main()':
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<int> a;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | #inlclude<vector>
a.cc:9:10: error: expected primary-expression before 'int'
    9 |   vector<int> a;
      |          ^~~
a.cc:10:10: error: expected primary-expression before 'int'
   10 |   vector<int> b;
      |          ^~~
a.cc:11:10: error: expected primary-expression before 'int'
   11 |   vector<int> c;
      |          ^~~
a.cc:12:6: error: expected '(' before '{' token
   12 |   for{
      |      ^
      |      (
a.cc:12:6: error: expected primary-expression before '{' token
a.cc:15:3: error: expected primary-expression before 'for'
   15 |   for{
      |   ^~~
a.cc:14:4: error: expected ';' before 'for'
   14 |   }
      |    ^
      |    ;
   15 |   for{
      |   ~~~
a.cc:15:3: error: expected primary-expression before 'for'
   15 |   for{
      |   ^~~
a.cc:14:4: error: expected ')' before 'for'
   14 |   }
      |    ^
      |    )
   15 |   for{
      |   ~~~
a.cc:12:6: note: to match this '('
   12 |   for{
      |      ^
a.cc:15:6: error: expected '(' before '{' token
   15 |   for{
      |      ^
      |      (
a.cc:15:6: error: expected primary-expression before '{' token
a.cc:18:3: error: expected primary-expression before 'for'
   18 |   for(int i=1;i<=n-1;i++){
      |   ^~~
a.cc:17:4: error: expected ';' before 'for'
   17 |   }
      |    ^
      |    ;
   18 |   for(int i=1;i<=n-1;i++){
      |   ~~~
a.cc:18:3: error: expected primary-expression before 'for'
   18 |   for(int i=1;i<=n-1;i++){
      |   ^~~
a.cc:17:4: error: expected ')' before 'for'
   17 |   }
      |    ^
      |    )
   18 |   for(int i=1;i<=n-1;i++){
      |   ~~~
a.cc:15:6: note: to match this '('
   15 |   for{
      |      ^
a.cc:19:10: error: 'c' was not declared in this scope
   19 |     cin>>c[i];
      |          ^
a.cc:21:6: error: expected '(' before '{' token
   21 |   for{
      |      ^
      |      (
a.cc:21:6: error: expected primary-expression before '{' token
a.cc:28:1: error: expected primary-expression before '}' token
   28 | }
      | ^
a.cc:27:19: error: expected ')' before '}' token
   27 |   cout<<sum<<endl;
      |                   ^
      |                   )
   28 | }
      | ~                  
a.cc:21:6: note: to match this '('
   21 |   for{
      |      ^
a.cc:28:1: error: expected primary-expression before '}' token
   28 | }
      | ^