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

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <vector>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <fstream>
#include <array>
#include <map>
#include <queue>
#include <time.h>
#include <limits.h>
#include <set>
#include <stack>
#include <random>
#include <complex>
#include <unordered_map>
#include <assert.h>
#include <unordered_set>
#define rep(i,s,n) for(int i = (s); (n) > i; i++)
#define REP(i,n) rep(i,0,n)
#define RANGE(x,a,b) (min(a,b) <= (x) && (x) <= max(a,b)) //hei
#define DUPLE(a,b,c,d) (RANGE(a,c,d) || RANGE(b,c,d) || RANGE(c,a,b) || RANGE(d,a,b))
#define INCLU(a,b,c,d) (RANGE(a,c,d) && (b,c,d))
#define PW(x) ((x)*(x))
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define MODU 998244353LL 
#define bitcheck(a,b)   ((a >> b) & 1)
#define bitset(a,b)      ( a |= (1 << b))
#define bitunset(a,b)    (a &= ~(1 << b))
#define MP(a,b) make_pair((a),(b))
#define Manh(a,b) (abs((a).first-(b).first) + abs((a).second - ((b).second))
#define pritnf printf
#define scnaf scanf
#define itn int
#define PI 3.141592653589
 
 
#define izryt bool
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template<typename A, size_t N, typename T>
void Fill(A(&array)[N], const T & val) {
	std::fill((T*)array, (T*)(array + N), val);
}
 
//[a, b)
#define Getsum(ar, a,b) (ar[b] - ar[a])
#define INF 10000000000000000LL
#define chmax(a,b) a = max(a,b)
#define chmin(a,b) a = min(a,b)
 
struct Edge {
	int from, to;
	ll w;
	bool operator<(const Edge& rhs) const {
		return MP(w, MP(from, to)) < MP(rhs.w, MP(rhs.from, rhs.to));
	}
 
};
typedef vector<vector<Edge>> Graph;
typedef unsigned long long ull;

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

ll lcm(ll m, ll n)
{
	return m * n / gcd(m, n);
}
ll mod_pow(ll x, ll n) {
	ll res = 1;
	while (n > 0) {
		if (n & 1) res = (res * x) % MODU;
		x = (x*x)%MODU;
		n >>= 1;
	}
	return res;
}
ll divmod(ll a, ll b) { // a/b(mod m)
								  // a/b (mod m)
								  // a*b^-1
								  // b^-1 * b = 1
								  // b^(m-1) = 1 
								  // b^(m-2) * b = 1
								  // b^-1 = b^(m-2)

								  // a/b = a * b^(m-2)

	return (a * mod_pow(b, MODU - 2)) % MODU;
}


ll fmemo[10000] = {};
ll factorial(ll n) {//階乗

	if (n > 0) {
    assert(n < 10000);
if(fmemo[n] != 0) return fmemo[n];
		return fmemo[n] = (n * factorial(n - 1))%MODU;
	}
	else {
		return 1;
	}
}

int main(){
  ll sum = 0;
int n;
cin >> n;
  rep(i, 1, n + 1){
    if(i % 3 && i % 5){
      sum += i;
    }
  }
  cout << sum << 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;
int main()
{
long long  n,s[1000009];
long long sum=0;
cin>>n;
for(int i=1;i<=n;i++)
{
    if(i%3==0||i%5==0)
        s[i]=0;
        else
            s[i]=i;

}
    for(int i=1;i<=n;i++)
        sum+=s[i];
    cout<<sum<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int N;
 	cin >> N;
	
    cout << 0.5 * N * (N + 1) - 0.5 * (N / 3) * (N / 3 * 3 + 3) - 0.5 * (N / 5) * (N / 5 * 5 + 5) + 0.5 * (N / 15) * (N / 15 + 15) << 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;
  
  int sum = 0;
 for (int i = 1; i < N+1; i++;){
   if (i % 3 == 0 || i % 5 == 0){
     sum = sum;
   }
   else{
     sum = sum + i;
   }
 }
  
}


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

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

int main() {
  long N;
  cin >> N;
  vector<long> ans;


  for (long i = 1; i <= N; i++) {
    if (i % 3 == 0 && i % 5 == 0)  // iが3の倍数かつ5の倍数
      ans.push_back(0);
    else if (i % 3 == 0)  // iが3の倍数(かつ、5の倍数でない)
      ans.push_back(-1);
    else if (i % 5 == 0)  // iが5の倍数(かつ、3の倍数でない)
      ans.push_back(-1);
    else  // iが3の倍数でも5の倍数でもない
      ans.push_back(i);
  }

  long sum;
  long cnt;

  for (auto &num:ans){
    if (num == 0) {
      cnt += 1;
      if (cnt == N){
        break;
      }
    }else if(num == -1) {
      continue;
    }else {
      sum += num;
    }
  }
  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 <stdio.h>
 
int main(void)
{
  int n, sum;
  
  scanf("%d", &n);
  
  for(int i = 1; i <= n; i++) {
    if(i % 15 == 0) {
      // printf("FizzBuzz\n");
      continue;
    } else if(i % 3 == 0) {
      // printf("Fizz\n");
      continue;
    } else if(i % 5 == 0) {
      // printf("Buzz\n");
      continue;
    } else {
      sum += i;
    }
  }  
    printf("%d", sum);
    
    return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

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

int main() {
	int N;
 	cin >> N;
	
    cout << 0.5 * N * (N + 1) - 0.5 * (N / 3) * (N / 3 * 3 + 3) - 0.5 * (N / 5) * (N / 5 * 5 + 5) + 0.5 * (N / 15) * (N / 15 + 15) << 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++

//FizzBuzz

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	string Fizz;
	string Bizz;
	string FizzBizz;


	int sum = 0;
	int A = 0;
	for(int i=0;i<N;i++){
		A = A + 1;
	}


	//出力
	for(int i=0;i<N;i++){
		if((A%3 ==0) && (A%5 != 0)){
			A = Fizz;
		}else if((A%3 !=0) && (A%5 == 0)){
			A = Bizz;
		}else if((A%3 ==0) && (A%5 == 0)){
			A = FizzBizz;
		}else{
			sum = sum + A;
		}}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:29: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   27 |                         A = Fizz;
      |                             ^~~~
      |                             |
      |                             std::string {aka std::__cxx11::basic_string<char>}
a.cc:29:29: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   29 |                         A = Bizz;
      |                             ^~~~
      |                             |
      |                             std::string {aka std::__cxx11::basic_string<char>}
a.cc:31:29: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   31 |                         A = FizzBizz;
      |                             ^~~~~~~~
      |                             |
      |                             std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:104: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout<<(N*(N+1)/2-(3+N-N%3)*((N-N%3-3)/3+1)/2-(5+N-N%5)*((N-N%5-5)/5+1)+(15+N-N%15)*((N-N%15-15)/15+1)<<endl;
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:8:110: error: expected ')' before ';' token
    8 |   cout<<(N*(N+1)/2-(3+N-N%3)*((N-N%3-3)/3+1)/2-(5+N-N%5)*((N-N%5-5)/5+1)+(15+N-N%15)*((N-N%15-15)/15+1)<<endl;
      |         ~                                                                                                    ^
      |                                                                                                              )
Language: C

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

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

include <stdio.h>
 
int main(void)
{
  int n, sum;
  
  scanf("%d", &n);
  
  for(int i = 1; i <= n; i++) {
    if(i % 15 == 0) {
      // printf("FizzBuzz\n");
    } else if(i % 3 == 0) {
      // printf("Fizz\n");
    } else if(i % 5 == 0) {
      // printf("Buzz\n");
    } else {
      sum += i;
    }
  }  
    printf("%d", sum);
    
    return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define ll	        long long
#define all(v)      (v).begin() , (v).end()
#define vi          vector <ll>
#define vii         vector <pair<ll,ll>>
#define ii          pair<int,int>
#define lp(i,a,b)	for(int i=a;i<b;i++)
#define pb          push_back
#define F           first
#define S           second
const ll mod=1e9+7,MAX=2e5+7;
void fast();
int main()
{
    fast();
    ll n;
    cin>>n;
    ll res=0;
    res=n*(n+1)/2;
    res-=((n/3)*(n/3+1)/2)*3;
    res-=((n/5)*(n/5+1)/2)*5;
    res+=((n/15)*(n/15+1)/2)*15;
    cout<<res;
}

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

*/


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

zenbu = n * (n + 1) / 2

A = (sum(i for i in range(1, n + 1) if i % 3 == 0))
B = (sum(i for i in range(1, n + 1) if i % 5 == 0))
C = (sum(i for i in range(1, n + 1) if i % 15 == 0))

D = zenbu - A - B + C

print(int(D))

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: Java

import java.util.Scanner;

public class Fizz{
	
	
	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);
		long num = s.nextLong();
		
		long sum = 0;
		for (long i = 0; i < num; i++) {
			if (i % 3 != 0 && i%5 != 0) {
				sum += i;
			}
			
		}
		
		System.out.println(sum);

	}
}

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

//FizzBuzz

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	string Fizz;
	string Bizz;
	string FizzBizz;


	int sum = 0;
	int A = 0;
	for(i=0;i<N;i++){
		A = A + 1;
	}


	//出力
	for(i=0;i<N;i++){
		if((A%3 ==0) && (A%5 != 0)){
			A = "Fizz";
		}else if((A%3 !=0) && (A%5 == 0)){
			A = "Bizz";
		}else if((A%3 ==0) && (A%5 == 0)){
			A = "FizzBizz";
		}else{
			sum = sum + A;
		}}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'i' was not declared in this scope
   19 |         for(i=0;i<N;i++){
      |             ^
a.cc:25:13: error: 'i' was not declared in this scope
   25 |         for(i=0;i<N;i++){
      |             ^
a.cc:27:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   27 |                         A = "Fizz";
      |                             ^~~~~~
      |                             |
      |                             const char*
a.cc:29:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   29 |                         A = "Bizz";
      |                             ^~~~~~
      |                             |
      |                             const char*
a.cc:31:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   31 |                         A = "FizzBizz";
      |                             ^~~~~~~~~~
      |                             |
      |                             const char*
Language: C

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

/*vector<int> p(n);
cin >> p[i]*/

int main(){

    long long int n;
    long long 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<stdio.h>
int main(){
  int num,i ,sum =0;
  scanf("%d",&num);
  while(i<=num){
    i++
    if(!(i% 3 == 0 || i % 5 ==0)){
      sum = sum + i;
    }
  }
  printf("%d",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected ';' before 'if'
    6 |     i++
      |        ^
      |        ;
    7 |     if(!(i% 3 == 0 || i % 5 ==0)){
      |     ~~
Language: C

#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <string>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define Sort(a) sort(a.begin(), a.end())
const int INF = 1<<30;
const ll MOD = 1000000007;

int main(void) {

    int n; cin >> n;

    ll sum = 0;

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

int main(){
	ios_base::sync_with_stdio(false); 
	cin.tie(NULL); 
	cout.tie(NULL);
	
	int n;
	cin>>n;
	
	int arr[n], x = 1;
	for(int i = 0; i < n; i++){
		arr[i] = x;
		x++;
	}
	
	long long sum = 0;
	for (int i=0; i<n; i++) 
    { 
        if ((i+1)%15 == 0)         
            continue;     
        else if ((i+1)%3 == 0)     
            continue;                  
        else if ((i+1)%5 == 0)                        
            continue;                  
        else             
            sum+=arr[i];                 
  
    } 
	cout<<sum<<endl;
	
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: expected '}' at end of input
   33 |         return 0;
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

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

inline int read()
{
	int sum=0,ff=1; char ch=getchar();
	while(!isdigit(ch))
	{
		if(ch=='-') ff=-1;
		ch=getchar();
	}
	while(isdigit(ch))
		sum=sum*10+(ch^48),ch=getchar();
	return sum*ff;
}

int n,m;

signed main()
{
	n=read();
	for ( int i=1;i<=n;i++ )
	{
		if(i%3==0||i%5==0) continue;
		m+=i;
	}
	printf("%lld\n",m);
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
int main()
{
    scanf("%d",&n);
    ll ans=0;
    for(int i=1;i<=n;i++)
    {
        if(i%3==0||i%5==0) continue;
        ans+=i;
    }
    printf("%lld\n",ans);
}


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

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

int main()
{
    int n;
    cin >> n;
    vector<char> a(n);
    for (int i = 0; i < n; i++)
    {
        a[i] = i + 1;
    }
    vector<int> b(n);
    for (int i = 0; i < n; i++)
    {
        if (a[i] % 15 == 0)
            b[i] = 0;
        else if (a[i] % 3 == 0)
            b[i] = 0;
        else if (a[i] % 5 == 0)
            b[i] = 0;
        else
            b[i] = i + 1;
    }
    cout << accumulate(b.begin(), b.end(), 0) << 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++

int main() {
	int N;
 	cin >> N;
	
    cout << (N + 1) * N / 2.0 - (N / 3 * 3 + 3) * (N / 3) / 2.0 - (N / 5 * 5 + 5) * (N / 5) / 2.0 + (N / 15 + 15) * (N / 15) / 2.0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> N;
      |         ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << (N + 1) * N / 2.0 - (N / 3 * 3 + 3) * (N / 3) / 2.0 - (N / 5 * 5 + 5) * (N / 5) / 2.0 + (N / 15 + 15) * (N / 15) / 2.0 << endl;
      |     ^~~~
a.cc:5:135: error: 'endl' was not declared in this scope
    5 |     cout << (N + 1) * N / 2.0 - (N / 3 * 3 + 3) * (N / 3) / 2.0 - (N / 5 * 5 + 5) * (N / 5) / 2.0 + (N / 15 + 15) * (N / 15) / 2.0 << endl;
      |                                                                                                                                       ^~~~
Language: C

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

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

int N;

void solve() {
	int i,j,k,l,r,x,y; string s;
	ll ret=0;
	cin>>N;
	
	for(i=1;i<=N;i++) {
		if(i%3==0) continue;
		if(i%5==0) continue;
		ret+=i;
	}
	cout<<ret<<endl;
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); solve(); 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

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	string Fizz;
	string Bizz;
	string FizzBizz;


	int sum = 0;
	int A = 0;
	for(i=0;i<N;i++){
		A = A + 1;
	}


	//出力
	for(i=0;i<N;i++){
		if((A%3 ==0) && (A%5 != 0)){
			A = Fizz;
		}else if((A%3 !=0) && (A%5 == 0)){
			A = Bizz;
		}else if((A%3 ==0) && (A%5 == 0)){
			A = FizzBizz;
		}else{
			sum = sum + A;
		}}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'i' was not declared in this scope
   19 |         for(i=0;i<N;i++){
      |             ^
a.cc:25:13: error: 'i' was not declared in this scope
   25 |         for(i=0;i<N;i++){
      |             ^
a.cc:27:29: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   27 |                         A = Fizz;
      |                             ^~~~
      |                             |
      |                             std::string {aka std::__cxx11::basic_string<char>}
a.cc:29:29: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   29 |                         A = Bizz;
      |                             ^~~~
      |                             |
      |                             std::string {aka std::__cxx11::basic_string<char>}
a.cc:31:29: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   31 |                         A = FizzBizz;
      |                             ^~~~~~~~
      |                             |
      |                             std::string {aka std::__cxx11::basic_string<char>}
Language: C

#include <stdio.h>
 
int main(void){
  
  int N;
  char str[9]
  int i,sum;
  
  fgets(str,sizeof str,stdin)
  sscanf(str,"%d",&N);
  
  sum = 0;
  
  for(i = 1;i <= N;i++){
    
    if(i % 3 == 0 && i % 5 ==0){
      
      continue;
      
    }
    
    else if(i % 3 == 0){
      
      continue;
      
    }
    
    else if(i % 5 == 0){
      
      continue;
      
    }
    
    else{
      
      sum += i;
      
    }
    
  }
  
  printf("%d\n",sum);
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected ';' before 'int'
    6 |   char str[9]
      |              ^
      |              ;
    7 |   int i,sum;
      |   ~~~         
main.c:9:9: error: 'str' undeclared (first use in this function)
    9 |   fgets(str,sizeof str,stdin)
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:30: error: expected ';' before 'sscanf'
    9 |   fgets(str,sizeof str,stdin)
      |                              ^
      |                              ;
   10 |   sscanf(str,"%d",&N);
      |   ~~~~~~
Language: C

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

int main() {
  int N;
  int c=0;
  cin >> N;
  vector<int>Fizz(N,0);
  for(int i=0;i<N;i++){
    Fizz.at(i) = i+1;
  }
  for(int j=0;j<N;j++){
    if(Fizz.at(j) % 3 != 0 && Fizz.at(j) % 5 != 0){
      c += Fizz.at(j);
    }
  }
  cout << c << 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 <cstdio>
#include <cmath>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
using namespace std;
typedef long long ll;
 
int main() {
  ll n,q,r,s;
  cin>>n;
  q=n/15;
  r=n%15;
  s=(q)*(60+60+15*8*(q-1))/2;
  if(r==0){
    s=(q)*(60+60+15*8*(q-1))/2;
  }
  if(r==1){
    s+=15*q+1;
  }
  if(r==2 || r==3){
    s+=15*q*2+1+2;
  }
  if(r==4 || r==5 || r==6){
    s+=15*q*3+1+2+4;
  }
  if(r==7){
    s+=15*q*4+1+2+4+7;
  }
  if(r==8 || r==9 || r==10){
    s=+15*q*5+1+2+4+7+8;
  }
  if(r==11 || r==12){
    s=+15*q*6+1+2+4+7+8+11;
  }
  if(r==13){
    s=+15*q*7+1+2+4+7+8+11+13;
  }
  if(r==14){
    s=+15*q*8+1+2+4+7+8+11+13+14;
  }
  cout<<s<<endl;
  return 0;
}

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> N;
      |         ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << (N + 1) * N / 2 - (N / 3 * 3 + 3) * (N / 3) / 2 - (N / 5 * 5 + 5) * (N / 5) * 2 + (N / 15 + 15) * (N / 15) / 2 << endl;
      |     ^~~~
a.cc:6:127: error: 'endl' was not declared in this scope
    6 |     cout << (N + 1) * N / 2 - (N / 3 * 3 + 3) * (N / 3) / 2 - (N / 5 * 5 + 5) * (N / 5) * 2 + (N / 15 + 15) * (N / 15) / 2 << endl;
      |                                                                                                                               ^~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
  int N;
  cin >> N;
  int sum_all=N(N+1)/2;
  int s3=N/3;
  int s5=N/5;
  int s15=N/15;
  int sum3=3(3**s3-1)/2;
  int sum5=5(5**s5-1)/4;
  int sum15=15(15**s15-1)/14;
  int sum_o=sum3+sum5-sum15;
  cout << sum_all-sum_o << endl;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'N' cannot be used as a function
   10 |   int sum_all=N(N+1)/2;
      |               ~^~~~~
a.cc:14:16: error: invalid type argument of unary '*' (have 'int')
   14 |   int sum3=3(3**s3-1)/2;
      |                ^~~
a.cc:14:21: error: expression cannot be used as a function
   14 |   int sum3=3(3**s3-1)/2;
      |                     ^
a.cc:15:16: error: invalid type argument of unary '*' (have 'int')
   15 |   int sum5=5(5**s5-1)/4;
      |                ^~~
a.cc:15:21: error: expression cannot be used as a function
   15 |   int sum5=5(5**s5-1)/4;
      |                     ^
a.cc:16:19: error: invalid type argument of unary '*' (have 'int')
   16 |   int sum15=15(15**s15-1)/14;
      |                   ^~~~
a.cc:16:25: error: expression cannot be used as a function
   16 |   int sum15=15(15**s15-1)/14;
      |                         ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<=num+1;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <bits/stdc++.h>

using namespace std;
int main(void) {
 long long int n,sum=0;cin>>n;
  for(int i=1;i<n+1;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;

int main() {
  int N;
  int c=0;
  cin >> N;
  vector<int>Fizz(N,0);
  for(int i=0;i<N;i++){
    Fizz.at(i) = i+1;
  }
  for(int j=0;j<N;j++){
    if(Fizz.at(j) % 3 != 0 || Fizz.at(j) % 5 != 0){
      c += Fizz.at(j);
    }
  }
  cout << c << 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

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

Compiler output:
Main.java:8: error: ';' expected
      for(int i = 1;i i<=n; i++){
                     ^
Main.java:8: error: not a statement
      for(int i = 1;i i<=n; i++){
                       ^
Main.java:8: error: ')' expected
      for(int i = 1;i i<=n; i++){
                          ^
Main.java:8: error: ';' expected
      for(int i = 1;i i<=n; i++){
                               ^
4 errors
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=1;i<=num+1;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |   scnaf("%d",&N);
      |   ^~~~~
      |   scanf
Language: C++

#include<cstdio>
#define ll long long
using namespace std;

int main() {
	ll k = 0; ll ans = 0;
	scanf_s("%lld", &k);
	
	for (ll i = 1; i <= k; i++) {
		if (i % 5 != 0 && i % 3 != 0) {
			ans = ans + i;
		}


	}
	printf("%lld", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%lld", &k);
      |         ^~~~~~~
      |         scanf
Language: C++

//FizzBuzz

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	int sum = 0;
	int ai = 0;
	for(i=0;i<N;i++){
		ai = ai + 1
	}


	//出力
	for(i=0;i<N;i++){
		if((ai%3 ==0) && (ai%5 != 0)){
			ai = Fizz
		}else if((ai%3 !=0) && (ai%5 == 0)){
			ai = Bizz
		}else if((ai%3 ==0) && (ai%5 == 0)){
			ai = FizzBizz
		}else{
			sum = sum + ai
		}}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'i' was not declared in this scope; did you mean 'ai'?
   14 |         for(i=0;i<N;i++){
      |             ^
      |             ai
a.cc:15:28: error: expected ';' before '}' token
   15 |                 ai = ai + 1
      |                            ^
      |                            ;
   16 |         }
      |         ~                   
a.cc:20:13: error: 'i' was not declared in this scope; did you mean 'ai'?
   20 |         for(i=0;i<N;i++){
      |             ^
      |             ai
a.cc:22:30: error: 'Fizz' was not declared in this scope
   22 |                         ai = Fizz
      |                              ^~~~
a.cc:24:30: error: 'Bizz' was not declared in this scope
   24 |                         ai = Bizz
      |                              ^~~~
a.cc:26:30: error: 'FizzBizz' was not declared in this scope
   26 |                         ai = FizzBizz
      |                              ^~~~~~~~
a.cc:28:39: error: expected ';' before '}' token
   28 |                         sum = sum + ai
      |                                       ^
      |                                       ;
   29 |                 }}
      |                 ~
Language: C

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

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

#include <iostream>
#include <vector>
using namespace std; using P=pair<int,int>; using ll=long long;
const ll m = 1e9+7;

int main2() {
	string s; cin>>s;
  if (s[0] == '7' || s[1]=='7' || s[2]=='7') cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

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

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(){
int n; cin >> n;
if(n%5 == 0 && n%3 == 0) cout << "FizzBuzz";
if(n%3 == 0) cout << "Fizz";
if(n%5 == 0) cout << "Buzz";

return 0;
}

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

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


Compiler output:
Main.java:8: error: > or ',' expected
    for(long i = 1;i=<N;i++){
                       ^
1 error
Language: C

//FizzBuzz

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	int sum = 0;
	int ai = 0;
	for(i=0;i<N;i++){
		ai = ai + 1
	}


	//出力
	for(i=0;i<N;i++){
		if((ai%3 ==0) && (ai%5 != 0)){
			ai = Fizz
		}else if((ai%3 !=0) && (ai%5 == 0)){
			ai = Bizz
		}else if((ai%3 ==0) && (ai%5 == 0)){
			ai = FizzBizz
		}else{
			sum = sum + ai
		}}

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

int main() {
	int64_t N = 0,s = 0,t = 0,u = 0;
	cin >> N;
    s = N / 3;
    t = N / 5;
    u = N / 15;
    cout << (N * (N + 1) / 2) - (s * (3 * (s + 1)) / 2) - (t * (5 * (t + 1)) / 2) + (u * (15 * (u + 1)) / 2) << 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())
S = 0
for i in range(1, N+1):
    if i%3==0 or i%5==0 or (i%3==0 and i%5==0):
        continue
    S+=i
print(S)

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 a[1000006];
int main()
{
    long long n, i, j, s =0,s1=0;
    cin >> n;
    //cout<<s<<endl;
     for (i = 1;i<=n; i++)
    {
      if(i%3==0)
      {
        a[i]=1;
      }else if(i%5==0)
      {
        a[i]=1;
      }
    }
    for(i=1;i<=n;i++)
    {
        if(a[i]==0)
        {
            s=s+i;
        }
    }
    cout<<s<<endl;
    return 0;

}

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

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

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

long ans,bai3=0,bai5=0,bai15=0 ;
int  i ;

ans = 0;
if((N/2)==0){
bai3 = ((N/3)+1)*N/2;
bai5 = ((N/5)+1)*N/2;
bai15 = ((N/15)+1)*N/2;}
else{
bai3 = ((N/3)+1)*N/2-(N/2+1);
bai5 = ((N/5)+1)*N/2-(N/2+1);
bai15 = ((N/15)+1)*N/2-(N/2+1);}

if((N/2)==0){
ans = (N+1)*N/2;}
else{
ans = (N+1)*N/2-(N/2+1);}
/*for(i=3;i<=N;i+=3){
bai3 += i;
}
for(i=5;i<=N;i+=5){
bai5 += i;}
for(i=15;i<=N;i+=15){
bai15 += i;}
*/
ans -= bai3+bai5;
ans += bai15;

cout << ans ;

return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:39:10: error: expected '}' at end of input
   39 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

//FizzBuzz

//lucky7

#include<iostream>
using namespace std;

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	int sum = 0;
	int ai = 0;
	for(i=0;i<N;i++){
		ai = ai + 1
	}


	//出力
	for(i=0;i<N;i++){
		if((ai%3 ==0) && (ai%5 != 0)){
			ai = Fizz
		}else if((ai%3 !=0) && (ai%5 == 0)){
			ai = Bizz
		}else if((ai%3 ==0) && (ai%5 == 0)){
			ai = FizzBizz
		}else{
			sum = sum + ai
		}}

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

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

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

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

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Long num = sc.nextLong();
      	Long sum = 0L;
		for(Long i = 0L; i < num; i++){
          if(i % 3 == 0){
            }else{
            if(i % 5 == 0){
            }else{
            sum = sum + i;
          }
        }
      System.out.println(sum);
        }
	}


Compiler output:
Main.java:18: error: reached end of file while parsing
	}
	 ^
1 error
Language: C

#include<iostream>
using namespace std

int main(){
int n; cin >> n;
if(n%3) cout << "Fizz";
else if(n%5) cout << "Buzz";
else cout << "FizzBuzz"

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;
  
  int x = 0;
  
  for (int i = 1; i < N; i++) {
    int j = i % 3, k = i % 5;
    if (j != 0 && k != 0) {
    x += i; 
    }
  }
  cout << x << 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<cmath>
#include<map>
#include<cstdlib>
#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<set>
#include<stack>
#include<bitset>
#include<functional>
#include<ctime>
#include<queue>
#include<deque>
#include<complex>
#include<cassert>
using namespace std;
#define pb push_back
#define pf push_front
typedef long long lint;
typedef complex<double> P;
#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
//問題文および制約はちゃんと確認しよう！
//サイズは10^5じゃなくて2×10^5とかかもしれないし、重要な制約・条件を見落としているかも
//とりあえずサンプルを読んでから解法を考えよう？
int main()
{
	int n;lint out=0;
	cin>>n;
	REP(i,1,n+1){
		if(i%3>0 && i%5>0) out+=i;
	}
	cout<<out<<endl;
}


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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>

int main(void){
  
  int N;
  int i,sum;
  
  scnaf("%d",&N);
  
  sum = 0;
  
  for(i = 1;i <= N;i++){
    
    if(i % 3 == 0 && i % 5 ==0){
      
      continue;
      
    }
    
    else if(i % 3 == 0){
      
      continue;
      
    }
    
    else if(i % 5 == 0){
      
      continue;
      
    }
    
    else{
      
      sum += i;
      
    }
    
  }
  
  printf("%d\n",sum);
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |   scnaf("%d",&N);
      |   ^~~~~
      |   scanf
Language: C

//FizzBuzz

//lucky7

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	int sum = 0;
	int ai = 0;
	for(i=0;i<N;i++){
		ai = ai + 1
	}


	//出力
	for(i=0;i<N;i++){
		if((ai%3 ==0) && (ai%5 != 0)){
			ai = Fizz
		}else if((ai%3 !=0) && (ai%5 == 0)){
			ai = Bizz
		}else if((ai%3 ==0) && (ai%5 == 0)){
			ai = FizzBizz
		}else{
			sum = sum + ai
		}}

	cout << sum << 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 <bits/stdc++.h>

using namespace std;

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

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

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

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

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


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

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

int main()
{
  long long n,a[1000000];
  vector<string> b; 
  int sum=0;
  cin>>n;
  
  for(int i=0;i<n;i++)
  {
    a[i]=i+1;
    if(a[i]%3==0 && a[i]%5==0)
    {
      b.push_back("FizzBuzz");
     // b[i]="FizzBuzz";
      
    }
    else if(a[i]%3==0)
    {
    b.push_back("Fizz");
     //b[i]="Fizz";
    }
    else if(a[i]%5==0)
    {
        b.push_back("Buzz");
     // b[i]="Buzz";
    }
    else
    {
    string s=to_string(i+1);
      b.push_back(s);
     // b[i]=to_string(i);
    }

  }
   
   for(int i=0;i<n;i++)
   {
     
     if(b[i]=="FizzBuzz" || b[i]=="Fizz" || b[i]=="Buzz")
     {
         continue;
     }
     else
     {
        sum+=a[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;
  queue<int> a;
  for(int i=0;i<N;i++){
if(i%3!=0&&i%5!=0){
  a.push(i);
}
    int sum=0;
    while(!a.empty()) {
      
         sum+= a.front();
      a.pop();
    }
    cout<<sum<<endl;
  }
  
	
    
 
  



Compiler output:
a.cc: In function 'int main()':
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextInt();
        //int b = sc.nextInt();
        double temp = 0;
        for(double i=1; i <= a ; i++) {
            if( !(i%3 == 0 || i%5 == 0 || i%15 == 0)){
                temp = temp + i;
            }
        }
        System.out.println(ceil(temp));

    }
}

Compiler output:
Main.java:14: error: cannot find symbol
        System.out.println(ceil(temp));
                           ^
  symbol:   method ceil(double)
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
  int N;
  cin>>N;
  queue<int> a;
  for(int i=0;i<N;i++){
if(i%3!=0&&i%5!=0){
  a.push(i);
}
    int sum=0;
    while(!a.empty()) {
      
         sum+= a.front();
      a.pop();
    }
    cout<<sum<<endl;
  
  
	
    
 
  



Compiler output:
a.cc:4:3: error: expected initializer before 'int'
    4 |   int N;
      |   ^~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>N;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'for'
    7 |   for(int i=0;i<N;i++){
      |   ^~~
a.cc:7:15: error: 'i' does not name a type
    7 |   for(int i=0;i<N;i++){
      |               ^
a.cc:7:19: error: 'i' does not name a type
    7 |   for(int i=0;i<N;i++){
      |                   ^
Language: C

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

Compiler output:
main.c:1:13: 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;

// sum of multiples of a upto N
int sumOfMultiple(int a, int N){
    int m=N/a;
    return ans=a*m*(m+1)/2;
}

int main(){
    int N;
    cin>>N;
    ll sum=sumOfMultiple(1,N);
    sum-=sumOfMultiple(3,N);
    sum-=sumOfMultiple(5,N);
    sum+=sumOfMultiple(15,N);
    cout<<sum<<endl;
}


Compiler output:
a.cc: In function 'int sumOfMultiple(int, int)':
a.cc:9:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     return ans=a*m*(m+1)/2;
      |            ^~~
      |            abs
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected primary-expression before '}' token
   11 |   }
      |   ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int F = N/15;
  int B = N%15;
  int Wa; //最終的にSumを表示。
  
  if (B==0){
    Wa = 60*F*F-60*F+60*F;
    cout << Sum << endl;
  }
  else{
  for (int i=0;i<B;i++){
    if ((i+1) % 3 == 0 || (i+1) % 5 == 0){
    continue;
    }
    else{
      Wa += 15*F+i+1;
    }
  }
  Wa += 60*F*F-60*F+60*F;
  cout << Sum <<endl;
  }

}


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

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

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

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

int main() {
  vector<int> vec(N,0);
for (int i = 0; i < N; i++) {
    
    if(i%3==0||i%5==0){

    }else{
        cin >> vec.at(i);
    }
    int sum =0;
    for(i<N;i++){
        sum+=vec.at(i);
    }
    cout<<sum<<endl; 
}

  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'N' was not declared in this scope
    5 |   vector<int> vec(N,0);
      |                   ^
a.cc:14:16: error: expected ';' before ')' token
   14 |     for(i<N;i++){
      |                ^
      |                ;