criyle/codenet-compile-errors huggingface dataset:
Language: C

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a;
    cin >> a;
    int i = 1;
    int k = 0;
    while(i<a){
        if(i%3 != 0 && i%5 != 0){
            k += i;
            
        }else{
            
        }
        i++;
    }
   cout << k << endl; 
   
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n=0;
  int o=0;
  cin >> n;
  for(int i=1; i<=n; i++){
    if(i%3 != 0 && i%5 != 0){
      o = o + i;
    }
  }
  cout << o << endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;

int main()
{
  int N;
  cin >> N;
  
  ll sum = 0;
  rep(i, N)
  {
    if ((0 != i % 3) && (0 != i % 5))
    {
      sum += i;
    }
  }
  
  cout << sum << endl;

  return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#define ll long long
#define intm INT_MAX
#define llm LLONG_MAX

using namespace std;
int MOD = 998244353;

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0);
    int N;
    cin >> N;
    ll ans = 0;
    int c = 0;
    ll i=1;
    while(1){
        if( i%3 != 0 && i%5 != 0 ) { ans += i; ++c; }
        ++i;
        if( i == N ) break;
    }
    cout << ans;




}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C


// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define rrng(a) a.rbegin(),a.rend()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define eb emplace_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define show(x) cout<<#x<<" = "<<x<<endl;
#define print(x)cout<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef tuple<int,int,int> T;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
typedef vector<T> vt;

int main() {
  int n;
  cin>>n;
  ll a = 0;
  rep(i,n+1){
    if(i%3==0 || i%5 == 0)continue;
    a+=i;
  }
  print(a);
  return 0;
}


Compiler output:
main.c:3:10: fatal error: algorithm: No such file or directory
    3 | #include <algorithm>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

/*
*          Name : chaitanya
*
*     Institute : ANITS,Visakhapatnam
*
*/
#include<iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include<cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define inf  1000000000
#define all(x) begin(x),end(x)
#define ll long long int
#define ff first
#define ss second
#define pb push_back
const ll mod = 1000000007;
#pragma GCC optimization ("O3")
const int N = 1000010;
using namespace std;
int main()
{
 
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
     //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    ll n,s = 0;
    cin >> n;
    for (int i = 1; i <= n; ++i)
    {
        if(i%3 != 0)
        {
            if( i%5 != 0)
                s += i;
        }
    }
    cout << s;
    return 0;
} 

Compiler output:
main.c:7:9: fatal error: iostream: No such file or directory
    7 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<map>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
#define ll long long int
#define sec ->second
#define fir ->first
#define mapi map<int,int>
#define veci vector<int,int>
#define pb(a) .push_back(a)
#define pob(a) .pop_back(a)
#define fori(a) for(int i=0;i<a;i++)
#define forill(a) for(long long int i=0;i<a;i++)
#define listi list<int>
int main()
{
    int sum=0;
    for(int i=0;i<=n;i++){
        if(i%3!=0%%i%5!=0)sum+=i;
        }
    cout<<sum;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: 'n' was not declared in this scope
   20 |     for(int i=0;i<=n;i++){
      |                    ^
a.cc:21:19: error: expected primary-expression before '%' token
   21 |         if(i%3!=0%%i%5!=0)sum+=i;
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  int ans = 0;
  int i = 1;
  
  while ( i <= N) {
    if (!( i % 3 = 0 || i % 5 = 0)){
      ans += i;
      i++;
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: lvalue required as left operand of assignment
   11 |     if (!( i % 3 = 0 || i % 5 = 0)){
      |                    ~~^~~~~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long

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


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
using ll = long long;
using namespace std;


int main() {

    cin.tie(0);
    ios::sync_with_stdio(false);
 
    ll n, s, t, ans=0;
    cin >> n;
    int tmp[15] = {0,1,3,3,7,7,7,14,22,22,22,33,33,46,60};

    s = n / 15;
    t = n % 15;

    ans = 60*s*s + tmp[t];

    cout << "s:" << s << endl;
    cout << ans << endl;
    cout << 266666333332;

    
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<int> vi;
typedef vector<vi> vivi;
typedef vector<ll> vll;
typedef vector<vll> vllvll;
typedef pair<int, int> Pi;
typedef queue<Pi> QPi;
typedef pair<ll, ll> Pll;
typedef queue<Pll> QPll;
using Graph = vector<vector<int>>;
const int mod = 1000000007;
// 小数点　<< fixed << setprecision(0) <<
// sort降順　sort(ALL(),greater<int>());
// 文字判定　isupper islower
// 順列　do {} while(next_permutation(ALL(X)));
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
struct edge {
    int from; //出発点
    int to;   //到達点
    int cost; //移動コスト
};
typedef struct edge se;
typedef vector<edge> ve;

int main() {
  ll n,temp;
  ll ans=0;
  cin >> n;
  REP(i,n) {
    temp=i+1;
    if(temp%3==0) continue;
    if(temp%5==0) continue;
    ans+=temp;
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  long sum = N * (1 + N) / 2;
  int N3 = N / 3;
  int N5 = N / 5;
  int N15 = N / 15;
  
  long ans = sum - N3 * (1 + N3) / 2 * 3 - N5 * (1 + N5) / 2 * 5 + N15 * (1 + N15) / 2 * 15;
  cout << ans << endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  double sum = 0;
  for (int i =0; i < n; i++) {
    if ((n % 3) != 0 && (n % 5) != 0) {
      sum += i;
    }
    else {
      continue;
    }
  }
  cout << sum << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: expected '}' at end of input
   15 |   cout << sum << endl;
      |                       ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C

#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>

//using namespace __gnu_pbds;

using namespace std;

#define ll  long long

typedef vector<int> vi;
typedef pair<int,int> pi;
typedef unordered_map<int,int> um;
typedef unordered_set<int> us;
typedef priority_queue<int> pq;
typedef deque<int> dq;
typedef queue<int> q;
typedef stack<int> st;

#define f first
#define s second
#define pb push_back
#define mp make_pair

#define rep(i,a,b) for (int i = a; i <= b; i++)
//#define bitset<n> b<n>

/* typedef tree<int,null_type,less<int>,rb_tree_tag,
tree_order_statistics_node_update> indexed_set; */

void c_p_c()
{
	
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
}

int main(){

	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);


	ll n;
	cin>>n;

	ll sum=0;

	rep(i,1,n){
		if((i%5!=0 && i%3!=0)&&(i%3!=0)&&(i%5!=0))
			sum+=i;
	}

	cout<<sum;

	return 0;
	}

		

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
  
int main(){
    long long a,b,c;
    cin >>a;
    long long i=0;
    b=0;
    for(i;i<a;i++){
        if(i%3!=0||i%5!=0){
            b=b+i;
        }
        i++;
    }
    cout<<b<<endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

//def
#define debug(x) cout << #x << ": " << x << '\n'
#define out(x) cout << x << '\n'
#define repeat(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define revrepeat(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define revrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define foreach(e, v) for (auto &e : v)
#define all(x) (x).begin(), (x).end()
#define CYES cout << "Yes" << endl
#define CNO cout << "No" << endl
#define SPC(x) cout << fixed << setprecision(x)
#define ZERO(a) memset(a, 0, sizeof(a))
#define MINUS(a) memset(a, 0xff, sizeof(a))

typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<vector<int>> vii;
typedef vector<ll> vl;
typedef vector<vector<ll>> vll;
typedef pair<int, int> P;
constexpr int MOD = 1e9 + 7;
constexpr int INF = __INT_MAX__;               // 2^31 - 1
constexpr long long INFLL = __LONG_LONG_MAX__; // 2^61 - 1
constexpr int MAX_N = 1e5 + 5;
constexpr double PI = acos(-1);

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n;
    cin >> n;
    ll ans = 0;
    rep(i, n) {
        int idx = i + 1;
        if (idx % 3 == 0 or idx % 5 == 0)
            continue;
        else {
            ans += idx;
        }
    }

    out(ans);
    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define f(i,a,n) for(int i=a;i<n;i++)
#define ve vector
#define ss second 
#define ff first
#define pf pop_front
#define pob pop_back
#define psf push_front
#define res(x) cout<<x<<'\n'
#define read(t) ll t;cin>>t

int main(){
    ll n;
    cin>>n;
    ll ans=0;
    f(i,1,n+1){
      if(i%3!=0&&i%5!=0&&i%15!=0){
          ans+=i;
      }
    }
    cout<<ans<<endl;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<chrono>
using namespace std;
using ll = long long;


int main() {
  int N;
  cin >> N;
  vector<int> FB;
  
  ll sum = 0;
  for (int i = 1; i <= N; i++) {
    if (i % 15 == 0) {
      continue;
    }
    else if (i % 3 == 0) {
      continue;
    }
    else if (i % 5 == 0) {
      continue;
    }
    else {
      sum += i;
    }
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> N;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<chrono>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<int> FB;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<chrono>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:9:10: error: expected primary-expression before 'int'
    9 |   vector<int> FB;
      |          ^~~
a.cc:26:3: error: 'cout' was not declared in this scope
   26 |   cout << sum << endl;
      |   ^~~~
a.cc:26:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:18: error: 'endl' was not declared in this scope
   26 |   cout << sum << endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<chrono>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <iomanip>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<string> VS;
typedef vector< vector<int> > VVI;
typedef vector< vector<ll> > VVL;
typedef pair<int,int> PII;
typedef pair<ll,ll> PLL;
#define rep(i,n) for(int i=0;i<(n);i++)
#define all(a) (a).begin(),(a).end()
#define pf push_front
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define ub upper_bound
#define lb lower_bound
 
int main(){
  ll N;
  cin>>N;
  VL X(N);
  rep(i,N) if((i+1)%3 and (i+1)%5) X[i]=i+1;
  ll ans=0;
  rep(i,N) ans+=X[i];
  cout<<ans<<endl;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
#include<map>

using namespace std;

using ll = long long;

int main() {
	int N;
	cin>>N;
	ll sum = 0;
	for (int i = 1;i <= N;++i) {
		if (i%3 != 0 && i%5 != 0) {
			sum += i;
		}	
	}
	
	cout<<sum<<endl;
	return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
using namespace std;
typedef long long int ll;
int main()
{
  ll n;
  cin>>n;
  ll sum = 0;
  while(n--)
  {
    if(n%3==0 || n%5==0)
    {
    continue;}
    else
      sum = sum + n;
  }
  cout<<sum;
  return 0;
}




Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
  int n,i,sum;
  i=0;
  sum=0;
  scanf("%d",&n);
  for(i=1;i<=n;i++)
  {
    if((i%3==0)or(i%5==0))
    {
      continue;
    }
    sum+=i;
  }
  printf("%d",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:16: error: expected ')' before 'or'
   10 |     if((i%3==0)or(i%5==0))
      |       ~        ^~
      |                )
Language: C

#include <bits/stdc++.h>
#define INF 1000000000
#define LINF 1000000000000000000
#define MOD 1000000007
#define mod 1000007
#define INF63 1061109567
#define INF127 9187201950435737471
#define UINF 18446744073709551615
#define F first
#define S second
#define ll long long
using namespace std;
ll n,sum=0;
int main(){
	ll i;
	cin>>n;
	for(i=1;i<=n;i++)
	{
		if(i%3!=0&&i%5!=0)
		{
			sum+=i;
		}
	}
	cout<<sum<<endl;
	return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin>>N;
  int64_t count=0;
  for(int i=1;i<N+1;i++){
    if(i/3!=0&&i/5!=0)
      count+=i;
  }
  count<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid operands of types 'int64_t' {aka 'long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |   count<count<<endl;
      |         ~~~~~^~~~~~
Language: C

#include<stdio.h>
int main(){
long long int n,ans=0,i;
  scanf("%lld",&n);
  for(i=1;i<=n;i++){
    if(n%3!==0){
      if(n%5!==0){
        if(n%3!==0&&n%5!==0){
          ans=ans+i;
        }
      }
    }
  }
  printf("%lld",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before '=' token
    6 |     if(n%3!==0){
      |             ^
main.c:8:17: error: expected expression before '=' token
    8 |         if(n%3!==0&&n%5!==0){
      |                 ^
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
int main() {
	int n;
	cin >> n;
	long long a = 0;
	for (int i = 1; i <= n; i++) {
		if ((i % 3 != 0) && (i % 5 != 0)) {
			a += i;
		}
	}
	cout << a;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  double sum = 0;
  for (int i =0; i < n; i++) {
    if ((N % 3) != 0 && (N % 5) != 0) {
      sum += i;
    }
    else {
      continue;
    }
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'N' was not declared in this scope
    8 |     if ((N % 3) != 0 && (N % 5) != 0) {
      |          ^
Language: C

#include <bits/stdc++.h>
using namespace std; 

int main() {
  int N;
  cin >> N;
  
  int sum = 0;
  
  for (int i = 1; i < N; i++) {
    if (i % 3 == 0 || i % 5 == 0  || i % 15 == 0) {
      continue;
    }
    sum += i;
  }
  
  cout << sum << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;


/// File input & output /////
#define fRead(x)        freopen("x.txt","r",stdin)
#define fWrite(x)       freopen ("x.txt","w",stdout)

#define mt              make_tuple
#define ld              long double
#define ll              long long
#define ull             unsigned long long
#define ff              first
#define ss              second
#define pb              push_back
#define INF             2e16
#define PI              acos(-1.0)
#define mp              make_pair
#define pii             pair<int,int>
#define pll             pair<LL,LL>


#define min3(a,b,c)     min(a,min(b,c))
#define max3(a,b,c)     max(a,max(b,c))
#define min4(a,b,c,d)   min(a,min(b,min(c,d)))
#define max4(a,b,c,d)   max(a,max(b,max(c,d)))
#define SQR(a)          ((a)*(a))
#define FOR(i,a,b)      for(int i=a;i<=b;i++)
#define ROF(i,a,b)      for(int i=a;i>=b;i--)
#define REP(i,b)        for(int i=0;i<b;i++)
#define MEM(a,x)        memset(a,x,sizeof(a))
#define ABS(x)          ((x)<0?-(x):(x))

#define SORT(v)         sort(v.begin(),v.end())
#define REV(v)          reverse(v.begin(),v.end())


#define FASTIO        ios_base::sync_with_stdio(0);cin.tie(nullptr);




///..................Sort by second element in a pair in decending order............. ///
bool SortbySecDesc(const pair<long long,long long > &a, const pair<long long,long long > &b)
{
    return a.second>b.second;
}

///.........................first element of pair in descending order..........................//////
bool sortinrev(const pair<int,int> &a,
               const pair<int,int> &b)
{
       return (a.first > b.first);
}



///.............................................................TEMPLATE................................................./////

int main()
{
    FASTIO;

    ll num;

    cin >>num;

    ll ans = (num*(num+1))/2;



    ll sum = 0;

    for(ll i=3; i<=num; i+=3)
    {
        if(i%3==0)
            sum += i;
    }

    ll sum1 = 0;

    for(ll i=5; i<=num; i++)
    {
        if(i%5==0 && i%3==0)
            continue;
        else if(i%5==0)
            sum1 += i;
    }

    //cout << sum << " " << sum1 << endl;

    cout << ans - (sum + sum1) << endl;





    return 0;
}



Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  long long sum = 0;
  
  for(int i = 1; i <= N; i++){
    if(i % 5 == 0 || i % 3 == 0){
      continue;
    }
    else
      sum += i;
  }
  
  cout << sum << endl;
  
  return 0;
}

Compiler output:
main.c:2:10: fatal error: bits/stdc++.h: No such file or directory
    2 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  set<int> st = {15};
  ll sum = 0;
  while(true){
    if(n == 0)break;
    int num = *st.begin();
    st.erase(st.begin());
    sum+=num;
    n--;
    st.insert(num*3);
    st.insert(num*5);
  }
  cout<<sum<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll sum = 0;
      |   ^~
a.cc:11:5: error: 'sum' was not declared in this scope; did you mean 'num'?
   11 |     sum+=num;
      |     ^~~
      |     num
a.cc:16:9: error: 'sum' was not declared in this scope
   16 |   cout<<sum<<"\n";
      |         ^~~
Language: C++

#include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;

int main() {
  int n;
  cin >>n ;
  ll sum=0;

  for(int i=1;i=<n;i++){
    if(i%3!=0 && i%5 !=0){
      sum+= i;
    }
  }

  cout <<sum ;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected primary-expression before '<' token
   16 |   for(int i=1;i=<n;i++){
      |                 ^
Language: C

#include <bits/stdc++.h>
using namespace std;
  
int main(){
    long long a,b,c;
    cin >>a;
    long long i=0;
    b=0;
    while(i<a){
        if(i%3!=0||i%5!=0){
            b=b+i;
        }
        i++;
    }
    cout<<b<<endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(int)(n); i++)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main() {
  int n; cin >> n;
  ll ans = 0;
  for (int i=1; i<n+1; i++) {
    if (i%3 == 0) continue;
    if (i%5 == 0) continue;
    ans += i;
  }
  cout << ans << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>

using namespace std;
int K,N,C;
bool flag=false;
int main()
{
  cin>>N;
  int count=0;
  for(int i=1;i<N+1;i++){
    if(i%3==0||i%5==0){
    }else{
      count+=i;
    }
  }
  cout<<count;
  return 0;
}




Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int n,sum=0;
  cin >> n;
  for(int i=1;i<N+1;i++){
    if(i%3!=0 && i%5!=0){
      sum+=sum+i;
    }
  }
  cout << sum << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'N' was not declared in this scope
    7 |   for(int i=1;i<N+1;i++){
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int x;
  cin>>x;
  int sum=0;
  for(int i=1;i<=x;i++){
  if(i%3!==0&&i%5!==0){
  sum+=i;
  }
  }
  cout<<sum<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before '=' token
    9 |   if(i%3!==0&&i%5!==0){
      |           ^
a.cc:9:20: error: expected primary-expression before '=' token
    9 |   if(i%3!==0&&i%5!==0){
      |                    ^
Language: C

#include <iostream>
#include <math.h>
#include <fenv.h>
using namespace std;

int main(){
    long long int N,ans;
    float num;
    cin>>N;
    ans=0;
    for(int i=1;i<=N;i++){
        if(fmod((float)i,3.0)==0.0 || fmod((float)i,5.0)==0.0){

        }else{
            ans+=i;
        }
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

/*
*          Name : chaitanya
*
*     Institute : ANITS,Visakhapatnam
*
*/
#include<cstdio>
#include<iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include<cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define inf  1000000000
#define all(x) begin(x),end(x)
#define ll long long int
#define ff first
#define ss second
#define pb push_back
const ll mod = 1000000007;
#pragma GCC optimization ("O3")
const int N = 1000010;
using namespace std;
int main()
{
 
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
     //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    ll n,s = 0;
    cin >> n;
    for (int i = 1; i <= n; ++i)
    {
        if(i%3 != 0)
        {
            if( i%5 != 0)
                s += i;
        }
    }
    cout << s;
    return 0;
} 

Compiler output:
main.c:7:9: fatal error: cstdio: No such file or directory
    7 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;
#define ll long long

int n;
ll ans;

int main()
{
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
    {
        if(i%3!=0&&i%5!=0) ans+=i;
    }
    printf("%lld\n",ans);
    return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int inf = 1000000000; 

int main(){
    int n;
    cin >> n;
    ll ans = 0;
    rep(i,n){
        if(i%3 != 0 && i%5 != 0){
            ans += i;
            //cout  << i  << endl;
        }
    }
    cout << ans << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(){
int n, sum;
  scanf("%d",&n);
  
  for(int i = 0;i > n;i++{
       if( i % 3 == 0 || i % 5 == 0){
         sum = sum ;
       }
     
       else {
           sum = sum + i;
       }
  }
      printf("%d\n",sum);
 return 0;
}     

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ')' before '{' token
    6 |   for(int i = 0;i > n;i++{
      |      ~                   ^
      |                          )
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
Language: C

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vll;
#define inf 999999
#define EPS (1e-7)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(a) a.begin(), a.end()
#define PB push_back
const ll MOD = 1e9 + 7;
const int MAX = 10000000;

int main(){
    ll N;
    cin >> N;
    ll sum = N*(N+1)/2;
    if(N >= 3){
        sum -= N*(1+(ll)(N/3))/2;
    }
    if(N >= 5){
        sum -= N*(1+(ll)(N/5))/2;
    }
    if(N >= 15){
        sum += N*(1+(ll)(N/15))/2;
    }
    cout << sum << endl;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
#define ll long long 
#define P pair<int,int>
#define rep(i,n) for(ll i=0;i<n;i++)
using namespace std;

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

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
  
int main(){
    long a,b,c;
    cin >>a;
    long i=0;
    b=0;
    while(i<a){
        if(i%3!=0||i%5!=0){
            b=b+i;
        }
        i++;
    }
    cout<<b<<endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  int sum = 0;
  cin >> n;
  
  for(i = 0; i < n; i++)
  {
    if(i%3 == 0 || i%5 == 0)
    {
    }
    else
    {
      sum += i;
    }
  }
  
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i = 0; i < n; i++)
      |       ^
Language: C++

// ABC162 B

#include <iostream>
#include <string>

using namespace std;

int main(){
    long int n;
    cin >> n;
    long long int sum = 0;
    for(int i = 1; i <n ; i++){
        if((i%3) != 0 && (i%5) != 0) sum += i;
    }
    cout << sum << endl;
    re

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 're' was not declared in this scope
   16 |     re
      |     ^~
a.cc:16:7: error: expected '}' at end of input
   16 |     re
      |       ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
  int n;
  ll ans=0;
  cin >> n;
  rep(i,n+1){
    if(!(i%3==0||i%5==0)){
      ans+=i;
    }
  }
  cout <<ans<<endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){

  ll N=0;
  cin>>N;
  
  ll count=0;
  rep(i,N){

    j=i+1;
    if(j%3!=0 && j%5!=0)count+=j;

  }
  
  cout<<count<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'j' was not declared in this scope
   15 |     j=i+1;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, a, b, c;
  cin >> N;
  a = N/3, b = N/5, c = N/15;
  int long long a = (1+N)*N/2 - (1+a)*a/2*3 - (1+b)*b/2*5 + (1+c)*c/2*15;
  cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: conflicting declaration 'long long int a'
    8 |   int long long a = (1+N)*N/2 - (1+a)*a/2*3 - (1+b)*b/2*5 + (1+c)*c/2*15;
      |                 ^
a.cc:5:10: note: previous declaration as 'int a'
    5 |   int N, a, b, c;
      |          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;
  cin>>N;
  int sum=0;
  for(int i=0;i<N;i++){
    if(N%3=0||N%5=0){
      sum+=(i+1);
    }
  }
  cout<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |     if(N%3=0||N%5=0){
      |            ~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

int main(){
 long long int n;
  cin>>n;
 long long int sum=0;
  rep(i,n){
    if(i%3==0||i%5==0) continue;
    else sum=sum+i;
  }
  cout<<sum<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected '}' at end of input
   15 |   cout<<sum<<endl;
      |                   ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C

#include <bits/stdc++.h>
using namespace std;

int main()
{
  long n;
  cin >> n;
  long sum = 0;
  
  for (int i=1; i<=n; i++) {
	if (i%3!=0 && i%5!=0) sum += i;
  }
  cout << sum << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>

using namespace std;

typedef long long ll;

int main()
{
    ios_base::sync_with_stdio(0);
    int n;
    cin >> n;
    ll odp = 0;
    for (ll i = 1; i <= n; ++i)
        if (i % 3 != 0 && i % 5 != 0)
            odp += i;
    cout << odp;
    return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#include <stdio.h>
#include <math.h>
#include <cmath>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll =long long;
using ull =unsigned long long;
const ll INF =1001001001;

//10億7。　　　100000007

//最大公約数
ll gcd(ll a, ll b){
   if (a%b==0){
       return(b);
   }else{
       return(gcd(b,a%b));
   }
}
//最小公倍数
ll lcm(ll a, ll b){
   return a*b/gcd(a,b);
}


int main(){
cout<<fixed<<setprecision(10);
//cin.tie(0); ios::sync_with_stdio(false);

ll N;
  cin>>N;
  ll sum=0;
  for(int i=0;i<N;i++){
    if(i%3!=0&&i%5!=0){
      sum+=i;
    }
  }
  cout<<sum<<endl;

}



Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;
bool pertence_sequence(int i) { return ((i % 3 == 0) || (i % 5 == 0)); }
int main() {
	long long a, sum;
	while(cin >> a) {
		sum = 0;
		for(int i = 1; i <= a; i++) {
			if(!pertence_sequence(i)) {
				sum += i;
			}
		}
		cout << sum << endl;
	}
	return 0;	
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C


#include <stdio.h>
#include <stdlib.h>
#include <iterator>
#include <algorithm>
#include <map>
#include <string.h>
#include <vector>
#include <cmath>
#include <deque>
#include <iomanip>

using namespace std;
#define range(a) a.begin(), a.end()
#define rep(i, c) for(int i = 0; i < (int)c; i++)
typedef long long ll;

const string YES = "Yes";
const string NO = "No";


int main(){
  ios::sync_with_stdio(0);
  cin.tie(0);

  int n;
  ll ans = 0;
  cin >> n;
  for(int i = 1; i <= n; i++){
    if(i % 3 == 0 || i % 5 == 0){
      continue;
    }else{
      ans += i;
    }
  }
  cout << ans << endl;






  // char a[3] = {0};
  // cin >> a;
  // rep(i, 3){
  //   if(a[i] == '7'){
  //     cout << YES << endl;
  //     return 0;
  //   }
  // }
  // cout << NO << endl;

  return 0;
}


Compiler output:
main.c:4:10: fatal error: iterator: No such file or directory
    4 | #include <iterator>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>

#define fi first
#define se second
#define mp make_pair
#define sz(v) (int) v.size()
#define all(v) v.begin(), v.end()

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<int, int> pii;

mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());

signed main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin >> n;
	ll ans = 0;
	for (int i = 1; i <= n; ++i) {
		if (i % 3 && i % 5) ans += i;
	}
	cout << ans << "\n";
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
	int m;
    long long int sum = 0;
	scanf("%d", &m);
	bool flag = false;
    for(int n=1;n<=m;n++)
    {
	if(n%5 && n%3)
       sum += n;
    }
    printf("%d", sum);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'bool'
    7 |         bool flag = false;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main()
main.c:7:21: error: 'false' undeclared (first use in this function)
    7 |         bool flag = false;
      |                     ^~~~~
main.c:7:21: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
int n;
cin >> n;
vector<int> a(n);
ll ans = 0;
for(int i = 1;i < n;i++){
    if(i%3 == 0 || i%5 == 0){
        a.at(i) = 0;
    }else{
        a.at(i) = i;
    }
ans += a.at(i);
}
    cout << ans << endl;

return 0;

}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;

int main()
{
	int N;
	cin >> N;
	
	long long sum = 0;
	
	for( int i = 0; i<N; ++i ){
		
		if(i%3==0&&i%5==0){
			continue ;
		}
		else if(i%3==0){
			continue ;
		}
		else if(i%5==0){
			continue ;
		}
		else{
			sum += i;
		}
		
	}
	
	cout << sum <<endl ;
}	


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
  int n,i,sum;
  i=0;
  sum=0;
  scanf("%d",&n);
  for(i=1;i<=n;i++)
  {
    if(i%3==0 or i%5==0)
    {
      continue;
    }
    sum+=i;
  }
  print("%d",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected ')' before 'or'
   10 |     if(i%3==0 or i%5==0)
      |       ~      ^~~
      |              )
main.c:16:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   print("%d",sum);
      |   ^~~~~
      |   printf
Language: C

N = int(input())
sum = 0
for i in range (N):
    if i%5 ==0 or i%3 ==0:
        continue
    else:
        sum+=i
print (sum)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | N = int(input())
      |     ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;

int main() {

	int n;
    cin >> n;
  
  	long long sum = 0;
  	int i = 1;
  
  	while ( i <= n ){
      if ( i % 3 != 0 || i % 5 != 0 ){
        sum += i;
      }
      i++;
    }
 
	cout << sum << endl;
  
}



Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

//
//  main.cpp
//  ProgrammingContestChallengeBook2
//
//  Created by Hisaki Kobayashi on 2020/04/04.
//  Copyright © 2020 Hisaki Kobayashi. All rights reserved.
//

//#include <iostream>
#include <stdio.h>
#include <string>
#include <bits/stdc++.h>
#include <stdlib.h>
//#include "mylibrary.hpp"

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

using namespace std;
int main(){
//    int N; cin >> N;
//
//    int hyaku=(N/100)%10,zyu=(N/10)%10,iti=N%10;
//
////    cout << hyaku << " " << zyu << " " << iti << endl;
//    if(hyaku==7 || zyu == 7 || iti == 7)
//        cout << "Yes" << endl;
//    else{
//        cout << "No" << endl;
//    }


    
    
    long N; cin >> N;

    vector<int> A(7,0);
    
    int div=1;
    long sum=0;
    for(int i=1;i<=N;i++){
        if(i%3!=0 && i%5!=0){
            sum+=i;
        }
    }
    cout << sum << endl;
    
    
//    int a, b, c,K;
//      cin >> K;
//
//    a=100;
//    b=50;
//    c=7;
//
//     cout << "abcの最大公約数:" << gcd(gcd(a, b),c) << endl;
//
    
    
    return 0;
 
}


Compiler output:
main.c:11:10: fatal error: string: No such file or directory
   11 | #include <string>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  int64_t sum = 0
  for (int64_t i = 0; i < N; i++) {
    if (i%3 != 0&&i%5 != 0) {
      sum += i;
    }
    else {
      sum = sum;
    }
  }
  cout << sum << endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int64_t i = 0; i < N; i++) {
      |   ^~~
a.cc:8:23: error: 'i' was not declared in this scope
    8 |   for (int64_t i = 0; i < N; i++) {
      |                       ^
Language: C

#include <bits/stdc++.h>
using namespace std;

int main(){
int64_t n;
cin>>n;
int64_t sum=0;
for(int i=1;i<=n;++i){
if(i%3!=0&&i%5!=0)sum+=i;

}
cout<<sum<<endl;

}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

/* ***********************************************
Author        :taciturnity
Created Time  :2020/2/21 8:23:51
File Name     :TEST.cpp
************************************************ */

#include <iostream>
#include <vector>
#include <queue>
#include <cstdio>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <cmath>
#include <bitset>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <unordered_map>
#define ll long long
#define INF 0x3f3f3f3f
#define rep(i,x,y) for(int i = x;i <= y;++i)
#define fori(i,x,y) for(int i = x;i >= y; -- i)
#define bug puts("--------------")
#define out(x) cout<<x<<'\n';
inline char gc(){char op[2];scanf("%s",op);return op[0];}
const int N =5e5+10;
const double eps = 0.00000001;
const ll mod = 1e9 ;
using namespace std;
ll read()
{
    ll x=0,f=1;char ch=getchar();
    while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
    while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
    return x*f;
}
int main(){
    int n = read();
    ll sum = 0;
    rep(i,1,n){
        if(i%3==0||i%5==0) {}
        else sum += i;
    }
    cout << sum;
}

Compiler output:
main.c:7:10: fatal error: iostream: No such file or directory
    7 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
  
int main(){
    int a,b,c;
    cin >>a;
    int i=0;
    b=0;
    while(i<a){
        if(i%3!=0||i%5!=0){
            b=b+i;
        }
        i++;
    }
    cout<<b<<endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
using namespace std;
int main(void){
    // Your code here!
    int N;
    cin>>N;
    long long ans;
    ans=0;
    for(int i=1;i<=N;i++){
        if(i%3!=0&&i%5!=0){
            ans+=i;
        }
    }
    cout<<ans<<endl;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower

using namespace std;

int main(){
  int N;
  cin >> N;

  int64_t sum = 0;
  for(int i=0;<N;i++){
    if(i%3!=0 && i%5!=0){
      sum += i;
    }
  }

  cout << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:15: error: expected primary-expression before '<' token
   26 |   for(int i=0;<N;i++){
      |               ^
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
typedef long long  ll;
typedef long double lb;
using namespace std;
int main() {
	int n;
	cin >> n;
	ll a = 0;
	for (int i = 1; i <= n; i++) {
		if ((i % 3 != 0) && (i % 5 != 0)) {
			a += i;
		}
	}
	cout << a;
}



Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.