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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected ';' before string constant
    7 |   scanf"%d",&N);
      |        ^~~~
      |        ;
main.c:7:15: error: expected statement before ')' token
    7 |   scanf"%d",&N);
      |               ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        BigInteger sum = new BigInteger("0");
        for(int i = 1; i <= N; i++){
            if((i%3!=0)&&(i%5!=0)){
                BigInteger t = new BigInteger(String.valueOf(i));
                sum = sum.add(t);
            }
        }
        System.out.print(sum);
    }

}


Compiler output:
Main.java:7: error: cannot find symbol
        BigInteger sum = new BigInteger("0");
        ^
  symbol:   class BigInteger
  location: class Main
Main.java:7: error: cannot find symbol
        BigInteger sum = new BigInteger("0");
                             ^
  symbol:   class BigInteger
  location: class Main
Main.java:10: error: cannot find symbol
                BigInteger t = new BigInteger(String.valueOf(i));
                ^
  symbol:   class BigInteger
  location: class Main
Main.java:10: error: cannot find symbol
                BigInteger t = new BigInteger(String.valueOf(i));
                                   ^
  symbol:   class BigInteger
  location: class Main
4 errors
Language: C++

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

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

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

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <array>
#include <atomic>
#include <chrono>
#include <codecvt>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
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; }
#define all(x) (x).begin(),(x).end()
#pragma GCC optimize("Ofast")
using namespace std;
typedef long long int ll;
typedef long double ld;
const ll INF=(1LL<<62);
const ld pi=acosl((ld)-1);
// const ll mod = 1000000007;
const ll mod = 1234567;
const int dx[4]={0,1,0,-1};
const int dy[4]={1,0,-1,0};
const int ddx[8]={1,0,-1,-1,-1,0,1,1};
const int ddy[8]={1,1,1,0,-1,-1,-1,0};
#define endn "\n"

bool solve(){
  ll n;cin>>n;
  ll ans=0;
  rep(i,n+1){
    if(i%3!=0 and i%5!=0)ans+=i;
  }
  cout<<ans<<endl;
  return false;
}

signed main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout<<fixed<<setprecision(30);
  solve();
}


Compiler output:
main.c:1:10: fatal error: cassert: No such file or directory
    1 | #include <cassert>
      |          ^~~~~~~~~
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 || i%5 == 0) {
      continue;
    }
    
    else {
      sun += i;
    }
  }
  
    
    cout << sum <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'sun' was not declared in this scope; did you mean 'sum'?
   17 |       sun += i;
      |       ^~~
      |       sum
Language: C++

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

int main() {
  int n, cf, cb, sum;
  cin >> n;
  sum = n * (n + 1) /2;
  for (int i = 0; i < N; i++) {
    if ((i % 3 == 0) || (i % 5 == 0))
      sum -= i;
    if (i % 15 == 0)
      sum += i;
  }
  cout << sum << endl;
}

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

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

int main() {
  int n, cf, cb, sum;
  cin >> n;
  sum = n * (n + 1) /2;
  for (int i = 0; i < N, i++) {
    if ((i % 3 == 0) || (i % 5 == 0))
      sum -= i;
    if (i % 15 == 0)
      sum += i;
  }
  cout << sum << endl;
}

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

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



    }


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

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



    }


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

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



    }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'n' was not declared in this scope
    6 |     for(int i=0;i<=n;i++){
      |                    ^
a.cc:8:13: error: 'sum' was not declared in this scope
    8 |             sum+=i;
      |             ^~~
a.cc:11:11: error: 'sum' was not declared in this scope
   11 |     cout<<sum<<endl;
      |           ^~~
Language: C

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

int main () {
  int n;
  cin >> n;
  long long sum = 0;
  rep(i, 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

n=int(input())

a=[]
s=[]

for i in range(1,n+1):

    if i % 15 == 0:

        a.append("FizzBuzz")

    elif i % 3 == 0:

        a.append("Fizz")

    elif i % 5 == 0:

        a.append("Buzz")

    else: s.append(i)

print(sum(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:3: error: expected expression before 'int'
    1 | n=int(input())
      |   ^~~
Language: C++

#include <bits/stdc++.h>

using namspace std;

typedef long long ll;

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

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll ans,n;
int main()
{
	cin>>n;
    for(int i=1;=<=n;i++)
     {
	ans=(n+1)*n/2;
    if(i%3==0)ans=ans-i;
    if(i%5==0)ans=ans-i;
    if(i%15==0)ans=ans+i;
}
cout<<ans;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '=' token
    8 |     for(int i=1;=<=n;i++)
      |                 ^
a.cc:8:18: error: expected primary-expression before '<=' token
    8 |     for(int i=1;=<=n;i++)
      |                  ^~
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; cin >> n; ans = 0;
    rep(i, n){
        if((i+1) % 3 != 0){
            if((i+1) % 5 != 0) 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;
int main(){
    int n;
    cin>>n;
    long long ans=0;
    for ( int i=1;i<=n;i++)
	{
        if (i%3!=0&&i%5!=0) 
        { 
	        ans+=i;
        }
	}
	cout<<ans;
    return 0;
}

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

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

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


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

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <map>
#include <cmath>
#include <bitset>
#include <string>
#include <queue>

using namespace std;

#define int long long
const int MOD = 1000000007;

int func(int x) {
    if(x % 3 == 0 || x % 5 == 0) return 0;
    return x;
}

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

    int ans = 0;
    for(int i = 1; i <= n; i++) {
        ans += func(i);
    }

    cout << ans << endl;
    return 0;15
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:16: error: expected ';' before '}' token
   32 |     return 0;15
      |                ^
      |                ;
   33 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:4: error: 'elde' undeclared (first use in this function)
   12 |    elde if(i%5==0){}
      |    ^~~~
main.c:12:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:8: error: expected ';' before 'if'
   12 |    elde if(i%5==0){}
      |        ^~~
      |        ;
Language: Java

package aBC162_2;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(Sysout.in);
		int N = sc.nextInt();
		int[] a = new int[N];
		int sum = 0;
		for (int i = 0; i < a.length; i++) {
			a[i] = i;
		}
		for (int i = 0; i < a.length; i++) {
			if (a[i] % 3 != 0 && a[i] % 5 != 0) {
				sum += a[i];
			}
		}
		System.out.println(sum);

	}

}


Compiler output:
Main.java:8: error: cannot find symbol
		Scanner sc = new Scanner(Sysout.in);
		                         ^
  symbol:   variable Sysout
  location: class Main
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:4: error: expected expression before 'else'
   10 |    else
      |    ^~~~
Language: C

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

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

    long long int sum = 0;

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

    cout << sum << endl;

    return 0;
}

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

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


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

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


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

#include<bits/stdc++.h>
using namespacestd;
int main(){
  int n,sum=0;
  vector<int>a;
  cin>>n;
  for(int i=1;i<=n;i++){
    if(i%3==0||i%5==0){
      a[i]=0;
    }
    else if(i%3==0&&i%5==0){
      a[i]=0;
    }
    else{
      a[i]=i;
    }
    sum+=a[i];
  }
  cout<<sum;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int>a;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int>a;
      |          ^~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:7: error: 'a' was not declared in this scope
    9 |       a[i]=0;
      |       ^
a.cc:12:7: error: 'a' was not declared in this scope
   12 |       a[i]=0;
      |       ^
a.cc:15:7: error: 'a' was not declared in this scope
   15 |       a[i]=i;
      |       ^
a.cc:17:10: error: 'a' was not declared in this scope
   17 |     sum+=a[i];
      |          ^
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout<<sum;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

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

  return 0;
}

// EOF


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

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

int main() {
   int N ;
  cin >> N ;
  int sum = 0 ;//合計用
  for(int i=0 ; i<N ; i++){
   if(N%3!=0 && N%5!=0){
     sum += N;
   }
  }
  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 INF 210000000
#define int long long

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



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

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

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


Compiler output:
a.cc:9:11: error: stray '\' in program
    9 |     if(!(i\5==0||i\3==0))sum+=i;
      |           ^
a.cc:9:19: error: stray '\' in program
    9 |     if(!(i\5==0||i\3==0))sum+=i;
      |                   ^
a.cc: In function 'int main()':
a.cc:9:11: error: expected ')' before numeric constant
    9 |     if(!(i\5==0||i\3==0))sum+=i;
      |         ~ ^~
      |           )
a.cc:9:32: error: expected ')' before ';' token
    9 |     if(!(i\5==0||i\3==0))sum+=i;
      |       ~                        ^
      |                                )
Language: C

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

int main() {
  int N;
  cin >>N;
  vector<int> vec(N);
  int a =1;
  for(int i=0;i < N;i++){
    vec[i] =a;
    a++;
  }
  int sum =0;
  for(int i =0;i < N;i++){
    if((vec[i] % 3 !=0) && (vec[i] % 5 !=0)){
      sum += vec[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;
  vector<int> vec(N);
  int a =1;
  for(int i=0;i < N;i++){
    vec[i] =a;
    a++;
  }
  int sum =0;
  for(int i =0;i < N;i++){
    if(vec[i] % 3 !=0 && vec[i] % 5 !=0){
      sum += vec[i];
    }
  }
  cout << sum << endl;
}


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

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

//省略形
#define rep(i,n) for(auto i=0; i<n ; ++i)
#define REP(i,a,b) for(auto i=a; i<b; ++i)
#define all(v) (v).begin() , (v).end()
using ll = long long;
using vi = vector<int>;
using vl = vector<ll>;
using vc = vector<char>;
using vs = vector<string>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
using vvc = vector<vector<char>>;
using pii = pair<int , int>;
using pll = pair<long long , long long>;

//よく使う定数
const int INF = 1e9;
const int MOD = 1e9+7;
//逆元
const int INV = 1e9+5;

//UnionFindTree
struct union_find{
  vector<int> data;
  union_find(int size) : data(size , -1) { }

  void merge(int x , int y){
    x = root(x); y = root(y);
    if(x == y) return;
    if(data[y] < data[x]) swap(x , y);
    data[x] += data[y];
    data[y] = x;
    return; 
  }

  bool same(int x , int y){
    x = root(x) , y = root(y);
    return x == y;
  }

  int root(int x){
    return data[x] < 0 ? x : (data[x] = root(data[x]));
  }

  int size(int x){
    return -data[root(x)];
  }
};

//プロトタイプ宣言
void faster(void);
template <class T>
T get_digent(T);
template <class T>
T POW(T , T);
template <class T>
T modpow(T , T , T);
bool is_palindrome(string);

//メモ
//最大公約数:__gcd　|　最小公倍数:__lcm
//回文は反転させて一致すればよい

int main(){
  faster();
  ll n,sum=0;
  cin >> n;
  sum = n*(n+1)/2;
  for(ll i=1;i<=n;i++){
    if(!(i%3)) sum -= i;
    if(!(i%5)) sum -= i;
    if(!(i%15)) sum += i;
  }
  cout << sum << endl;
}























//同期解除
void faster(void){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}

//桁数取得
template <class T>
T get_digent(auto x){
  string s;
  s = to_string(x);
  ll digent = s.size();
  return digent;
} 

//繰り返し自乗法
template <class T>
T POW(T x, T y){
  if(y==0) return 1;
  if(y%2 == 1){
    ll temp = POW(x,y-1);
    return (temp*x);
  }
  else{
    ll temp = POW(x,y/2);
    return temp*temp;
  }
} 

//繰り返し自乗法(剰余)
template <class T>
T modpow(T x , T y , T mod){
  if(y == 0) return 1;
  if(y%2 == 1){
    ll temp = modpow(x,y-1,mod);
    return temp*x%mod;
  }
  else{
    ll temp = pow_mod(x,y/2,mod);
    return temp*temp%mod;
  }
}

bool is_palindrome(string s){
    string t(s.rbegin(),s.rend());
    return s == t;
}

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

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

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

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

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

#include<bits/stdc++.h>
#define ull unsigned long long
using namespace std;
bool check(ull a){
    if(a%3==0 || a%5==0){
        return false;
    }
    return true;
}
int main(){
    ull a;
    for(ull i=1;i<=a;i++){
        if(check(i)){
            ans += i;
        }
        continue;
    }
    cout<<ans<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |             ans += i;
      |             ^~~
      |             abs
a.cc:18:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |     for(register int i=1;i<=n;i++)
      |                      ^
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     std::cout<<ans<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |     for(register int i=1;i<=n;i++)
      |                      ^
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     std:cout<<ans<<endl;
      |         ^~~~
      |         std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     std:cout<<ans<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bitd/stdc++.h>
int main()
{
    int n;
    long long ans=0;
    std::cin>>n;
    for(register int i=1;i<=n;i++)
        if(i%3!=0&&i%5!=0)
            ans+=i;
    std:cout<<ans<<endl;
    return 0;
}

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

#include<bits/stdc++.h>

using namespace std;

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


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

#include <stdio.h>
#include <vector>
using std::vector;

int main() {
	int n;
  	scanf("%d", &n);
  
  	vector<int> arr1;
  	for(int i=1; i<=n; i++) {
    	if(i%3 != 0 && i%5 != 0) {
        	arr1.push_back(i);
        }
    }
  
  	int total;
  	for(int i=0; i< arr1.size(); i++){
    	total += arr1.at(i);
    }
  
  	puts(total);
  
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   21 |         puts(total);
      |              ^~~~~
      |              |
      |              int
In file included from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include <stdio.h>
using std::vector;

int main() {
	int n;
  	scanf("%d", &n);
  
  	vector<int> arr1;
  	for(int i=1; i<=n; i++) {
    	if(i%3 != 0 && i%5 != 0) {
        	arr1.push_back(i);
        }
    }
  
  	int total;
  	for(int i=0; i< arr1.size(); i++){
    	total += arr1.at(i);
    }
  
  	puts(total);
  
  	return 0;
}

Compiler output:
a.cc:2:12: error: 'vector' has not been declared in 'std'
    2 | using std::vector;
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<int> arr1;
      |         ^~~~~~
a.cc:8:16: error: expected primary-expression before 'int'
    8 |         vector<int> arr1;
      |                ^~~
a.cc:11:17: error: 'arr1' was not declared in this scope
   11 |                 arr1.push_back(i);
      |                 ^~~~
a.cc:16:25: error: 'arr1' was not declared in this scope
   16 |         for(int i=0; i< arr1.size(); i++){
      |                         ^~~~
a.cc:20:14: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   20 |         puts(total);
      |              ^~~~~
      |              |
      |              int
In file included from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before '}' token
    8 |     if(i%3!=0&&i%5!=0) ans+=i
      |                              ^
      |                              ;
    9 |   }
      |   ~
Language: C

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

int main() {
  int n;
  cin >> n;
  long answer = 0;
  
  for(int i = 0; i < n; i++) {
    int x = 0;
    x = i + 1;
    if(x % 3 == 0 || x % 5 == 0){
      //何もしない
    }
    else {
      answer += x;
    }
  }
  cout << answer << endl;
}

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

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

int main() {
  int n;
  long answer = 0;
  cin >> n;
  int a[n];
  for(int i = 0; i < n; i++) {
    a[i] = i + 1;
    if(a[i] % 15 == 0) {
      answer += a[i];
    }
    else if(a[i] % 3 == 0 && !(a[i] % 15 == 0)) {
      answer += a[i];
    }
    else if(a[i] % 5 == 0 && !(a[i] % 15 == 0)) {
      answer += a[i];
    }
  }
  cout << answer << endl;
}

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

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

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


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

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

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


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

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

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


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

N =int(input())
S = 0
for i in range(N):
    if (i%3)!=0 and (i%5)!=0:
        S = 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:4: error: expected expression before 'int'
    1 | N =int(input())
      |    ^~~
Language: C++

#include "stdc++.h"

using namespace std;

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

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

	cout << ans;
}

Compiler output:
a.cc:1:10: fatal error: stdc++.h: No such file or directory
    1 | #include "stdc++.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
#define all(vec) vec.begin(), vec.end()
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
template <class T>
using V = vector<T>;
constexpr ll INF = (1LL << 30) - 1LL;
constexpr ll MOD = 998244353LL;
constexpr int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
template <class T>
void chmin(T &a, T b) { a = min(a, b); }
template <class T>
void chmax(T &a, T b) { a = max(a, b); }
void debug() { cerr << "ok" << endl; }
template <class T>
void printv(const vector<T> &v) {
    for (int i = 0; i < v.size(); i++) cout << v[i] << (i + 1 == v.size() ? '\n' : ' ');
}
template <class T>
void readv(vector<T> &v) {
    for (int i = 0; i < v.size(); i++) cin >> v[i];
}
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    cin >> n;
    ll res = 0;
    for (int i = 1; i <= n; i++) {
        if (i % 3 && i % 5) {
            res += i;
        }
    }
    cout << res << '\n';
}

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i=1; i<=N; ++i){
      |        ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

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

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

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


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

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

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


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

#include <iostream>

using namespace std;

int main()
{
 long long n,i,p=0;
 cin >> n;
 for(i=1;i<n+1;i++){
  if(i%3!=0 && i%5!=0) p=p+i; 
 }
 cout << p << endl;
 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.*;
class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        int ans = 0;
        for(int i=1;i<=n;i++){
        if(((i%3)!=0)&&((i%5)!=0))
        ans= ans+i;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        for(int i=1;i<=n;i++){
                       ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
        for(i=1;i<=n;i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
        for(i=1;i<=n;i++){
                ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
        for(i=1;i<=n;i++){
                   ^
  symbol:   variable n
  location: class Main
Main.java:7: error: cannot find symbol
        for(i=1;i<=n;i++){
                     ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
        if(((i%3)!=0)&&((i%5)!=0))
             ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
        if(((i%3)!=0)&&((i%5)!=0))
                         ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
        ans= ans+i;
                 ^
  symbol:   variable i
  location: class Main
7 errors
Language: C++

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

long FizzBuzz(int N){
    long sum=0;
    for(int i=1;i<=N;i++){
        if(i%15==0){
            continue;
        }
        else if(i%3==0){
            continue;
        }
        else if(i%5==0){
            continue;
        }
        else{
            sum+=i;
        }
    }
    return sum;
}

int main(){
     N; cin >> N;
    cout << FizzBuzz(N) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:6: error: 'N' was not declared in this scope
   24 |      N; cin >> N;
      |      ^
Language: C

#ライブラリの読み込み
import math

#変数の初期化
text = 0
count = 0

#入力値の格納
n = int(input())

#計算
while count < n:
    if (count % 3 != 0) and (count % 5 != 0):
        text = text + count
    count += 1

#表示
print(text)


Compiler output:
main.c:1:2: error: invalid preprocessing directive #\U000030e9\U000030a4\U000030d6\U000030e9\U000030ea\U0000306e\U00008aad\U0000307f\U00008fbc\U0000307f
    1 | #ライブラリの読み込み
      |  ^~~~~~~~~~~~~~~~~~~~
main.c:2:1: error: unknown type name 'import'
    2 | import math
      | ^~~~~~
main.c:4:2: error: invalid preprocessing directive #\U00005909\U00006570\U0000306e\U0000521d\U0000671f\U00005316
    4 | #変数の初期化
      |  ^~~~~~~~~~~~
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'text'
    5 | text = 0
      | ^~~~
main.c:8:2: error: invalid preprocessing directive #\U00005165\U0000529b\U00005024\U0000306e\U0000683c\U00007d0d
    8 | #入力値の格納
      |  ^~~~~~~~~~~~
main.c:11:2: error: invalid preprocessing directive #\U00008a08\U00007b97
   11 | #計算
      |  ^~~~
main.c:17:2: error: invalid preprocessing directive #\U00008868\U0000793a
   17 | #表示
      |  ^~~~
Language: C

#include <iostream.h>
using namespace std;

#define int long long

signed main()
{
    int i=0, j=0, ans=0;
    int n;
    cin>>n;

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

    cout<<ans<<endl;
    return 0;
}

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

#include <iostream>
using namespace std;

#define int long long

signed main()
{
    int i=0, j=0, ans=0;
    int n;
    cin>>n;

    for(i;i<n;i++){
        if((i%3)&&(i%5)){
            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

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

#define int long long

signed main()
{
    int i=0, j=0, ans=0;
    int n;
    cin>>n;

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

    cout<<ans<<endl;
    return 0;
}

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

#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, l, r) for (int i = (l); i < (r); i++)
#define ALL(x) (x).begin(), (x).end()     //昇順
#define RALL(x) (x).rbegin(), (x).rend()  // 降順
const long long mod = 1e9 + 7;
typedef long long ll;  // ll とdoubleは違う
typedef priority_queue<int> PQ;
typedef vector<long long> VL;
typedef vector<bool> VB;
typedef vector<int> VI;  // VI a(n);
typedef vector<double> VD;
typedef vector<string> VS;
typedef vector<char> VC;
typedef vector<VS> VSS;
typedef vector<VC> VCC;
typedef vector<VI> VII;  // VII a(n,vector<int>(m)) n * m
typedef vector<VL> VLL;
typedef pair<int, int> PII;
typedef map<int, int> MP;  // MP a;
typedef vector<pair<ll, ll>> PS;

template <class T, class U>  // chmax(max, a);
bool chmax(T &a, U b) {
  if (a <= b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T, class U>  // chmin(min,a)
bool chmin(T &a, U b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>  // operator << (cout,a);
ostream &operator<<(ostream &os, vector<T> &v) {
  os << "{";
  rep(i, (int)v.size()) { os << v[i] << (i < v.size() - 1 ? ", " : ""); }
  os << "}";
  return os;
}

// g++ -std=c++11 prac.cpp
     

int main() {
  ll x,y,z=0,k,n,m,h,w,ans=0,sum=0,Max=-1,Min=1e9+1;
  bool ok = true;
  string s,t,r;
  cin >> n;
  rep(i,n+1){
    if(i%3 != 0 && i%5 != 0){
      ans += i;
    }
  }
  cout << ans << endl;
  return 0;
}

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

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

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


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

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

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


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

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

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


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

#include <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>;
const ll INF = ll(1e18)+1;

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

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


import java.util.Scanner;

public class B {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        long N =stdIn.nextLong();

        long sum=0;

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

    }

}

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