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

/*********************
*@Author:   CKang *
*@Language: C++11    *
*********************/
#include<bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
//#define DEBUG
#define RI register int
#define endl "\n"

using namespace std;

typedef long long ll;
//typedef __int128 lll;
//const int N=100000+10;
const int M=100000+10;
const int MOD=1e9+7;
const double PI = acos(-1.0);
const double EXP = 1E-9;
const int INF = 0x3fffffff;
const ll LINF = 0x3fffffffffffffff;

inline ll read(){
    long long x=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){
        if(ch=='-')
            f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9'){
        x=(x<<1)+(x<<3)+(ch^48);
        ch=getchar();
    }
    return x*f;
}

int main()
{
#ifdef DEBUG
    freopen("input.in", "r", stdin);
    //freopen("output.out", "w", stdout)
#endif
    //cout.tie(0);
    //ll t = read() ;
    //while(t--){}
    ll n=read(),sum=0;
    for(ll i=1;i<=n;i++){
        if(i%3==0||i%5==0)continue;
        else sum+=i;
        //cout<<sum<<endl;
    }
    cout<<sum<<endl;
#ifdef DEBUG
    printf("Time cost : %lf s\n",(double)clock()/CLOCKS_PER_SEC);
#endif
    //cout << "Fuck You !" << endl;
    return 0;
}


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

#include <iostream>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <algorithm>

using std::cout;
using std::endl;
using std::cin;
using std::string;

int main(){
  long int n,sum=0;
  cin >> n;
  for(int i=1;i<=n;i++){
    if((i%3==0)||(i%5==0))
      sum+=0;
    else
      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<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long 
using namespace std;
int main(){
  ll n;
  cin >>n;
  ll ans=0;
  for(ll i=1;i<n+1;i++){
    if(i%3!=0&&i%5!=0){
      ans = ans+i;
    }
  }
  cout <<ans<<endl;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
 
using namespace std;
int main()
{
  long N;
  long ans;

  ans = 0;
  cin >> N;

  for(int i = 0; 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: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

n = int(input())

ans=0
for i in range(1,n+1):
	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<iostream>
#include<iomanip>
#include<string>
#include<queue>
#include<vector>
#include<algorithm>
#include<tuple>
#include<numeric>
#include<map>
#include<cmath>
#define ll long long
#define rep(i,n) for(int i=1;i<=(int) (n);i++)
ll gcd(ll a,ll b){return b ? gcd(b,a%b) : a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
using namespace std;
int main(){
  ll n,ans=0;
  cin>>n;
  rep(i,n){
    if(i%3!=0){
      if(i%5!=0)ans+=i;
    }
  }

  cout<<ans;
  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(){
	long long ans=0,n,a;
	cin>>n;
	for(long long i=0; i<n; i++){
		if(0!=i%3&&0!=i%5){
			ans+=i;
		}
	}
	cout<<ans<<endl;
}

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

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<math.h>
#include<tuple>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
	ll n;
	cin >> n;
	ll ans = 0;
	ll sum = 0;
	for (ll i = 1; i <= n; i++) {
		sum += i;
		if (i % 3 == 0 || i % 5 == 0) {
			ans += i;
		}
	}
	cout << sum - 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 <bits/stdc++.h>
#include <iostream>
using namespace std;

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

  int64_t sum3 = (n/3)*(n/3+1)/2*3;
  int64_t sum5 = (n/5)*(n/5+1)/2*5;
  int64_t sum15 = (n/15)*(n/15+1)/2*15;

  int64_t sum = n*(n+1)/2;

  cout<<sum-sum3-sum5+sum15<<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 <iostream>
using namespace std;
typedef long long ll;
ll mod = 1e9+7;
#define rep(i,n) for(int i = 0; i < (n); ++i)

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


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

                   /**Bismillahir Rahmanir Rahim.**/
/*
         Md.Fagun Molla
         18ICTCSE006
         BSMRSTU(SHIICT)
*/
#include <bits/stdc++.h>
using namespace std;
#define  gcd(a,b)         __gcd(a,b)
#define  lcm(a,b)         (a*b)/gcd(a,b)
#define  ll               long long
#define  vi               std::vector<int>
#define  pb               push_back
#define  MAX              100007
#define  End              return 0;
#define                   pi acos(-1)


int main () {
    ios_base::sync_with_stdio(false); cin.tie(0);cout.tie(0);
    int n;
    cin>>n;
    ll s=0;
    for(int i=1; i<=n; i++){
        if(i%3!=0 && i%5!=0)
            s+=i;
    }
    cout<<s<<endl;
    End
}
/* pray for me
Do before die
*/


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

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

int main() {
    /*変数定義，入力*/
    ll N;
    cin >> N;
    
    //ll A, B;cin >> A >> B;
    //vector<ll> a(N);  rep(i, N) cin >> a[i];
    
    /*演算*/
    ll sum = 0; 
    for(int 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: 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 a,b=0;
  cin>>a;
  for(int i=1;i<=a;i++){
    if(!(i%3==0)&&!(i%5==0)){
      b+=i;
    }
  }
  cout<<b<<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)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
 
int main() {

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



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

#include <bits/stdc++.h>

using namespace std;

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

    long long res = 0;

    for(int i=0; i<N; i++){
        if(i % 3 == 0 || i % 5 == 0) continue;
        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

N = int(input())
print("\n".join(["FizzBuzz" if n % 15 == 0 else "Fizz" if n % 3 == 0 else "Buzz" if n % 5 == 0 else str(n) for n in range(1,N+1)]))

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  unsigned long long  N;
  unsigned long long result=0;

  cin >> N;

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

  cout << result << 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() {
long long N, sum;
sum = 0;
cin >> N;
for(long long i = 0; i <= N; i++){
if(i % 3 != 0 && i % 5 != 0){
sum += i;
}

}
cout << sum << endl;
}

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

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

}

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 input;
  cin >> input;
  long sum = 0;

  for(int i=1; i<=input; 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 <iostream>

using namespace std;

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

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

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){
            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(){
    long long N;
    cin >>N;
    long long 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 <bits/stdc++.h>
#include <algorithm>
using namespace std;


int main (){
    int N;
    cin >> N;
    long int 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;
typedef long long ll;
typedef double db;
/**************************************Define basic function start here***********************************/
ll GCD(ll a, ll b){ll gcd, g;g = __gcd(a, b);return g;}
ll LCM(ll a, ll b){ll gcd, g;g = __gcd(a, b);return (a/g)*b;}
/**********************************************Define basic function end here******************************/
const ll INF_LONG = 1LL<<61;
const unsigned int inf_int = 1<<31;
const ll mod = 1e9+7;
double phi = acos(-1);
/**********************************************************************************************************/

/***********************************************************************************************************/
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:4:9: fatal error: bits/stdc++.h: No such file or directory
    4 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << ans << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |     cout << ans << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
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() {
    int 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>
#define ll long long 
#define P pair<int,int>
#define rep(i,n) for(ll i=0;i<n;i++)
using namespace std;

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

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

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


Compiler output:
main.c:1: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(long long i=0;i<n;i++)
using namespace std;

int main(){
    long long N,sum = 0;
    bool Fizz,Buzz;

    cin >> N;

    rep(i,N){
        Fizz = false;
        Buzz = false;
        if(i % 3 == 0){
            Fizz = true;
        }else if(i % 5 == 0){
            Buzz = true;
        }else{
            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, 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:
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 MAX_N = 100;

int main()
{
    // スペース区切りの整数の入力
    long long N,sum;
    cin >> N;

    sum = 0;

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

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

#include <iostream>
#define long long ll;
using namespace std;
ll n, x = 0;
int main()
{
  cin >> n;
  for (int i = 1; i <= n; ++i)
  {
    if (!(i %3) && !(i % 5))
      x += i;
  }
  cout <<x << '\n';
}

Compiler output:
a.cc:4:1: error: 'll' does not name a type
    4 | ll n, x = 0;
      | ^~
a.cc: In function 'int main()':
a.cc:7:10: error: 'n' was not declared in this scope
    7 |   cin >> n;
      |          ^
a.cc:11:7: error: 'x' was not declared in this scope
   11 |       x += i;
      |       ^
a.cc:13:10: error: 'x' was not declared in this scope
   13 |   cout <<x << '\n';
      |          ^
Language: C

#include <iostream>
#include <string.h>
#include<algorithm>
#include<math.h>

using namespace std;

int main()
{
	long long N,SUM=0;
	cin >> N;
	for (int i = 0; i < N; i++) {
		if ((i + 1) % 3 == 0 || (i + 1) % 5 == 0)SUM += 0;
		else SUM += i + 1;
	}
	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>
#include<string>
using namespace std;

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

  // ALL - Miod3 -mod5 + mod15
  long long all,mod3,mod5,mod15;
  all = N*(N+1)*0.5;
  mod3 = mod(N,3)*(mod(N,3)+1)*9*0.5;
  mod5 = mod(N,5)*(mod(N,4)+1)*25*0.5;
  mod15 = mod(N,15)*(mod(N,15)+1)*15*15*0.5;

  cout << all -mod3 -mod5 + mod15;
  return 0 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'mod' was not declared in this scope; did you mean 'mod5'?
   13 |   mod3 = mod(N,3)*(mod(N,3)+1)*9*0.5;
      |          ^~~
      |          mod5
a.cc:18:11: error: expected ';' before '}' token
   18 |   return 0
      |           ^
      |           ;
   19 | }
      | ~
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;
using ld = long double;
int main() {
  ll n = 0;
  ll sum = 0;
  cin >> n;
  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<string>
using namespace std;

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<string>
      |        ^
main.c: In function 'main':
main.c:6:5: error: 'cin' undeclared (first use in this function)
    6 |     cin >> N;
      |     ^~~
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:5: error: 'cout' undeclared (first use in this function); did you mean 'counter'?
   11 |     cout << counter << endl;
      |     ^~~~
      |     counter
main.c:11:24: error: 'endl' undeclared (first use in this function)
   11 |     cout << counter << endl;
      |                        ^~~~
Language: C

#include<bits/stdc++.h>

using namespace std;

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

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

Compiler output:
a.cc:1:1: error: 'll' does not name a type
    1 | ll n;
      | ^~
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> n;
      |         ^~~
a.cc:3:9: error: 'll' does not name a type
    3 |         ll ans = 0;
      |         ^~
a.cc:4:9: error: expected unqualified-id before 'for'
    4 |         for(ll i=1;i<=n;i++) {
      |         ^~~
a.cc:4:20: error: 'i' does not name a type
    4 |         for(ll i=1;i<=n;i++) {
      |                    ^
a.cc:4:25: error: 'i' does not name a type
    4 |         for(ll i=1;i<=n;i++) {
      |                         ^
a.cc:10:9: error: 'cout' does not name a type
   10 |         cout << ans;
      |         ^~~~
Language: C

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
#define rep(i,n) for(int i = 0; i < ((int)(n)); i++)   // 0-indexed昇順

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

#include <bits/stdc++.h>

#define nl '\n'
#define F fisrt
#define S second
#define pb push_back
#define mp make_pair
#define REP(i,a,b) for(int i = a; i < b; i++)

#define Fizz -1
#define Buzz -2
#define FizzBuzz -3

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef stack<int> si;
typedef deque<int> di;
typedef pair<int,int> pi;

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

	//your code here
	int n; cin >> n;
	ll sum = 0;
	
	REP(i,0,n)
		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 <sstream>
#include <fstream>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <list>
#include <map>
#include <unordered_map>
#include <functional>
#include <utility>
#include <bitset>
#include <cstdlib>
#include <ctime>
#include <cstdio>


#include <stdlib.h>
#include <iostream>
#include <chrono> //clock
#include <vector>
#include <string>
#include <iomanip>  //setprecision function
#include <cmath>	//math
#include <cstdio>
#include <vector>	//vector array
#include <algorithm>	//STL algorithm
#include <set> //STL library set
#include <sstream> // for stringstream


using namespace std;
using namespace std::chrono; 

int main() {
	stringstream ss;
	//ss<<"akhil";
	//cout<<ss.str()<<endl;
	cout<<setprecision(16);
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	
	 // TESTCASE KO DEKH KA BHAUT SARA CONDITION GENERATE MAT KRO 
	 // PAPER PD CONFIRM HO JAO THORA JADA TIME HI KYU NA LGA
	
	int N;
	cin>>N;
	int sum=0;
	for(int i=1;i<=N;i++){
		if(i%3!=0 and i%5!=0) sum+=i;
	}

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





























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

#include<iostream>
#include<algorithm>
#define rep(i, n) for(int i=0; i<n; i++)
using namespace std;

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

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

#include<cstdio>
#include<iostream>
#include<cstring>
#include<vector>
#include<queue>
#include<map>
#include<cmath>
#include<algorithm>
#include<cstdlib>
#include<stack>
#include<set>
using namespace std;
#define pb push_back
#define POP pop_back()
#define ll long long
#define db double
#define POP pop_back()
#define endl '\n'
#define PII pair<int,int>
#define FI first
#define SE second
#define VI vector<int>
#define QI queue<int>
#define SI stack<int>
#define debug cout<<"debug"<<endl;
#define PLL pair<LL,LL>
#define PDD pair<double,double>
#define ULL unsigned long long
#define fo(i,a,b) for (int i=a;i<=b;++i)
#define fd(i,a,b) for (int i=a;i>=b;--i)
#define mem(x,a) memset(x,a,sizeof(x))
const int maxn = 2e5 + 5;
const int inf = 0x3f3f3f3f;
const int mod = 1e9 + 7;
int main(){
	int n;cin >> n;
	ll sum = 0;
	fo(i,1,n){
		if(i % 3== 0 || i % 5 == 0)continue;
		sum += i;
	}
	cout << sum << endl;
	return 0;
}

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

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

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

    int v = 0;

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

    cout << v << 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 ll long long
int t,n,m;
ll ans;
int main()
{
	cin>>n;
	ll l=n/3,r=n/5,k=n/15;
	ans=(ll)(n+1)*n/2-(3+(l-1)*3+3)*l/2-(5+(r-1)*5+5)*r/2+(15+(k-1)*15+15)*k/2;
	cout<<ans; 
	return 0; 
}

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

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

int main(){
    long long N;
    cin >> N;
    long long A[N];
    for(int i=0;i<N;i++) A[i]=i+1;
    long long sum=0;
    for(int i=0;i<N;i++){
        if(A[i]%3==0 || A[i]%5==0) A[i]=0;

        sum += A[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<vector>
#include<string>


using ll = long long;


int main(){
    int n;
    std::cin >> n;
    ll sum = 0;
    for(int i = 1; i <= n; i++){
        if(i % 3 != 0 && i % 5 != 0){
            sum += i;
        }
    }
    std::cout << sum << std::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; 
int main() {
int N;
  cin>>N;
  cout<<0.5*N*(N+1)-(1.5*(N/3)((N/3)+1))-(2.5*(N/5)*((N/5)+1))+(7.5*(N/15)((N/15)+1))<<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, i, sum;
  cin >> n;
  i = 0;
  sum = 0;
  while(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;
  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()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    int n;cin>>n;
    unsigned long long sum=0;
    for(int i=1;i<=n;i++){
        if(i%3==0 || i%10==0 || i%10==5) continue;
        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;
void init(){
    cin.tie(0);
    cin.sync_with_stdio(0);
}

int main() {
    init();
  long long n,sum=0;
  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: 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++)

int main() {
  uint64_t Ans = 0;  // 回答：
  uint64_t N; cin >> N; // 最終の値

  rep(i,N){
    if(i%3!=0 && i%5!=0 ){
      Ans +=i;
    }
  }



  cout << Ans << endl;
}


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

#include <bits/stdc++.h>
#define ll long long
#define intm INT_MAX
#define llm LLONG_MAX

using namespace std;
int MOD = 998244353;

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




}


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

#include<bits/stdc++.h>
#define int long long

using namespace std;

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

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

#include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vl vector<long long>
#define fin(ar,k,n) for(int i=k;i<n;i++) cin>>ar[i]
#define fout(ar,k,n) for(int i=k;i<n;i++) cout<<ar[i]<<' '
#define vs vector<string>
#define mx INT_MAX
#define mn INT_MIN
#define all(z) z.begin(),z.end()
#define mcc 1000000007
#define mcf 998244353
#define mi map<int,int>
#define mem(a,n) memset(a,n,sizeof(a))
using namespace std;

//ll maxl(ll a,ll b) {return (a>b)? a:b;}
//ll minl(ll a,ll b) {return (a<b)? a:b;}
//ll gcdl(ll a,ll b) {return b ? gcdl(b,a%b):a;}
//bool sortc(const vi &v1,const vi &v2) {return v1[0]>v2[0];}

void solve()
{
    ll n,sum=0;
    cin>>n; n++;
    while(n--)
    {
        if (n%3!=0 && n%5!=0)
        {
            sum+=n;
        }
    }
    cout<<sum;
}


#if 1
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int t=1;
    //cin>>t;
    while(t--) solve();
    return 0;
}
#endif

//------------------------Google-------------------
#if 0
int main()
{
    #ifdef __WIN32
    freopen("input.txt","r",stdin);
    #endif
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    ll t,ct=0;
    cin>>t;
    while(t--)
    {
        cout<<"Case #"<<++ct<<": ";
        solve();
    }
    return 0;
}
#endif


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 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(n%3==0 || n%5==0){
        }
        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<iostream>
using namespace std;
int main ()
{
	 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;
	
}

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
# define int long long  //comment it out when MLE
//# define endl "\n"
#define gok ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
# define mo 1000000009
# define pi acos(-1)
# define fi first
# define se second
using namespace std;


signed main()
{
    gok
    int n;
    cin>>n;
    int p=15;
    int su=0;
    int ss = n*(n+1);
    ss/=2;
    for(int i=3;i<=n;i++)
    {
        if(i%3==0 || i%5==0)
            su+=i;
    }

cout<<ss-su;









      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()
{
    long long n;
    cin >> n;

    long long sum = 0;
    for (int i = 0; i < n; i++) {
        if ((i % 15) != 0 && (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 <iostream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <cmath>
#include <algorithm>
#include <numeric>
#include <climits>
#include <iomanip>
#include <deque>
#include <limits>

using namespace std;

const int CONSUMPTION_TAX = 0.1;

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;

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

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

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

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

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

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

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

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

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

int main() {
    int N;
    cin >> N;
    int64_t 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:
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;
using P = pair<int,int>;

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

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

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

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;
unsigned long long res=0;
long long n;

int main()
{
    cin >> n;
    for (long long i=1;i<=n;++i)
        if ( (i%3)!=0)
            if ((i%5)!=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 <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>

using namespace std;

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

	cout << sum << "\n";
	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(void){
    // Your code here
    int N;
    int i;
    int x=0;
    
    cin >> N;
    
    for(i=1;i<=N;i;;){
        if(!(i%3==0||i%5==0)){
            x += i;
        }
    }
    
    cout << x << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected ')' before ';' token
   11 |     for(i=1;i<=N;i;;){
      |        ~          ^
      |                   )
a.cc:11:21: error: expected primary-expression before ')' token
   11 |     for(i=1;i<=N;i;;){
      |                     ^
Language: C

#include <iostream>
#include <map>
#include <set>
#include <utility>
#include <numeric> 
#include <bits/stdc++.h>
typedef long long ll;
typedef std::pair<std::pair<int,int>,int>pi;
using namespace std;

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

import sys
import numpy as np
import math
# for AtCoder
# import fractions
from collections import deque 
from functools import reduce

# input = sys.stdin.readline

n = int(input())

sum = 0
for i in range(1, n+1):
    if ((i % 3) == 0 or (i % 5) == 0):
        continue
    else:
        sum += i
    
print(sum)

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    2 | import numpy as np
      | ^~~~~~
main.c:2:1: error: unknown type name 'import'
main.c:4:3: error: invalid preprocessing directive #for
    4 | # for AtCoder
      |   ^~~
main.c:5:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    5 | # import fractions
      |   ^~~~~~
main.c:5:10: error: #import expects "FILENAME" or <FILENAME>
    5 | # import fractions
      |          ^~~~~~~~~
main.c:9:3: error: invalid preprocessing directive #input
    9 | # input = sys.stdin.readline
      |   ^~~~~
Language: C

n=int(input())
ans=0
for i in range(n+1):
    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:3: error: expected expression before 'int'
    1 | n=int(input())
      |   ^~~
Language: C

#include <iostream>

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: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, a, b) for (int i = (a); i < (b); ++i)
#define MAX 128
#define fst first
#define sec second
#define pb push_back
#define mp make_pair
#define ALL(x) (x).begin(), (x).end()
#define debug(x) cerr << #x << ": " << x << '\n'
#define bit(n) (1LL << (n))
#define int long long
const double PI = 3.141593;
const int MOD = (int)1e9 + 7;
const int INF = 100100100;
const double EPS = 1e-9;
template <class T>
bool chmax(T &a, const T &b){if (a < b){a = b;return 1;}return 0;}
template <class T>bool chmin(T &a, const T &b){if (b < a){a = b;return 1;}return 0;}
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最大公約数
ll lcm(ll a, ll b) { return a * b / gcd(a, b); }     //最小公倍数
ll combination(ll n, ll r){if (r * 2 > n)r = n - r;ll dividend = 1;ll divisor = 1;for (ll i = 1; i <= r; ++i){dividend *= (n - i + 1);divisor *= i;}return dividend / divisor;}


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

  int n;
  cin >> n;
  int fizzbuzz, fizz, buzz;
  fizzbuzz = n / 15;
  fizz = n / 3;
  buzz = n / 5;
  int sum = n * (1 + n) / 2;
  int ans = sum - 3 * (1 + fizz) * fizz / 2 - 5 * (1 + buzz) * buzz / 2 + 15 * (1 + fizzbuzz) * fizzbuzz / 2;
  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<string>
#include<algorithm>
#include<vector>
using namespace std;

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

    vector<int> a(n);
    /*for(int i=0;i<n;i++){
        cin >> a.at(i);
    }
    */
    long long count=0;
    for(int i=1;i<n;i++){
        if(i%3!=0&&i%5!=0){
    
            count+=i;
        }
    }

        cout << count << endl;
    }

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

n = int(input())
list = []
for i in range(0, n):
    if i%5==0 or i%3==0:
        a = 1
    else:
        list.append(i)
print(sum(list))

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

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

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

int main(){
long int N,i,sum=0;
cin >> N;
for(i=0;i<=N;i++){
if(i%3==0 || i%5==0)sum=sum;
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: Java

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        long N = sc.nextLong();
        long sum = 0;
        for (long i = 1; i <= N; i++) {
            if(i%15 != 0 && i%3 != 0 && i%5 !=0){
              sum += i;
            }
        }
        System.out.println(sum);
      }
}

Compiler output:
Main.java:2: error: cannot find symbol
    static Scanner sc = new Scanner(System.in);
           ^
  symbol:   class Scanner
  location: class Main
Main.java:2: error: cannot find symbol
    static Scanner sc = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
2 errors