Language: C++

#include<iostream>
#include<algorithm>


#define fori(n) for(long long i=0;i<n;i++)
#define forr(i,x,y) for(long long i=x;i<y;i++)
#define forj(n) for(long long j=0;j<n;j++)
#define ll long long
#define d7 1000000007
#define en cout<<"\n";

using namespace std;

void dfs(ll s, vector<bool> &v, vector<ll> adj[]){
    if(v[s]) return;
    v[s]=true;
    //cout<<s+1<<" ";
    for(auto u: adj[s]){
        if(!v
           [u]){
            dfs(u,v,adj);}
    }
}
void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
    dis[s]=0;
    //parent[s]=-1;
    queue<ll> q;
    q.push(s);
    while(!q.empty()){
        ll z=q.front();
        //cout<<z<<" ";
        q.pop();
        for(auto v:adj[z]){
            if(dis[v]==0){
            q.push(v);
            dis[v]=dis[z]+1;
                parent[v]=z;
            }
        }
    }
}

ll modexp(ll x, ll n,ll m){
    if(n==0) return 1%m;
    ll u=modexp(x,n/2,m);
    u=(u*u)%m;
    if(n%2==1) u=(u*x)%m;
    return u;
}

ll gcd(ll a, ll b){
    if(b==0) return a;
    return gcd(b, a%b);
}

tuple<ll,ll,ll,ll> expA(tuple<ll,ll,ll,ll> v, ll n){
    if(n==0){return {1,0,1,0};}
    if(n==1){return v;}
        ll x1,y1,z1,w1;
        ll x2,y2,z2,w2;
        tie(x1,y1,z1,w1) = expA(v, n/2);
        x2=(x1*x1+y1*z1)%d7;
        y2=(x1*y1+y1*w1)%d7;
        z2=(z1*x1+w1*z1)%d7;
        w2=(z1*y1+w1*w1)%d7;
    if(n%2==0){
        return {x2,y2,z2,w2};
    }
    else{
        return {x2+z2,y2+w2,x2,y2};
    }
}

int main(){
    
    ll n;
    cin>>n;
    
    ll sum=0;
    fori(n){
        if((i+1)%5==0||(i+1)%3==0) continue;
        sum+=i+1;
    }
    cout<<sum;
    
    return 0;
}


Compiler output:
a.cc:14:16: error: 'vector' has not been declared
   14 | void dfs(ll s, vector<bool> &v, vector<ll> adj[]){
      |                ^~~~~~
a.cc:14:22: error: expected ',' or '...' before '<' token
   14 | void dfs(ll s, vector<bool> &v, vector<ll> adj[]){
      |                      ^
a.cc: In function 'void dfs(long long int, int)':
a.cc:15:8: error: 'v' was not declared in this scope
   15 |     if(v[s]) return;
      |        ^
a.cc:16:5: error: 'v' was not declared in this scope
   16 |     v[s]=true;
      |     ^
a.cc:18:17: error: 'adj' was not declared in this scope
   18 |     for(auto u: adj[s]){
      |                 ^~~
a.cc: At global scope:
a.cc:24:6: error: variable or field 'bfs' declared void
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |      ^~~
a.cc:24:10: error: 'vector' was not declared in this scope
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |          ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<algorithm>
  +++ |+#include <vector>
    3 | 
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:24:17: note: in expansion of macro 'll'
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |                 ^~
a.cc:24:27: error: 'vector' was not declared in this scope
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |                           ^~~~~~
a.cc:24:27: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:24:34: note: in expansion of macro 'll'
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |                                  ^~
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:24:45: note: in expansion of macro 'll'
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |                                             ^~
a.cc:24:51: error: 'vector' was not declared in this scope
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |                                                   ^~~~~~
a.cc:24:51: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:8:12: error: expected primary-expression before 'long'
    8 | #define ll long long
      |            ^~~~
a.cc:24:58: note: in expansion of macro 'll'
   24 | void bfs(vector<ll> &dis, vector<ll> adj[], ll s, vector<ll> &parent){
      |                                                          ^~