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

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

int main()
{
	int n;
	scanf("%d",&n);
	ll ans = 0;
	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:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C



import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		long n = sc.nextLong();

		long ans = 0;

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

		System.out.println(ans);
	}

}


Compiler output:
main.c:3:1: error: unknown type name 'import'
    3 | import java.util.Scanner;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.util.Scanner;
      |            ^
main.c:5:1: error: unknown type name 'public'
    5 | public class Main{
      | ^~~~~~
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    5 | public class Main{
      |              ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'll' was not declared in this scope
    8 |         ll sum = 0;
      |         ^~
a.cc:15:17: error: 'sum' was not declared in this scope
   15 |                 sum += i;
      |                 ^~~
a.cc:17:17: error: 'sum' was not declared in this scope
   17 |         cout << sum << endl;
      |                 ^~~
Language: C

def fizzbuzz(n):
    ans = 0
    for i in range(n):
        if (i+1)%3 != 0 and (i+1)%5 != 0:
            ans += i+1
            # print(i+1, ans)
    print(ans)

n = int(input())
fizzbuzz(n)

Compiler output:
main.c:1:1: error: unknown type name 'def'
    1 | def fizzbuzz(n):
      | ^~~
main.c: In function 'fizzbuzz':
main.c:1:16: error: expected declaration specifiers before ':' token
    1 | def fizzbuzz(n):
      |                ^
main.c:6:15: error: invalid preprocessing directive #print
    6 |             # print(i+1, ans)
      |               ^~~~~
main.c:1:5: error: type of 'n' defaults to 'int' [-Wimplicit-int]
    1 | def fizzbuzz(n):
      |     ^~~~~~~~
Language: C

#include<bits/stdc++.h>

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: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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;
    return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:9:33: error: expected expression before '=' token
    9 |                 if(i%3==0 && i%==5)
      |                                 ^
Language: C

#include <iostream>


using namespace std;



int main() {
    ios::sync_with_stdio(0), cin.tie(0);
    long long int n,sum=0;
    cin >> n;

   for(int i=1;i<=n;i++){
        if(i%3==0||i%5==0) continue;
        sum+=i;

   }
   cout<<sum;

}


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

n = int(input())
ans = 0
for i in range(n):
  i += 1
  if (i % 3 == 0) or (i % 5==0):
    pass
  else:
    ans += i
print(ans)

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

//FizzBuzz Sum

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long n,ans;
  cin>>n;
  ans=0;
  for(long i=1; i<n+1; i++){
    if(n%3!==0 && n%5!==0){
      ans=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 n;
	cin>>n;
	int a[n+1];
	int sum=0;
	for(int i=1;i<=n;i++){
		if(i%3!=0&&i%5!=0){
			sum++;
			a[sum]=i;
		}
	}
	int ans=0;
	for(int i=1;i<=sum;i++){
		ans=ans+a[i];
	}
	cout<<ans<<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>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)   FOR(i,0,n)
//----------------------------------------------------------------------

using namespace std;
using ll = long long;
using P = pair<int,int>;
using Graph = vector<vector<int>>;

int main(void) {
    int n; cin >> n;

    ll ans = 0;
    for(int i = 1; i<=n; i++) {
        if(i%3==0) {
        }else if(i%5 == 0) {
        }else if(i%3 == 0 && i%5 == 0) {
        }else{
            ans += i;
        }
    }
    cout << ans << 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>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

void Main()
{
  ll N;
  cin >> N;
  ll sum = 0;
  rep(i,N+1) {
    if (i % 5 == 0 || i % 3 == 0);
    else sum += i;
  }
  cout << sum << endl;
}

int main()
{
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  Main();
  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 pi acos(-1.0)
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define rep(i,a,n) for (ll i=a;i<n;i++)
#define per(i,a,n) for (ll i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((ll)(x).size())
#define cin1(x) cin >> x
#define cin2(x, y) cin >> x >> y
#define cin3(x, y, z) cin >> x >> y >> z
#define cou(x) cout << x
#define cous(x) cout << x << " "
#define coul(x) cout << x << "\n"
#define ret(x) return x
#define MAX 5000001
#define start int main() {   fastio
#define finish ret(0); }
#define minv(v) *min_element(v.begin(),v.end())
#define maxv(v) *max_element(v.begin(),v.end())
#define cntv(v,a) count(v.begin(),v.end(),a)
typedef long long ll;
typedef vector<ll> VI;
typedef pair<ll,ll> PII;
typedef double db;
//mt19937 mrand(random_device{}());
const ll mod=1000000007;
//ll rnd(ll x) { return mrand() % x;}
const ll X[]= {+0,+0,+1,-1,-1,+1,-1,+1};
const ll Y[]= {-1,+1,+0,+0,+1,+1,-1,-1};
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}ret(res);}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
ll fact[13];
void factorial() {   fact[0]=1;  rep(i, 1, 12) fact[i]=(fact[i-1]*i);  }
vector <ll> sie; //for sieve function
ll spf[MAX+7];  //for sieve function
void sieve() {    rep(i, 2, MAX)  {  if (spf[i] == 0) {  spf[i] = i;   sie.pb(i);  }    for (ll j=0; j<SZ(sie) && i*sie[j] <= MAX && sie[j] <= spf[i]; j++)   spf[i * sie[j]] = sie[j]; }   }
// head collected

ll t, n, k, _, __,ans;
string str;

start;

    cin1(t);

    ll sum = 0;
    rep(i, 1, t+1){
        if( i%3==0 || i%5==0)
            continue;
        sum += i;
    }


    coul(sum);
     /*if( a == 7 || b == 7 || c ==  7 )
        coul("Yes");
     else
        coul( "No");*/



finish


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;

int main() {
    int N;
    cin N;

    long long ans = 0;
    for (int i = 0; i < N; i++) {
        if (i % 3 == 0 || 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 <bits/stdc++.h>
using namespace std;

int main() {
  int64_t N, s=0;
  cin >> N;
  for(int64_t i=0;i<N;i++){
    int64_t j=i%3;
    int64_t k=i%5;
    if(j==0&&k==0)
      s += i;
  }
  cout << i << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'i' was not declared in this scope
   13 |   cout << i << endl;
      |           ^
Language: C

#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
long long sum(long long n) {
    return (n*(n+1))/2;
}
int main(int argc, char const *argv[]) {

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(0);
    long long n;
    cin>>n;
    long long total=sum(n);
    long long a=3*sum(n/3);
    long long b=5*sum(n/5);
    long long c=15*sum(n/15);
    long long ans=total-a-b+c;
    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 <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(),x.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T&a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T&a,T b){if(a>b){a=b;return 1;}return 0;}
using ll = long long;
using P = pair<int,int>;

ll n,m,sum;
string s,t;

int main() {
  cin >> n;
  rep(i,n)if((i+1)%3!=0 && (i+1)%5!=0) sum+=i+1;
  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 <vector>
#include <list>
#include <map>
#include <climits>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string.h>
#include <string>
#include <cstring>
#include <ctime>
#include <queue>
#include <random>
#include <cctype>
#include <complex>
#include <regex>
#include <unordered_map>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <stdio.h>


using namespace std;

int main(void) {
    int N;
    cin>>N;
    long long int A=0;
    long long int B=0;

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

        B+=i;
    }

    cout<<B-A<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main(){ 
    long long int n;
    cin>>n;

    long long int ans=0;

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

//
//  fizzbuzz.cpp
//  learningCplusplus
//
//  Created by Tran Duc Chinh on 2020/04/04.
//  Copyright © 2020 Tran Duc Chinh. All rights reserved.
//

#include <iostream>

using namespace std;
typedef long long ll;

int main(int argc, const char* argv[]) {
  int n;
  std::cin >> n;

  ll cnt = 0;
  for (int i = 0; i < n; i++) {
    if ((i+1) % 3 != 0 && (i+1) % 5 != 0) {
      cnt += i+1;
    }
  }
  std::cout << cnt << std::endl;
  return 0;
}


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

N  =int(input())
ans = 0
for i in range(1,N):
    if i%3 != 0 and i%5 != 0:
        ans +=i
print(ans)

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>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll = long long;

int main()
{
    int n;
    ll out=0;

    cin >> n;

    for (int i=1;i<=n;++i){

        if (!(i%3==0 || i%5==0))out+=i;

    }

    cout << out << 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<(n);++i)
using namespace std;
using ll = long long;

int main() {
  int n;
  ll s=0;

  cin >> n;

  rep(i,n+1) {
    if ((i%3==0)||(i%5==0)) continue;
    else 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;

int64_t FizzBuzz(int64_t n) {
    int64_t i = 0;
    int64_t sum = 0;
    while (i < n) {
        i++;

        if (i % 3 == 0 || i % 5 == 0) {
            continue;
        } else {
            sum += i;
        }
    }

    return sum;
}

int main() {
    int64_t n;
    cin >> n;
    cout << FizzBuzz(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

# -*- coding: utf-8 -*-
# B - FizzBuzz Sum
# 標準入力の取得
N = int(input())

# 求解処理
# 1～Nまで3または5で割り切れないものをどんどん足していく
result = 0
for n in range(1, N+1):
    if (n % 3 == 0) or (n % 5 == 0):
        continue
    result += n

# 結果出力
print(result)

Compiler output:
main.c:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
main.c:2:3: error: invalid preprocessing directive #B
    2 | # B - FizzBuzz Sum
      |   ^
main.c:3:3: error: invalid preprocessing directive #\U00006a19\U00006e96\U00005165\U0000529b\U0000306e\U000053d6\U00005f97
    3 | # 標準入力の取得
      |   ^~~~~~~~~~~~~~
main.c:4:1: warning: data definition has no type or storage class
    4 | N = int(input())
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:4:5: error: expected expression before 'int'
    4 | N = int(input())
      |     ^~~
main.c:6:3: error: invalid preprocessing directive #\U00006c42\U000089e3\U000051e6\U00007406
    6 | # 求解処理
      |   ^~~~~~~~
main.c:7:3: error: "1～Nまで3または5で割り切れないものをどんどん足していく" after # is not a positive integer
    7 | # 1～Nまで3または5で割り切れないものをどんどん足していく
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:14:3: error: invalid preprocessing directive #\U00007d50\U0000679c\U000051fa\U0000529b
   14 | # 結果出力
      |   ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: stray '\342' in program
    4 |   scanf(<U+201C>%d<U+201D>,&n);
      |         ^~~~~~~~
main.c:4:10: error: expected expression before '%' token
    4 |   scanf(“%d”,&n);
      |          ^
main.c:4:12: error: stray '\342' in program
    4 |   scanf(<U+201C>%d<U+201D>,&n);
      |                   ^~~~~~~~
Language: C


import java.util.*;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		long ans = 0;
		for(long i=1; i<=n; i++) {
			if(i%3==0||i%5==0) continue;
			ans += i;
		}
		System.out.println(ans);
		sc.close();
	}


}


Compiler output:
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.*;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.*;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main {
      |              ^~~~
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;
    int sum = 0;
    int i;
    for(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;
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){
            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 <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <algorithm>
#include <complex>
#include <array>
#include <iomanip>
using namespace std;

#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define ALL(c) (c).begin(), (c).end()

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<long double> VD;
typedef vector<VI> VVI;
typedef vector<VL> VVL;
typedef vector<VD> VVD;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;

template<typename T> void chmin(T &a, T b) { if (a > b) a = b; }
template<typename T> void chmax(T &a, T b) { if (a < b) a = b; }

int in() { int x; scanf("%d", &x); return x; }
ll lin() { ll x; scanf("%lld", &x); return x; }
#define INF 1LL<<60

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

    ll sum = 0;
    FOR(i, 1, N) {
        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 <iostream>

using namespace std;

void func_A() {

    int n;
    cin >> n;

    while (n > 0) {
        if (n % 10 == 7) {
            cout << "Yes";
            return;
        }

        n /= 10;
    }

    cout << "No";
}

void func_B() {

    unsigned long long n;
    cin >> n;

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

    cout << sum;
}

void func_C() {



}

int main()
{
    //func_A();
    func_B();
    //func_C();

    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 pb push_back
#define all(c) c.begin(),c.end()
#define allr(c) c.rbegin(),c.rend()
#define MOD 1000000007
#define PI 3.14159265
#define endl '\n'


using namespace std;

void quick ()
{
    cin.tie(0);
    cout.tie(0);
    ios_base::sync_with_stdio(0);/*//*/
}

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

void readFromText()
{
#ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
#endif // ONLINE_JUDGE
}

int main()
{
   quick();
//    readFromText();
    int n ; cin >> n ; long long 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: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,sum=0,i;
  cin>>n;
for(i=1;i<=n;i++)
{
	if(i%3==0 || i%5==0)
	continue;
	else
	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 <bits/stdc++.h>

using namespace std;

int main(){
  int 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: 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;
    int Ans = 0;
  for(int i=1; i<=N; i++){
    if(i%3!=0||i%5!=0)
    Ans = 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

#define _USE_MATH_DEFINES
#include<iostream>
#include<fstream>
#include<vector>
#include<string>
#include<algorithm>
#include<climits>
#include<numeric>
#include<cmath>
#include<cstring>
#include<deque>
#include<map>
#include<iomanip>

#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 FORR(i, m, n) for(int i = m;i >= n;i--)
#define VSORT(v) sort(v.begin(), v.end());
#define VE vector<int>
#define VEP vector<pair<int,int>>
#define ll long long
#define pb(a) push_back(a)
using namespace std;
const vector<VE> DIR{ {-1,0},{1,0},{0,-1},{0,1} };
const ll MOD = 1000000007;
long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

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


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>

using namespace std;

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

    int sum = 0;
    for(int i = 0; i <= max; 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 <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep1(i, n) for(int i = 1; i < n+1; i++)
#define sort(A) sort(A.begin(),A.end())
#define reverse(A) reverse(A.begin(),A.end());
#define vecmin(A) *min_element(A.begin(),A.end());
#define vecmax(A) *max_element(A.begin(),A.end());
typedef long long ll;

int main(){
  int n;
  ll ans = 0;
  for(ll 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: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <numeric>

using namespace std;

bool kaibun(string s){
    size_t len = s.length();
    for(int i = 0; i < len/2; i++){
        if(s[i] != s[len-i-1]) return false;
    }
    return true;
}

int main(){
    long long int N=0;
    long long int sum=0;
    cin >> N;
    for(long int i = 1; i < N + 1; i++){
        if(i%3 == 0){
            continue;
        }
        if(i%5 == 0){
            continue;
        }
        sum += i;
        //cout << i << endl;
    }
    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<iostream>
using namespace std;
int main(){
  long long N;
  cin>>N;
  long long A[10000010]
    long long sum=0;
  for (long long i=0; i<N; i++){
    if (i%3!=0 && i%5!=0){
      sum+=i}}
  cout<<sum<<endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'long'
    7 |     long long sum=0;
      |     ^~~~
a.cc:10:7: error: 'sum' was not declared in this scope
   10 |       sum+=i}}
      |       ^~~
a.cc:11:9: error: 'sum' was not declared in this scope
   11 |   cout<<sum<<endl;
      |         ^~~
Language: C



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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() 
{
	int N;
	cin >> N;
	
	long sum = 0;
	
	for(int i = 1; i <= N; i++){
		if(i % 3 == 0 || i % 5 == 0) continue;
		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>
#define rep(i,n) for(int i=0; i<n; i++)
using namespace std;
typedef long long ll;
typedef long long int lli;

ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }	//最大公約数(Greatest Common Divisor)
ll lcm(ll a, ll b) { return a/gcd(a,b)*b; }			//最小公倍数(Least Common Multiple)

long long comb(long long m) {
	return (m * (m - 1)) / 2;
}


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

	ll 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: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<n;i++)

int main() {
  int N;
  cin>>N;
  long long ans;
  rep(i,N){
    if(!(i%3==0||i%5==0)){
      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;
typedef long long int ll;
// ll mod=1000000007;
 
int main(){
    ios_base::sync_with_stdio(false); 
    cin.tie(NULL);
    cout.tie(NULL);
    ll t,i,j,k,temp,temp2,n,m,x,y,sum=0;
    cin >> t;
    for(i=1;i<=t;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: C

#include<bits/stdc++.h>
using namespace std;
#define rep(i, c) for(int i = 0; i < (int)c; i++)
#define ll long long
#define upd_max(maxer, updater) if (maxer < updater) maxer = updater;
#define upd_min(miner, updater) if (miner > updater) miner = updater;
const int inf = 1000000000; // 10^9

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

    for(ll i = 1; i < n; i++){
        if(i % 3 != 0 && i % 5 != 0) ans += i;
    }
    cout << ans << 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;
typedef long long ll;
typedef long double lb;
#define rep(i,j,n) for (ll i = j; i < (n); i++)
#define repr(i,j,n) for(ll i = j; i >= (n); i--)
#define all(x) (x).begin(),(x).end()
#define CLR(mat,f) memset(mat, f, sizeof(mat))
#define IN(a, b, x) (a<=x&&x<b)
#define out(ans) cout << ans << endl
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
typedef pair<ll,ll>P;
const ll mod=1e9+7;
const ll INF = 1LL<<60;
const ll m=1LL<<32;

int main(){

  ll n;cin>>n;

  ll ans=0;
  rep(i,1,n+1){
    if(i%3==0&&i%5==0)continue;
    if(i%3==0)continue;
    if(i%5==0)continue;
    ans+=i;
  }


  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 <iostream>
using namespace std;

void solve(std::istream &ist, std::ostream &ost)
{
    /* ------- 宣言と入力 ------- */

    int N;

    ist >> N;

    /* ------- 計算 ------- */

    long long sum = 0;

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

    ost << sum << endl;
}

#ifndef WOMAIN
int main()
{
    solve(std::cin, std::cout);
    return 0;
}
#endif


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 long n;
	cin>>n;
	cout<<((n*(n+1))/2)-3*(((n/3)*((n/3)+1))/2)-5*(((n/5)*((n/5)+1))/2)+15*(((n/15)*((n/15)+1))/2);
}

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 n,s,i;
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: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

import java.util.*;
public class Main162{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long N = sc.nextInt();
    long sum = 0;
    for(long i = 1; i<= N; i++){
      if(i % 3!=0  && i % 5!=0 ){
        sum = sum + i;
      }
    }
    System.out.println(sum);
  }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main162{
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main162'
    2 | public class Main162{
      |              ^~~~~~~
Language: C

#include <bits/stdc++.h>

using namespace std;
long long int arr[500005];
long long int size1[500005];
long long int m = 1000000007;
long long int fin(long long int node)
{
    if (node == arr[node])
        return node;
    node = arr[arr[node]];
}

void union1(long long int x, long long int y)

{
    long long int node1 = fin(x);
    long long int node2 = fin(y);

    if (size1[node1] > size1[node2])
    {
        size1[node1] += size1[node2];
        arr[node2] = node1;
    }
    else
    {
        size1[node2] += size1[node1];
        arr[node1] = node2;
    }
}
long long int fastexpo(long long int a, long long int b)
{
    long long int ans = 1;
    while (b)
    {
        if (b & 1)
            ans = (ans * a) % m;
        b = b / 2;
        a = (a * a) % m;
    }
    return ans;
}
int main()
{
    int n;
    cin >> n;
    long long int sum = 0;
    for (long long int i = 0; i <= n; i++)
    {
        if (i % 3 == 0 || i % 5 == 0)
        {
            continue;
        }
        sum += i;
    }
    cout << sum << "\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 <iostream>
#include <string>
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <float.h>
#include <stdlib.h>
#include <functional>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define in cin >>
#define out cout <<
#define sort(v) sort(v.begin(),v.end())
#define reverse(v) reverse(v.begin(),v.end())
#define all(v) v.begin(),v.end()
typedef long long ll;
ll modpow(ll a,ll n,ll mod){
    ll res=1;
    while(n>0){
        if(n&1)res=a*res%mod;
        a=a*a%mod;
        n>>=1;
    }
    return res;
}
void comb(vector<vector <long long int> > &v){
  for(int i = 0;i <v.size(); i++){
    v[i][0]=1;
    v[i][i]=1;
  }
  for(int k = 1;k <v.size();k++){
    for(int j = 1;j<k;j++){
      v[k][j]=(v[k-1][j-1]+v[k-1][j]);
    }
  }
}


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

    }
    cout << ans;
}


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

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Array.end())
#define Reverse(a) reverse(a.begin(), a.end())
#define out(ans) cout << ans << endl;
const int MOD = 1000000007;
const int INF = 2147483647;

//------------↓------------- M -------------- E ---------------- M --------------- O ---------------↓--------------//
// コンパイル 
// g++ -std=c++1z
//
// -------型変換--------
// int を string に変換
// string s = to_string(n);
// string を int に変換
// int n = stoi(s);
//
// -------二分探索---------
// k以上の値が最初に現れる時のイテレータ
// lower_bound(data.begin(), data.end(), k)
// kより大きい値が最初の現れる時のイテレータ O(logN)
// upper_bound(data.begin(), data.end(), k)
// kがdataに存在するかをtrue or falseで返す O(logN)
// binary_search(data.begin(), data.end(), k)
// 
//
//
//
//
//
// 
//------------↑------------- M -------------- E ---------------- M --------------- O ---------------↑--------------//






int main() {

    int N; cin >> N;
    ll ans = 0;
    for (int i = 1; i <= N; ++i) {
        if (i % 3 != 0 && i % 5 != 0) {
            ans += i;
        }
    }
    out(ans);



    return 0;
}






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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int mod=1000000007;
#define pb  push_back
#define FOR(i,n) for(int i=0;i<(n);i++)
#define FORA(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);
#define count_1(n)  __builtin_popcountll(n)
#define parity(n)   __builtin_parityll(n)   //Even parity 0 as output
void show    (int a[], int arraysize) { for (int i = 0; i < arraysize; ++i)  {cout << a[i] << " ";}	cout<<endl;}
int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b);}
void sieve(int n)
{
    bool prime[n+1];
    memset(prime, true, sizeof(prime));

    for (int p=2; p*p<=n; p++)
    {
        if (prime[p] == true)
        {
            for (int i=p*p; i<=n; i += p)
                prime[i] = false;
        }
    }
    for (int p=2; p<=n; p++)
       if (prime[p])
          cout << p << " ";
}
int main()
{FAST
ll n;
cin>>n;
ll sum=0;
FORA(i,1,n)
{
	if(i%3!=0&&i%5!=0)
	{
		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

N = gets.to_i
sum = 0

N.times do |i|
    if (i + 1) % 3 == 0 || (i + 1) % 5 == 0
        sum += 0
    else
        sum += i + 1
    end
end

puts sum

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = gets.to_i
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: 'gets' undeclared here (not in a function)
    1 | N = gets.to_i
      |     ^~~~
main.c:2:1: error: expected ',' or ';' before 'sum'
    2 | sum = 0
      | ^~~
Language: C

#include <iostream>
#include <math.h>
#include <strings.h>
#include <queue>
#include <algorithm>
using namespace std;

int main()
{
    long long N,S;
    cin >>N;
    S=0;
    long long i;
    for(i=1;i<=N;i++){
        if(i%3!=0 and i%5!=0){
            S=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;
    long answer=0;
    
    for(int i=1;i<=N;i++)
    {if(i%3!=0&&i%5!=0){answer+=i;}
        
        
        
        
        }
    cout<<answer<<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 _GLIBCXX_DEBUG
using namespace std;
#define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i )
#define rep(i,n) REP(i,0,n)
#define square(x) pow(x 2.0)
#define all(x) (x).begin(),(x).end()
#define F first
#define S second
#define max_queue(x) priority_queue<x>
#define min_queue(x) priority_queue<x, vector<x>, greater<x>>
#define big_sort(v) sort(all(v), [](int a, int b) { return a > b; })//大きい順にソート
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vs = vector<string>;
// aよりもbが大きいならばaをbで更新する
// (更新されたならばtrueを返す)
template <typename T>
bool chmax(T &a, const T& b) {
  if (a < b) {
    a = b;  // aをbで更新
    return true;
  }
  return false;
}
// aよりもbが小さいならばaをbで更新する
// (更新されたならばtrueを返す)
template <typename T>
bool chmin(T &a, const T& b) {
  if (a > b) {
    a = b;  // aをbで更新
    return true;
  }
  return false;
}
/*
#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
*/

int main() {
  ll n,sum=0;
  cin >> n;
  REP(i,1,n+1){
    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>

//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("O3", "Ofast", "unroll-loops", "fast-math")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")


#define int long long
#define endl '\n'

using namespace std;

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


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

#include<iostream>

using namespace std;

int main() {
    int n;
    long 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:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <typeinfo>
#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()
{
    ll n, sum = 0;

    cin >> n;

    for (int i = 1; i <= n; i++)
    {
        sum += (i % 3 != 0 && i % 5 != 0) ? i : 0;
    }
    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;


int main(){
    int N;
    int64_t sum=0;
    cin>>N;
    for (int i=0;i<N;i++){
        if((i+1)%3==0){
            continue;
        }
        else if((i+1)%5==0){
            continue;
        }
        else{
            sum+=i+1;
        }
    }
    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 f(i,a,b) for(int i=a,inc=(b-a)/abs(b-a); i!=b ; i+=inc)
#define deb(x) cout<<#x<<"->"<<x<<endl;
#define print(arr,a,b) for(int i=a;i!=b;i++){cout<<arr[i]<<" ";}cout<<endl;
using ll=long long int;
int arr_min(int arr[],int a,int b){ int min=arr[0]; for(int i=a;i!=b;i++){if(min>arr[i]) min=arr[i];}return min;}
int arr_max(int arr[],int a,int b){ int max=arr[0]; for(int i=a;i!=b;i++){if(max<arr[i]) max=arr[i];}return max;}

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

	#ifndef ONLINE_JUDGE
      	freopen("input.txt", "r", stdin);
      	freopen("output.txt", "w", stdout);
    #endif
    int t=1;
    // cin>>t;
    while(t-->0){
    	ll n;
    	cin>>n;
    	ll sum=0;
    	for(ll i=1;i<=n;i++)
    	{
            if(i%3==0 || i%5==0 || (i%3==0 && i%5==0))
            {
            	continue;
            }
            else
            	sum=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>
#include <iostream>

using namespace std;
typedef long long LL;
typedef pair<int,int> pii;

#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define se second
#define debug(x)  do{cerr<<#x<<": "<<x<<"\n";}while(0)
#define debugv(x) do{cerr<<#x<<": ";for(auto&e: (x))cerr<<e<<" ";cerr<<"\n";}while(0)
#define all(x) (x).begin(), (x).end()
#define fori(i, n) for (int i = 0; i < (int)(n); ++i)
#define ford(i, n, e) for (int i = (int)(n); i >= (int)(e); --i)
#define fore(i, a, b) for (int i = (int)(a); i <= (int)(b); ++i)
template<typename T> bool mmax(T &m, const T q) { if (m < q) {m = q; return true;} else return false; }
template<typename T> bool mmin(T &m, const T q) { if (m > q) {m = q; return true;} else return false; }
#define RETURN(x) do{cout << (x) << '\n'; return 0;}while(0)

const int MOD = 1e9+7;
const int MAXN = 5e5+3;
const int INF = 1e9;


int main(int argc, char **argv) {
#ifdef OJ
    freopen("input.txt", "rt", stdin);
    //freopen("output.txt", "wt", stdout);
#endif
    ios::sync_with_stdio(false);
    cin.tie(0);

    int n; cin >> n;
    LL ans = 0;
    fore(i,1,n) {
        if(i%3 && i%5) ans+=i;
    }
    cout << ans << endl;
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (i=a;i<n;i++)
#define per(i,a,n) for (i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
#define SIZE 1000001
//#define ONLINE_JUDGE
//#define rd
typedef vector<int> VI;
typedef long long ll;
typedef pair<int,int> PII;
typedef double db;
mt19937 mrand(random_device{}());
auto clk=clock(); 
const ll mod=1000000007;
int rnd(int x) { return mrand() % x;}
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
const ll infl=0x3f3f3f3f3f3f3f3fLL;
const int infi=0x3f3f3f3f;

int main(){
	srand(chrono::high_resolution_clock::now().time_since_epoch().count());
	cout<<fixed<<setprecision(20);
	#ifdef rd
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
	#endif	

	/*
		Write here
	*/

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


	#ifdef ONLINE_JUDGE
	cout<<endl<<endl<<endl<<endl<<"Time elapsed: "<<(double)(clock()-clk)/CLOCKS_PER_SEC<<endl;
	#endif
	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 rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;

int main(){
  int N;
  cin << N;
  int s;
  for (int i=1; i<=N; i++) {
    if (i%3!=0 && i%5!=0) {
      s += i;
    }
      else {}
  }
  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>
#define rep(i,n) for(int i=1; i<=(n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(){
    ll 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:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.