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

#include <bits/stdc++.h>

using namespace std;

#define FAST_IO ios_base::sync_with_stdio(0); cin.tie(nullptr)
#define FOR(i, a, b) for(int i = (a); i <= (b); i++)
#define REP(n) FOR(O, 1, (n))
#define pb push_back
#define f first
#define s second
typedef long double ld;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<int, pii> piii;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef vector<ll> vl;
typedef vector<piii> viii;

const int MAXN = 500100, MAXK = 30;
const ll MOD = 998244353;
const int INF = 1e8;
const ld PI = asin(1) * 2;

void setIO () {
    FAST_IO;
}

void setIO (string s) {
    setIO();
 	freopen((s+".in").c_str(),"r",stdin);
	freopen((s+".out").c_str(),"w",stdout);
}



int main() {
	setIO();

    int n;
    cin >> n;
    ll sum = 0;
    FOR(i, 1, n) {
        if (i%3 && i%5) sum += i;
    }
    cout << sum;

	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(){
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

//#pragma GCC optimize ("O3")
//#pragma GCC target ("sse4")

#include <iostream>

using namespace std;

#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
    *this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "


// CHECK THE LIMITS
typedef long long ll;

const int MOD = 1000000007;
const ll INFLL = 1e18;
const int INF = 1e9;
const int NMAX = 1000001;

int gcd(int a, int b) {
  return b ? gcd(b, a%b) : a;
} 

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
	int n;
	cin >> n;
	
	int  k =0;
	ll s= 0;
	int i = 1;
	while(k < n)
	{
		if(i % 3 != 0 && i % 5 != 0)
			s+=i;
		i++;
		k++;
	}
	cout << s;


    return 0;
}

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

#include <iostream>
#include <string>
#include <stdio.h>
#include <math.h>
#include <queue>
using namespace std;


int main(int argc, char* argv[])
{
	long long A = 0;
	int N;

	scanf("%d", &N);

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

	printf("%lld", A);

	return 0;
}





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

#include <iostream>

using namespace std;

long long n, i, s;

int main()
{
    cin >> n;
    for(i = 1; i <= n; i++)
        if(i % 3 != 0 && i % 5 != 0)
            s += i;
    cout << s;
    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;
  cin >> N;
  int64_t count=0;
  for(int i=1;i<N+1;i++){
    if(i%3!=0&&i%5!=0){
      count += i;
    }
  }
  cout << count;
}

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 int N, sum=0;
	cin >> N;
	for(int i=1; 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:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <vector>
#include <algorithm>
#define ll long long
using namespace std;
int main(){
    int n;
    cin>>n;
    int sum=0;
    for(int i=1;i<=n;i++){
        if(0==i%3||0==i%5){
            continue;
        }else{
            sum+=i;
        }
    }
    cout<<sum;
    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 ll long long
#define rep(i,a,b) for(long long i=a; i<b; i+=1)
#define repr(i,a,b) for(long long i=a; i<=b; i+=1)
#define vec vector<ll>
#define map map<string,int>
#define repa(p,A) for(auto p:A)
#define pb push_back
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())

using namespace std;
int main() {
  ll N、S;
  cin>>N;
  S=(N*(N+1))/2;
  rep(i,3,N+1) {
    if(i%3==0 || i%5==0)
      S-=i;
  }
  cout<<S<<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;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
const int INF = 1000000001;

int main(){
  int n;
  cin >> n;
  ll ans = 0;
  rep(i, n + 1){
    if(n % 3 != 0 && n % 5 != 0){
      ans = 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>
using namespace std;
typedef long long int ll;
typedef pair<int,int> pi;
typedef pair<ll,ll> pl;
typedef vector<int> vi;
typedef vector<ll> vl;
#define fori(s,n) for(ll i=s;i<=n;i++)
#define ford(s,n) for(int i=n;i>=s;i--)
#define mp(a,b) make_pair(a,b)
#define pb push_back
#define TEST(t) for(int T=1;T<=t;T++)
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n,i;
    ll f=0;
    cin>>n;
    for(i=1;i<=n;i++){
       if((i%3==0)||(i%5==0))
         continue;
       else f+=i;
    }
 	 cout<<f;
    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(){
	int n,sum=0;
	cin>>n;
	
	int a[n];
	for(int i=0;i<n;i++)  a[i]=i;
	
	for(int i=0;i<n;i++){
		if(a[i]%5==0 || a[i]%3==0)  continue;
		
		else
			sum+=a[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<cmath>
#include<algorithm>
#include<string>
#include<vector>
#include<stack>
#include<queue>
#include<set>
#include<map>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef pair<int,P> P1;
typedef pair<P,P> P2;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 1000000000
#define fi first
#define sc second
#define rep(i,x) for(int i=0;i<x;i++)
#define repn(i,x) for(int i=1;i<=x;i++)
#define SORT(x) sort(x.begin(),x.end())
#define ERASE(x) x.erase(unique(x.begin(),x.end()),x.end())
#define POSL(x,v) (lower_bound(x.begin(),x.end(),v)-x.begin())
#define POSU(x,v) (upper_bound(x.begin(),x.end(),v)-x.begin())

const int MAX = 510000;
const int MOD = 1000000007;

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

  ll c = N/15;
  ll ans = 0;

  rep(i,c){
    ans += 60+i*120;
  }

  ll d = N%15;

  vector<ll> v={1,2,4,7,8,11,13,14};

  rep(i,d){
    rep(j,8){
      if(i == v[j]){
        ans += v[j]+c*15;
      }
    }
  }
  cout<<ans<<endl;
}


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

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int n;
long long sum;
int main()
{
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{
		if(i%3==0||i%5==0)
		{
			continue;
		}
		sum+=i;
	}
	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<bits/stdc++.h>
using namespace std;


int main(){
    int range;
    cin >> range;
    long long int ans;
    for(int i; i < range+1; i++){
        if(i%3!=0||i&5!=0){
            ans += i;
        }
    }
    cout << i << 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>

using namespace std;

int main()
{
    int n;
    cin>>n;
    long long int sum=0;
    for(int i=1;i<=n;i++)
    {
        if(i%3!=0 && i%5!=0 && i%15!=0)
        {
            sum=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>
using namespace std;
main() {
  cin >> x;
  if (x%3==0 && x$5==0) {
    cout << "FizzBuzz" << endl;
  } else if (x%3==0) {
    cout << "Fizz" << endl;
  } else {
        cout << "Buzz" << endl;
  }
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'x' was not declared in this scope
    4 |   cin >> x;
      |          ^
a.cc:5:17: error: 'x$5' was not declared in this scope
    5 |   if (x%3==0 && x$5==0) {
      |                 ^~~
Language: C

#include <bits/stdc++.h>
#define int long long
#define all(c) (c).begin(),(c).end()
#define pii pair<long long,long long>
#define endl '\n'

using namespace std;

signed main(){
    std::ios::sync_with_stdio(false);
    int n;
    cin >> n;
    int ans=0;
    for(int i=1;i<=n;i++){
        if(i%3==0 || i%5==0){
            ans=ans;
        }
        else{
            ans+=i;
        }
    }
    cout << ans;
}

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 ans=0;
  for(int i=0;i<n;i++) {
    if(i%3==0) {
      continue;
    } else if(i%5==0) {
      continue;
    } else {
      ans+=i;
    }
  }
  cout << ans << endl;
}

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

#include <iostream>

using namespace std;


int main(){
    long long sum=0;
    
    long long N;
    cin>>N;
    
    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: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std ;
#define ll long long int
int main(){
#ifndef ONLINE_JUDGE
    freopen("in.txt" ,  "r" ,  stdin) ;
#endif#include<bits/stdc++.h>
using namespace std ;
#define ll long long int
int main(){
   int n,i;
   cin >> n;
   ll sum=0;
   for (int i = 1; i <= (n); ++i)
   {
   	if(i%3==0 && i%5==0)
   		sum = sum + i;
   }
   cout << sum;

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

}

Compiler output:
a.cc:7:7: warning: extra tokens at end of #endif directive [-Wendif-labels]
    7 | #endif#include<bits/stdc++.h>
      |       ^
a.cc: In function 'int main()':
a.cc:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int main(){
      |         ^~
a.cc:10:9: note: remove parentheses to default-initialize a variable
   10 | int main(){
      |         ^~
      |         --
a.cc:10:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:10:11: error: a function-definition is not allowed here before '{' token
   10 | int main(){
      |           ^
Language: C

/**
 * Title:
 * Url:
 */
#include<iostream>

using namespace std;

#define ll long long

int main() {

    int 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;

    return 0;
}

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

#include<bits/stdc++.h>
#define pb push_back
#define mod int(1e9+7)
#define N int(2e5+100)
#define ll long long int
#define pii pair<int,int>
#define pll pair<ll,ll>
#define fi first
#define si second
using namespace std;
int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
   int n;
   cin>>n;
   ll sum=0*1ll;
   for(int i=1;i<=n;i++){
      if(i%3&&i%5){
         sum+=1ll*i;
      }
   }
   cout<<sum<<'\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 <iostream>
using namespace std;
int main() {
    int N; cin>>N;
    long long int cnt=0;
    for (int i=1; i<=N; i++) {
        if (i%15==0||i%5==0||i%3==0) {
            ;
        } else {
            cnt += i;
        }
    }
    cout << cnt << 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>
using namespace std;
#define rep(i,n) for(int i = 0;i<n;i++)
using ll = long long;
using P = pair<ll,ll>;

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;
}

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 rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N;
  cin >> N;
  int sum=0;
  for(int i=0;i<N;i++){
    if(a%3!=0&&a%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<stdio.h>
int main(){
long long int n,ans=0;
  scanf("%d",&);
  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("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected expression before ')' token
    4 |   scanf("%d",&);
      |               ^
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=1;i<=n;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
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) ans=ans+i;
      |                 ^
Language: C

//============================================================================
// Name        : template.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <algorithm>
#include <set>
#include <map>
#include <set>
#include <vector>
#include <string.h> // for memset in CF judge.
using namespace std;
#define _CRT_SECURE_NO_DEPRECATE // suppress some compilation warning messages (for VC++ users)
// Shortcuts for "common" data types in contests
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
// To simplify repetitions/loops, Note: define your loop style and stick with it!
#define x first
#define y second
#define pb push_back
#define mp make_pair
#define REP(i, a, b) \
for (int i = int(a); i <= int(b); i++) // a to b, and variable i is local!
#define forn(i,n) \
for (int i =0; i<(n); i++)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000 // 2 billion
// If you need to recall how to use memset:
#define MEMSET_INF 127 // about 2B
#define MEMSET_HALF_INF 63 // about 1B
//memset(dist, MEMSET_INF, sizeof dist); // useful to initialize shortest path distances
//memset(dp_memo, -1, sizeof dp_memo); // useful to initialize DP memoization table
//memset(arr, 0, sizeof arr); // useful to clear array of integers

int main() {
    int N;
    cin >> N;
    int sum = 0;
    forn(i, N) {
        if(i % 3 == 0 || i % 5 == 0) continue;
        sum += i;
    }
    cout << sum;
return 0;
}


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

#include <iostream>;
using namespace std;

int mani(){
  string a;
  cin >> a;
  
  for (int i=0;i<1000;++i){
    if (a.at(i) == 7) {
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
  }
  }
}


Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
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, x;
  cin >> N;
  for(i = 0; i < N; i++){
    if(i % 3 != 0 && i % 5 != 0){
      x += x;
    }
    else{
      x = x;
    }
  }
   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>
using namespace std;

int main(){
    int N;
    cin>>N;
    int n3=N/3, n5=N/5, n15=N/15;
    int total=(1+N)*N/2;
    total-=(2*3+(n3-1)*3)*n3/2;
    total-=(2*5+(n5-1)*5)*n5/2;
    total+=(2*15+(n15-1)*15)*n15/2;
    cout<<total<<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>
#define ll long long
using namespace std;
int main() {
  int n;
  cin >> n;
  ll sum = 0;
  ll c1, c2;
  for (int i = 1; i <= n; i++) {
    if (i % 3 != 0) {
      if (i % 5 != 0) {
        sum = sum + i;
      }
    }
  }
  cout << sum;
}

// g++ lo.cpp
// ./a.exe
// g++ -o つくりたいふぁいるめい　もとのふぁいる.cpp

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;
typedef long long ll;

int main()
{
    long double sum = 0;
   int n;
   cin >> n;
   if(n %2 == 0)
   {
       sum = (n/2);
       sum *= (n+1);
   }
   else
   {
       sum = ((n+1)/2);
       sum *= n;
   }
   for(int i = 1; i <= n; i++)
   {
       if(i % 3 == 0 && i % 5 == 0)
       {
           sum -= i;
       }
       else if(i % 3 == 0)
       {
           sum -= i;
       }
       else if(i % 5 == 0)
       {
           sum -= i;
       }
   }
   cout << sum << endl;
    return 0;
}


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

#include <iostream>

using namespace std;

int main(void){
    long long n,i,sum=0;
    cin >> n;
    for(i=1;i<=n;i++)
        if(!(i%3==0||i%5==0))
            sum+=i;
    cout << sum;
    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 int long long // at least int64 > 9*10^18
#define ENDL '\n'
#define rep(i,n) for(int i = 0; i < (n); i++)
#define print(i) std::cout << (i) << '\n'
#define all(v) (v).begin(), (v).end()
using namespace std;
signed main (){
  int a;
  cin>>a;
  int b;
  b=a%15;
  int c;
  c=a/15;
  
  int d;
  if(c>0){
  d=(60+120*(c-1))*c/2;
  }
  if(b>=1){
    d+=1+c*15;
  }
  if(b>=2){
    d+=2+c*15;
  }
  if(b>=4){
    d+=4+c*15;
  }
  if(b>=7){
    d+=7+c*15;
  }
  if(b>=8){
    d+=8+c*15;
  }
  if(b>=11){
    d+=11+c*15;
  }
  if(b>=13){
    d+=13+c*15;
  }
  if(b>=14){
    d+=14+c*15;
  }
  cout<<d<<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>
#include <stdlib.h>
#include <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <vector>
#include <functional>
#include <queue>

using namespace std;
typedef long long ll;

int main()
{
	int 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;
	
	return 0;
}


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

#include<iostream>
#include <algorithm>
#include<string>
#include<math.h>
#include <bits/stdc++.h>
using namespace std;
int main() {
    long long int n,ans=0;
    cin>>n;
    for (int i = 1; i < n; i++) {
        ans+=i;
    if (i % 3 == 0 && i % 5 == 0)
      ans = ans-i;
    else if (i % 3 == 0)
      ans = ans-i;
    else if (i % 5 == 0)
      ans = ans -i;
    }
    cout<<ans<<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 <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <tuple>
#include <map>
#include <math.h>
#include <algorithm> // std::sort, std::min
#include <iomanip> // std::setprecision
#include <cmath> // std::ceil

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



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

/*
susheel_7
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define INF 0x3f3f3f3f 
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
#define ll long long int


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

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

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=1;i<n+1;i++)
#define ll long long int

int main(){
  int N;
  cin>>N;
  ll count=0;
  rep(i,N){
    if(i%3==0||i%5==0){}
      
    else
      count+=i;

  }
  cout<<count;
  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 () {
	ios::sync_with_stdio(0);
	cin.tie(0);
 	int n;
	cin >> n;
	long long sum = 0;
	
	for(int i=1; i<n; ++i){
		if(i % 5 != 0 && i % 3 != 0 ) sum += i;	
	}
	cout << sum << "\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 <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;

int main() {
  ll N;
  cin >> N;
  ll sum_n = 0;
  rep(i, N){
    if(((i+1)%3!=0)&&((i+1)%5!=0)) sum_n += i+1;
  }
  cout << sum_n << 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>
#include <String>
using namespace std;

int main(int argc, const char * argv[]) {

    int N = 0;
    long long int result = 0;
    
    cin >> N;
    
    for (int i = 1; i <= N; i++) {
        if (i % 3 == 0) {
            continue;
        }else if(i % 5 == 0){
            continue;
        }else{
            result = result + i;
        }
    }
    cout << result;
    
    return 0;
}



Compiler output:
a.cc:3:10: fatal error: String: No such file or directory
    3 | #include <String>
      |          ^~~~~~~~
compilation terminated.
Language: C++

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

int main(){ 
  Int N;
  cin >> N;
  
  Int q, r, s, t, ans;
  q = N / 15;
  r = N % 15;
  s = 0;
  t = 0;
  
  for(int i = 0; i<=r, i++) {
    if (i%3!=0 && i%5!=0) {
      s += i;
      t ++;
    }
  }
  
  ans = 60 * q * q + 15 * q * t + s;
  
  cout << ans << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: expected ';' before ')' token
   17 |   for(int i = 0; i<=r, i++) {
      |                           ^
      |                           ;
Language: C++

#include<bits/stdc++.h>
usingnamespace std;
int main(){
  long long n=0,m;
  cin>>m;
  for(long long i=1;i<=m;i++){
    if(i%5!=0 && i%3!=0) n+=i;
  }
  cout<<n<<"\n";
  return(0);
}

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>m;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<n<<"\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

using lli = long long int;

template <class T>ostream &operator<<(ostream &o,const vector<T>&v)
{o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}

template <class T>ostream &operator<<(ostream &o,const pair<T, T>&p)
{o<<"("<<p.first<<", "<<p.second<<")";return o;}

#define rep(i, n) for(lli i = 0; i < (lli)(n); i++)

const lli MOD = 1000000007LL;

lli modpow(lli a, lli n){
    lli res = 1;

    for(lli ai = a; n; n>>=1){
        if(1&n) res = (res*ai)%MOD;
        ai=(ai*ai)%MOD;
    }
    return res;
}

lli inv(lli n){
    return modpow(n, MOD-2);
}

lli modperm(lli n, lli k){
    lli res = 1;
    rep(i, k){
        res = (res*(n-i))%MOD;
    }
    return res;
}

lli modcomb(lli n, lli k){
    return (modperm(n, k)*inv(modperm(k, k)))%MOD;
}

lli posmod(lli n){
    lli res = n;
    res %= MOD;
    if(res < 0) res += MOD;
    return res;
}
lli n;
vector<lli> a;

int main(void){
    cin >> n;
    for(lli i = 1; i <= n; i++){
        if(i%3 == 0 || i%5 == 0) a.push_back(0);
        else a.push_back(i);
    }
    lli sum = 0;
    rep(i, n){
        sum += a.at(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 <iostream>;
using namespace std;

int main() {
   int a[1000000];
   cin >> a[

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
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 REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define ll long long
#define INF 999999999
using namespace std;

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


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;
 
int main() {

    int n;
    cin>>n;

    long long sum=0;

    rep(i,n+1){
        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;
int main(int argc, char const *argv[]) {
  double n;
  int sum=0;
  cin>>n;
  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: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;

  cin >> N;
  for(int i=1; i<N+1; i++ ){
    if(i%3==0){
      continue;
    }

    if(i%5==0){
      continue;
    }


    sum=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 <bits/stdc++.h>
 
//BIAR MANTAB LAH YA
#define Willy using
#define Indrayana namespace
#define Komara std
 
Willy Indrayana Komara;

using ll = long long int;

ll a[1000001];

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int index = 2;
    a[1] = 1;
    //generate fizzbuzz
    for (int i = 2; i <= 1000000; i++)
    {
        if (!(i % 3 == 0 || i % 5 == 0))
        {
            a[index] += a[index-1] + i;
        }
        else
        {
            a[index] = a[index-1];
        }
        index++;
    }

    int n;
    cin >> n;
    cout << a[n] << '\n';
    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;
typedef long long ll;

int main(){
    ll sum = 0;
    int n;
    cin >> n;
    for(int i = 1; i <= n; i++){
        if(i%3 != 0 && i%5 != 0){
            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: Java

import java.io.*;
import java.util.*;

public class Solution {

	public static void main(String[] args) throws IOException {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		long ans = 0;
		for (int i = 1; i <= n; i++) {
			if (i % 3 != 0 && i % 5 != 0)
				ans += i;
		}
		System.out.println(ans);
	}

	static class Scanner {

		StringTokenizer st;
		BufferedReader br;

		public Scanner(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	}
}


Compiler output:
Main.java:4: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: C

#include<iostream>
using namespace std;
int main()
{
    int n,i;
    long long unsigned ans=0;
    cin>>n;
    for(i=1;i<=n;i++){
    if(i%3&&i%5)
        {
            ans+=i;
        }

    }
        cout<<ans<<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>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <string>
#include <cmath>
using namespace std;
typedef long long ll;
const ll MOD = 1000000007;
int A[4005]={0};

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

for(int i=1;i<=n;i++){
  if(i%3!=0&&i%5!=0)ans+=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 <bits/stdc++.h>
#include <iomanip>
#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;
  cin >> n;
  ll sum = 0
  rep(i, n) {
    if ((i % 3 != 0) && (i % 5 != 0)) {
      sum += i;
    }
  }
  cout << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for (int i = 0; i < (n); ++i)
      |                  ^~~
a.cc:12:3: note: in expansion of macro 'rep'
   12 |   rep(i, n) {
      |   ^~~
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   rep(i, n) {
      |       ^
a.cc:3:34: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i = 0; i < (n); ++i)
      |                                  ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:19: error: expected ';' before ')' token
    5 |   for(i=1,i<=n,i++){
      |                   ^
      |                   ;
main.c:5:19: error: expected expression before ')' token
main.c:10:3: error: expected declaration or statement at end of input
   10 |   return 0;
      |   ^~~~~~
Language: C

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

int main() {
  int n;
  cin >> n;
  long long ans = 0;
  for(int i = 1; i <= n; i++){
    if(i % 3 != 0 && i % 5 != 0) ans += i;
  }
  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 <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
#define int long long int

signed main(){
    int a;
    int r = 0;
    cin >> a;
    for(int i=0;i<=a;i++){
        if(!(i % 3 == 0 || i % 5 == 0)){r+=i;}
    }
    cout << r << 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(){
    long n;
    cin >> n;
    long i;
    long sum = 0 ;
    for(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 <iostream>
using namespace std;

int main(int argc, const char * argv[]) {
    uint64_t N;
    cin >> N;
    
    uint64_t sum = 0;
    for (uint64_t i = 1; i <= N; i++) {
        if ((i % 15 != 0) &&
            (i % 5 != 0) &&
            (i % 3 != 0)) {
            sum += i;
        }
    }

    std::cout << sum;
    
    return 0;
}


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

#include <iostream>

using namespace std;

int main() {
    long long int N;
    long long int res = 0;

    cin >> N;

    for (long long int i = 1; i <= N; ++i) {
        if (i % 15 == 0 || i % 5 == 0 || i % 3 == 0) {
            res += i;
        }
    }

    cout << res;
    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 <boost/multiprecision/cpp_int.hpp>

using namespace std;
using namespace boost::multiprecision;

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REPI(i,a,b) for(int i=int(a);i<int(b);++i)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define ALL(x) (x).begin(),(x).end()

int main () {
  long long n;
  cin >> n;
  long long acc = 0;

  REP(i, n) {
    if(((i+1) % 15) == 0) { }
    else if(((i+1) % 5) == 0) { }
    else if(((i+1) % 3) == 0) { }
    else { acc = (acc + (i+1)); }
  }

  cout << acc << 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;
typedef long long ll;
#define rep(i,n) for(ll (i)=0;(i)<(n);(i)++)
 
int main(){
    unsigned long long N;
    cin >> N;
    unsigned long long sum=0;
    rep(i, N){
        if((i+1)%3!=0&&(i+1)%5!=0){
            sum += i+1;
        }
    }
    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;

//#define int long long
#define ll long long
#define all(v) (v).begin(), (v).end()
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<n;++i)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define EPS (1e-7)
#define gearup ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef pair<ll, ll> P;
typedef vector<ll> vl;
typedef vector<vector<ll> > vvl;
typedef vector<vector<vector<ll> > > vvvl;
ll MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647; // 2^31-1
const double PI = acos(-1);
//cout<<fixed<<setprecision(10);

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}
template<class T> void debug(T v){rep(i,v.size()) cout<<v[i]<<" ";cout<<endl;}
const ll dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};

signed main()
{   
    gearup;
    int n; cin >> n;
    ll res = 0;
    rep1(i,n+1){
        if(i%3 == 0|| i%5 == 0);
        else res+=i;
    }
    cout << res << 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

using System;
using static System.Console;
using static System.Math;
using System.Linq;
using System.Collections.Generic;

namespace Main
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(ReadLine());
            int sum = 0;
            for(int i = 0; i < N; i ++)
            {
                if(i % 3 != 0 && i % 5 != .0)
                {
                    sum += i;
                }
            }
            WriteLine(sum);
        }
    }
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:2:6: error: expected ';' before 'static'
    2 | using static System.Console;
      |      ^~~~~~~
      |      ;
main.c:2:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | using static System.Console;
      |                    ^
main.c:3:6: error: expected ';' before 'static'
    3 | using static System.Math;
      |      ^~~~~~~
      |      ;
main.c:3:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | using static System.Math;
      |                    ^
main.c:4:1: error: unknown type name 'using'
    4 | using System.Linq;
      | ^~~~~
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 | using System.Linq;
      |             ^
main.c:5:1: error: unknown type name 'using'
    5 | using System.Collections.Generic;
      | ^~~~~
main.c:5:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 | using System.Collections.Generic;
      |             ^
main.c:7:1: error: unknown type name 'namespace'
    7 | namespace Main
      | ^~~~~~~~~
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    8 | {
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before 'i'
    9 |     for(int i=0 i<N i++){
      |                ^~
      |                ;
a.cc:9:20: error: expected ';' before 'i'
    9 |     for(int i=0 i<N i++){
      |                    ^~
      |                    ;
Language: C

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

typedef long long ll;
typedef pair<ll ,ll> pll;
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)

const ll mod = 1000000009;
const ll INF = 1e18;//1*10^18

ll powll(ll a,ll n){
  if(n==0)
  {
    return 1;
  }
  return powll(a,n-1)*a;
}

int ReturnDigit(ll num)
{
  string number=to_string(num);
  return number.length();
}

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

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

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

int main(){
    int N;
    cin>>N;
    int n3=N/3, n5=N/5, n15=N/15;
    int total=(1+N)*N/2;
    total-=(2*3+(n3-1)*3)*n3/2;
    total-=(2*5+(n5-1)*5)*n5/2;
    total+=(2*15+(n15-1)*15)*n15/2;
    cout<<total<<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 main() {

	long long N;
	cin >> N;

	long long sum = 0;
	for (long long i = 1; i <= N; ++i)
	{
		if ((i % 3 == 0) || (i % 5 == 0)) {
			
		}
		else {
			sum += i;
		}
	}

	cout << sum << 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>
#include <iostream>
#include <limits>
#include <numeric>
#include <type_traits>

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define srt(i) sort(i.begin(), i.end())
#define rvt(i) sort(i.begin(), i.end(), greater<int>())
 
int main() {
  int n;
  cin >> n;

  int64_t ans=0;
  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<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
#include<queue>
#include<stack>
#include<math.h>
#include<map>
typedef long long int ll;
using namespace std;
#define maxn 0x3f3f3f3f
const ll o=1e18;
const int mm=1e6;
ll d[mm];
ll dd[mm];
ll ans[mm];
int main()
{
	ll n,m,i,j,k,kk,a,b,t,ss,s;
	cin>>n;
    s=0;
    for(i=1;i<=n;i++)
    {
    	if(i%3!=0&&i%5!=0)
    	s+=i;
	}
	cout<<s<<endl;
}


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

#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <functional>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <iterator>
using _loop_int = int;
#define REP(i,n) for(_loop_int i=0; i<(_loop_int)(n); i++)
#define FOR(i,a,b) for(_loop_int i=(_loop_int)(a); i<(_loop_int)(b); i++)
#define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1; i>=(_loop_int)(a); i--)
using namespace std;
typedef pair<int,int> P;
typedef long long ll;

const int MOD=1000000007;
const int INF=0x3f3f3f3f;
const ll INFL=0x3f3f3f3f3f3f3f3f;

int main(){
    ll N,a,b,c,ans;
    cin >> N;

    a = N/3;
    b = N/5;
    c = N/15;

    ans = N*(N+1)/2;
    ans = ans - 3*a*(a+1)/2 - 5*b*(b+1)/2 + 15*c*(c+1)/2;

    cout << ans << endl;

    return 0;
}


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