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

#include<bits/stdc++.h>

using namespace std;

int main() {

	// freopen("input.txt", "r", stdin);
	// freopen("output.txt", "w", stdout);

	long long n, s = 0;
	cin >> n;
	for (int i = 1; i <= n; ++i) {
		if (i % 3 != 0 && i % 5 != 0) s += i;	
	}
	cout << s << '\n';
	return 0;
}

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

/*   ꧁༒☬महाकाल☬༒꧂ ꧁༒ঔमहाकालঔ༒꧂
                   
                   ঔৣ۝महाकालᴳᵒᵈ۝ঔৣ            
 
 */ 
#include<bits/stdc++.h>
using namespace std;
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
//template <typename T, typename cmp=less<T>> using oset =tree<T, null_type, cmp, rb_tree_tag, tree_order_statistics_node_update>;
#define ll long long 
#define mod 1000000007
#define inf 100000000000000000
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define _it iterator
#define all(_x) _x.begin(),_x.end()
#define f first
#define s second
#define pb push_back
void mahakal(){
	#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
	freopen("error.txt","w",stderr);
	#endif
}
int main(){
	//mahakal(),fast;
	
	ll n ;
	cin>> n ;
	ll sum=0;
	for(ll i=1;i<=n ;i++){
		if(i%3==0 || i%5==0){}
		else sum+=i;
	}

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

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

#include<iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<utility>
#include<cassert>
#include<complex>
#include<numeric>
using namespace std;

//#define int long long
typedef long long ll;

typedef unsigned long long ul;
typedef unsigned int ui;
ll mod = 1000000007;
const ll INF = mod * mod;
typedef pair<int, int>P;
#define stop char nyaa;cin>>nyaa;
#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
#define all(v) (v).begin(),(v).end()
typedef pair<ll, ll> LP;
typedef long double ld;
typedef pair<ld, ld> LDP;
const ld eps = 1e-12;
const ld pi = acos(-1.0);

ll mod_pow(ll a, ll n, ll m = mod) {
	ll res = 1;
	while (n) {
		if (n & 1)res = res * a%m;
		a = a * a%m; n >>= 1;
	}
	return res;
}

struct modint {
	ll n;
	modint() :n(0) { ; }
	modint(ll m) :n(m) {
		if (n >= mod)n %= mod;
		else if (n < 0)n = (n%mod + mod) % mod;
	}
	operator int() { return n; }
};
bool operator==(modint a, modint b) { return a.n == b.n; }
modint operator+=(modint &a, modint b) { a.n += b.n; if (a.n >= mod)a.n -= mod; return a; }
modint operator-=(modint &a, modint b) { a.n -= b.n; if (a.n < 0)a.n += mod; return a; }
modint operator*=(modint &a, modint b) { a.n = ((ll)a.n*b.n) % mod; return a; }
modint operator+(modint a, modint b) { return a += b; }
modint operator-(modint a, modint b) { return a -= b; }
modint operator*(modint a, modint b) { return a *= b; }
modint operator^(modint a, int n) {
	if (n == 0)return modint(1);
	modint res = (a*a) ^ (n / 2);
	if (n % 2)res = res * a;
	return res;
}

ll inv(ll a, ll p) {
	return (a == 1 ? 1 : (1 - p * inv(p%a, a)) / a + p);
}
modint operator/(modint a, modint b) { return a * modint(inv(b, mod)); }
const int max_n = 10000;
modint fact[max_n], factinv[max_n];
void init_f() {
	fact[0] = modint(1);
	for (int i = 0; i < max_n - 1; i++) {
		fact[i + 1] = fact[i] * modint(i + 1);
	}
	factinv[max_n - 1] = modint(1) / fact[max_n - 1];
	for (int i = max_n - 2; i >= 0; i--) {
		factinv[i] = factinv[i + 1] * modint(i + 1);
	}
}
modint comb(int a, int b) {
	if (a < 0 || b < 0 || a < b)return 0;
	return fact[a] * factinv[b] * factinv[a - b];
}

int dx[4] = { 0,1,0,-1 };
int dy[4] = { 1,0,-1,0 };


void solve() {
	ll ans = 0;
	int n; cin >> n;
	rep1(i, n) {
		if (i % 3 == 0 || i % 5 == 0)continue;
		ans += i;
	}
	cout << ans << "\n";
}


signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	//cout << fixed << setprecision(7);
	//init_f();
	//init();
	//int t; cin >> t; rep(i, t)solve();
	solve();
	stop
		return 0;
}


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

#include<iostream>
using namespace std;

long long sum(long long x){
    if(x == 0){
        return 0;
    }
    else if((x%3 == 0)||(x%5 == 0)){
        return sum(x - 1);
    }
    else{
        return x + sum(x - 1);
    }
}

int main(){
    long long n;
    cin >> n;
    cout << sum(n) << endl;
    return 0;
}

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

/*
   Created by Rahul Goel.
*/

#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <cmath>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>

using namespace std;
typedef long long ll;
ll mod = 1000000007;
const int INF = 1e9;
const ll LINF = 1e18;

#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define all(c) (c).begin(), (c).end()
#define pii pair < int, int >
#define vi vector < int >
#define vb vector < bool >
#define vvi vector < vector < int > >
#define vvb vector < vector < bool > >
#define vpii vector < pair < int, int > >
#define vvpii vector < vector < pair < int, int > > >
#define pb push_back
#define f first
#define s second
#define mp make_pair

int main(){
    fastio;
    
    ll n;
    cin >> n;
    ll sum = n*(n+1)/2;
    ll temp = 0;
    for(ll i=1; i<=n; i++)
        if(i%3 == 0 || i%5 == 0)
            temp += i;
    cout << sum - temp << endl;

    return 0;
}


Compiler output:
main.c:5:10: 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 seq=0
    for(long long i=0;i<n;i++)
    {
      if(i%3==0 || i%5==0 || i%15==0)
      	continue;
      else
        seq=seq+i;
    }
  cout<<seq<<endl;
  return 0;
}
  	

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

n=int(input())

a=[]
for i in range(n):
    if i%3==0 and i%5==0:
        a.append('FizzBuzz')
    elif i%3==0:
        a.append('Fizz')
    elif i%5==0:
        a.append('Buzz')
    else:
        a.append(i)

sum=0
for ai in a:
    if type(ai) is int:
        sum=sum+ai

print(sum)


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())
      |   ^~~
main.c:6:18: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    6 |         a.append('FizzBuzz')
      |                  ^~~~~~~~~~
main.c:8:18: warning: multi-character character constant [-Wmultichar]
    8 |         a.append('Fizz')
      |                  ^~~~~~
main.c:10:18: warning: multi-character character constant [-Wmultichar]
   10 |         a.append('Buzz')
      |                  ^~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  public static void main(String[] args) {
  	int n = in.nextInt();
    
    int sum = 0;
    for (int i = 1; i <= n; i++) {
      if (i % 3 == 0 || i % 5 == 0)
        continue;
      sum += i;
    }
    
    System.out.println(sum);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
  	int n = in.nextInt();
  	        ^
  symbol:   variable in
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ')' before 'i'
   10 |     if (i%15 != 0 && i%5 != 0 && i i%3 != 0) {
      |        ~                          ^~
      |                                   )
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ')' before 'i'
   10 |     if (i%15 != 0 && i%5 != 0 && i i%3 != 0) {
      |        ~                          ^~
      |                                   )
a.cc:13:8: error: expected ';' before '}' token
   13 |     i++
      |        ^
      |        ;
   14 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int a;
  cin >> a;
  int c=0;
  for (int i = 0; i < a; i++)
  {
    if (i%3!==0 && i%5==0)
    {
      c+=i;
    }
  }
  printf(c)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before '=' token
    9 |     if (i%3!==0 && i%5==0)
      |              ^
a.cc:14:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   14 |   printf(c)
      |          ^
      |          |
      |          int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:14:12: error: expected ';' before '}' token
   14 |   printf(c)
      |            ^
      |            ;
   15 | }
      | ~
Language: C++

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

int main () {

    int N;
    cin>>N;
    int sum=o;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'o' was not declared in this scope
    8 |     int sum=o;
      |             ^
a.cc:10:27: error: expected ';' before ')' token
   10 |     for (int i=1; i<=N,i++)
      |                           ^
      |                           ;
a.cc:12:19: error: expected ';' before 'i'
   12 |             sum ++ i;
      |                   ^~
      |                   ;
Language: C

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>
#include <random>
#include <cstdio>
#include <cmath>
#include <climits>
#include <map>
#include <queue>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int) n; i++)

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

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

#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);

    int N;
    cin>>N;

    int ans=0;
    for(int i=0;i<N;i++)
        if(i%3!=0 && i%5!=0)
            ans += i;

    printf("%d\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 namespace std;

int main(){

    int n;
    long long int ans=0;
    cin>>n;

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

        if(i%3!=0&&i%5!=0) ans+=i;

    }

    cout<<ans<<endl;



    return 0;
}

Compiler output:
main.c:1:9: 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 Main{

    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        long s = 0;
        for (int i = 1;i <= n;i ++){

            if (i % 3 != 0 && i # 5 != 0)
                s += i;
        }
        System.out.print(s);
    }
}

Compiler output:
Main.java:11: error: illegal character: '#'
            if (i % 3 != 0 && i # 5 != 0)
                                ^
1 error
Language: C

#include <bits/stdc++.h>
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) x.begin(), x.end()
#define endl "\n"
#define sz(x) (int)(x).size()
using namespace std;
typedef long long int lli;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;

int main() {

  #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    freopen("error.txt", "w", stderr);
  #endif

    ios::sync_with_stdio(0);
    cin.tie(0);

    ll n;
    cin >> n;
    ll sum = 0;
    for (ll i = 1; i <= n; i++) {
        if (i % 3 == 0 && i % 5 == 0)
            continue;
        else if (i % 3 == 0)
            continue;
        else if (i % 5 == 0)
            continue;
        else
            sum += i;
    }
    cout << sum << endl;
    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;
  scanf("%d",&n);
  if(n<1 || n>1000000)
  int local=0;
  int i;
  for(i = 0; i <= n; i++){
      if(i%3!=0 && i%5!=0){
        local += i;
      }
    }
  printf("%11d",local);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected expression before 'int'
    6 |   int local=0;
      |   ^~~
main.c:10:9: error: 'local' undeclared (first use in this function)
   10 |         local += i;
      |         ^~~~~
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

#define vi vector<int>
#define vii vector<int, int>
#define ll long long
#define pb push_back
#define mp make_pair
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

#ifdef LOCAL
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
  cerr << name << ": " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << ": " << arg1 << " |";
  __f(comma + 1, args...);
}
#else
#define trace(...) 42
#endif
const int MOD=1e9+7;

//////////////////////// code starts ///////////////////////

int main(){
    IOS;
    #ifdef LOCAL
        //freopen("input.txt", "r", stdin);
        //freopen("output.txt", "w", stdout);
    #endif
    int n;
    cin >> n;
    ll sum = 0;

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

    cout << sum << endl;

    #ifdef LOCAL
        cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
    #endif

    return 0;
}




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

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


Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected expression before '[' token
    8 | if(i%3!=0 || i%5!=0)[
      |                     ^
main.c:10:2: error: expected ';' before '}' token
   10 | ]
      |  ^
      |  ;
   11 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected '(' before '!' token
    7 |                 if!(i%3==0||i%5==0){
      |                   ^
      |                   (
Language: C

include<stdio.h>
int main(){
char n[4]
scanf("%s",&n)

  if(n[0] == 7 || n[1] == 7 || n[2] == 7){
    printf("Yes");
  }
  
  else{
    printf("No");
  }
  
  return 0;
}


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

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


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

#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<unordered_map>
#include<queue>
#include<stack>
#include<vector>

using namespace std;

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

    int f = n/3;
    int b = n/5;
    int fb = n/15;
    sum = n*(n+1)/2;
    sum -= 3*(f*(f+1)/2);
    sum -= 5*(b*(b+1)/2);
    sum += 15*(fb*(fb+1)/2);
    cout<<sum<<endl;

    return 0;
}


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

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

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

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

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

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

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

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

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <bits/stdc++.h>
      |         ^
main.c: In function 'main':
main.c:6:3: error: 'cin' undeclared (first use in this function)
    6 |   cin>>n;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:3: error: 'cout' undeclared (first use in this function)
   12 |   cout << s << endl;
      |   ^~~~
main.c:12:16: error: 'endl' undeclared (first use in this function)
   12 |   cout << s << endl;
      |                ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define LL long int
#define ULL unsigned long int
#define MOD (long int)10e9 + 7


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

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

    cout << ans << endl;

    return 0;
}

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

#include <bits/stdc++.h>

#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rep2(i, a, b) for (ll i = (a); i < (b); i++)
#define chmax(x, v) do { x = max(x, v); } while (0)
#define chmin(x, v) do { x = min(x, v); } while (0)
typedef uint64_t ull;
typedef int64_t ll;
typedef std::pair<ll, ll> PLL;

using namespace std;


signed main() {
  ll N, s=0;
  cin >> N;
  for (ll i=1; i<=N; i++) {
    if (i % 3 == 0) continue;
    if (i % 5 == 0) continue;
    s += i;
  }
  cout << s << endl;
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define be begin()
#define en end()
#define le length()
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < n; i++)
#define fastIO                        \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);                    \
    cout.tie(NULL)
#define c(a) cout << a << "\n";
#define endl '\n'
const int MOD = 1e9 + 7;
const int N = 1e6 + 6;
vector<ll> g[N];
int main()
{

    ll n;
    cin >> n;
    ll sum = n * (n + 1) / 2;
    ll p = n / 3;
    sum -= 3 * ((p * (p + 1)) / 2);
    p = n / 5;
    sum -= 5 * ((p * (p + 1)) / 2);
    p = n / 15;
    sum += 15 * ((p * (p + 1)) / 2);
    //sum += 15 * (n / 15);
    c(sum)

        return 0;
}

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

#include<iostream>
#include<algorithm>
#include<queue>
#include<cstring>
#include<cstdio>
#include<cmath>
#include<set>
#include<map>
#include<vector>

using namespace std;
const int maxn = 1e4 + 7;
const int inf = 0x3f3f3f3f;
const int mod = 1e9 + 7;
typedef long long ll;
#define pi 3.1415926535
// luxi

ll n, sum;
int main(){
	cin >> n;
	for(ll i = 1; i <= n; i++){
		if(i % 3 != 0 && i % 5 != 0){
			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 <cstdio>
#include <numeric>
#include <cmath>
#include <deque>
#include <iostream>
#include <set>
#include <algorithm>
#include <vector>
#include <array>
using i64 = long long;
using namespace std;

int main() {
  int n;
  cin >> n;
  i64 s = 0;
  for (int i = 1; i <= n; i++) {
    if (i % 3 == 0) continue;
    if (i % 5 == 0) continue;
    s += i;
  }
  cout << s <<  "\n";
}

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

#include <bits/stdc++.h>
 
#define int         long long
#define uint        unsigned int
#define ld          long double
#define showoff     ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define pb          push_back
#define pii         pair<int,int>
#define FOR(i,a,b)  for(int i=a;i<b;++i)
#define RFOR(i,a,b) for(int i=a;i>b;--i)
#define f           first
#define se          second
#define maxn        1000005
#define all(v)      v.begin(),v.end()
#define sz(x)       (int)x.size()
#define mod         1000000007
#define pqueue      priority_queue<int>
#define pdqueue     priority_queue< int,vector<int> ,greater< int >>
 
using namespace std;
 
 
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
 
int power(int a,int n)
{
    a %= mod;
    if(n == 1)return a;
    if(n == 0)return 1;
    if(n%2)return (a*(power((a*a)%mod,n/2)%mod))%mod;
    return power((a*a)%mod,n/2)%mod;
}
const int inf = (int) 1e18;
 
int inverse(int x){
    return power(x,mod-2)%mod;//little fermat....
}   

signed main()
{
    showoff;
    int n,tot = 0,c = 1,sum = 0;
    cin >> n;
    while(tot < n){
        if(c%3 && c%5)sum += c;
        tot++;
        c++;
    }
    cout << sum << "\n";
    return 0;
}
//*->for large size of matrix take int not long long if possible......
//*->always take maximum as inf for safer side ... 

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

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

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

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        String buf;
        int num;
        int ans;
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            buf = br.readLine();
            num = Integer.parseInt(buf);
            for(int i = 1; i <= num; i++){
                if (num % 3 == 0 || num % 5 == 0){
                    continue;
                }else{
                    ans += i;
                }
            }
            System.out.println(Integer.toString(ans));
        } catch(Exception e) {}
  }
}

Compiler output:
Main.java:18: error: variable ans might not have been initialized
                    ans += i;
                    ^
Main.java:21: error: variable ans might not have been initialized
            System.out.println(Integer.toString(ans));
                                                ^
2 errors
Language: Java

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        String buf;
        int num;
        int ans;
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            buf = br.readLine();
            num = Integer.parseInt(buf);
            for(int i = 1; i < =num; i++){
            if (num % 3 == 0 || num % 5 == 0){
                continue;
            }else{
                ans += i;
            }
            System.out.println(Integer.toString(ans));
        } catch(Exception e) {}
  }
}

Compiler output:
Main.java:14: error: illegal start of expression
            for(int i = 1; i < =num; i++){
                               ^
Main.java:21: error: 'catch' without 'try'
        } catch(Exception e) {}
          ^
Main.java:10: error: 'try' without 'catch', 'finally' or resource declarations
        try {
        ^
Main.java:23: error: reached end of file while parsing
}
 ^
4 errors
Language: C

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

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

#include<bits/stdc++.h>
using namespace std;
#define itn int
#define int long long
signed main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  itn n,sum=0;
  cin>>n;
  for(int i=1;i<=n;i++){
    if(i%3!=0&&i%5!=0) sum+=i;
  }
  cout<<sum<<"\n";
}

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++

long long sum(long long n){return n*(n+1)/2;}
int main(){
  int n;
  scanf("%d",&n);
  long long ans;
  ans=sum(n)-sum(n/3)*3-sum(n/5)*5+sum(n/15)*15;
  printf("%lld\n",ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d",&n);
      |   ^~~~~
a.cc:7:3: error: 'printf' was not declared in this scope
    7 |   printf("%lld\n",ans);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | long long sum(long long n){return n*(n+1)/2;}
Language: C

#include<iostream>
#include<vector>
#include<algorithm>
typedef long long int ll; 
using namespace std;

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

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

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

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

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

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

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


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

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



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

/*
	watch me go
*/
#pragma GCC optimize("O3")
//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define d long double
#define pii pair<int,int>
#define pb push_back
#define inf (int)1e18
#define init(x,a) memset(x,a,sizeof(x))
#define all(c) c.begin(),c.end()
int const mod=998244353;
int const mod1=1000000007;
int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
#define out(x) cout<<#x<<" = "<<" "<<x<<"\n";
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
 #define haha ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// *** Using PBDS ***
// typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
//              tree_order_statistics_node_update> 
//                 os; 
// *** Using PBDS ***
int modexp(int x1, int n){
	if(n==0){
		return 1;
	}
	else if(n&1){
		return (modexp((x1*x1)%mod, n/2)%mod * x1%mod)%mod;
	}
	else{
		return (modexp((x1*x1)%mod, n/2)%mod);
	}
}
 
int modinv(int n)
{
	return modexp(n,mod-2);
}
bool compare(pii a,pii b)
{
    return a.first<b.first;
}

struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};

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



Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:8:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

/*
	watch me go
*/
#pragma GCC optimize("O3")
//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define d long double
#define pii pair<int,int>
#define pb push_back
#define inf (int)1e18
#define init(x,a) memset(x,a,sizeof(x))
#define all(c) c.begin(),c.end()
int const mod=998244353;
int const mod1=1000000007;
#define x first
#define y second
int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
#define out(x) cout<<#x<<" = "<<" "<<x<<"\n";
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
 #define haha ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// *** Using PBDS ***
// typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
//              tree_order_statistics_node_update> 
//                 os; 
// *** Using PBDS ***
int modexp(int x1, int n){
	if(n==0){
		return 1;
	}
	else if(n&1){
		return (modexp((x1*x1)%mod, n/2)%mod * x1%mod)%mod;
	}
	else{
		return (modexp((x1*x1)%mod, n/2)%mod);
	}
}
 
int modinv(int n)
{
	return modexp(n,mod-2);
}
bool compare(pii a,pii b)
{
    return a.first<b.first;
}

struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};

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



Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:8:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

#include<iostream>
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)sum+=i;
  cout<<i;
  return 0;
    
}

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

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


Compiler output:
a.cc:2:18: error: expected ',' or ')', found "long"
    2 | #define rep(long long int, n) for (int i = 0; i < (n); ++i)
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i, n){
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i, n){
      |   ^~~
Language: C++

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

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

    cin >> N;

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

    cout << ans;

    return 0;
}

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

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

typedef unsigned long long ull;
typedef long long ll;
typedef long double ld; 


#define F first
#define S second
#define pob pop_back
#define pb push_back
#define Time()	cerr << clock() * 1000 / CLOCKS_PER_SEC << "ms\n"
#define show(x)	cerr << #x << " = " << (x) << '\n'
#define inf 1e14
#define FASTER ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define invec(v) for(auto& x : v)cin>>x;
#define Test int T;cin>>T;while(T--)
#define vec vector<ll> 
#define REP(i,j,k) for(int i=(j);(i)<(k);(i)++)
#define phi ((1+sqrt(5))/2)
#define endl '\n'



int main(){
	size_t n;
	cin>>n;
	size_t ans=0,i;
	for(i=1;i<=n;i++){
		if(i%3==0 || i%5==0)continue;
		ans+=i;
	}
	cout<<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>
using namespace std;
void solve(){
	size_t n;
	cin>>n;
	size_t ans=0,i;
	for(i=1;i<=n;i++){
		if(i%3==0 || i%5==0)continue;
		ans+=i;
	}
	cout<<ans;
	
}



int main(){
	solve();
}


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

n=int(input())
l=[]
for i in range(n):
    if i%3==0:
        pass
    elif i%5==0:
        pass
    elif i%15==0:
        pass
    else:
        l.append(i)
        
print(sum(l))


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

n=int(input())
l=[]
for i in range(n):
    if i%3==0:
        pass
    elif i%5==0:
        pass
    elif i%15==0:
        pass
    else:
        l.append(i)
        
print(sum(l))

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

#include<iostream>
using namespace std;

int main(){
  long long int N;
  cin  >> N;
  long long int sum = 0;

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

  cout << sum << endl;

  return 0;
}


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


public class Main
{
	public static void main(String[] args) {
		String line = StdIn.readLine();
      	int N = String.parseInt(line);
      	int sum = 0;
      	for (int i = 0; i <= N; i++){
        	if (! i%3 == 0) & (! i%5 == 0){
            	sum += i;
            }
        }
      	System.out.println(sum);
	}
}

Compiler output:
Main.java:9: error: illegal start of expression
        	if (! i%3 == 0) & (! i%5 == 0){
        	                ^
Main.java:9: error: ';' expected
        	if (! i%3 == 0) & (! i%5 == 0){
        	                              ^
2 errors
Language: Java

	public static void main(String[] args) {
		String line = StdIn.readLine();
      	int N = String.parseInt(line);
      	int sum = 0;
      	for (int i = 0; i <= N; i++){
        	if ((i%3 != 0) & (i%5 != 0)){
            	sum += i;
            }
        }
      	System.out.println(sum);
	}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class Solution
{
	public static void main(String[] args) {
		String line = StdIn.readLine();
      	int N = String.parseInt(line);
      	int sum = 0;
      	for (int i = 0; i <= N; i++){
        	if (! i%3 == 0) & (! i%5 == 0){
            	sum += i;
            }
        }
      	System.out.println(sum);
	}
}

Compiler output:
Main.java:8: error: illegal start of expression
        	if (! i%3 == 0) & (! i%5 == 0){
        	                ^
Main.java:8: error: ';' expected
        	if (! i%3 == 0) & (! i%5 == 0){
        	                              ^
2 errors
Language: Java

public class Solution
{
	public static void main(String[] args) {
		String line = StdIn.readLine();
      	int N = String.parseInt(line);
      	int sum = 0;
      	for (int i = 0; i <= N; i++){
        	if (! i%3 == 0) & (! i%5 == 0){
            	sum += i;
            }
        }
      	System.out.println(sum)
	}
}

Compiler output:
Main.java:8: error: illegal start of expression
        	if (! i%3 == 0) & (! i%5 == 0){
        	                ^
Main.java:8: error: ';' expected
        	if (! i%3 == 0) & (! i%5 == 0){
        	                              ^
Main.java:12: error: ';' expected
      	System.out.println(sum)
      	                       ^
3 errors
Language: C

#include <bits/stdc++.h>
using namespace std;
//useful library
int long long gcd(int long long a, int long long b){
    return b?gcd(b,a%b):a;
} //最大公約数
int long long lcm(int long long a, int long long b){
    return a/gcd(a,b)*b;
} //最小公倍数
int long long GetDigit(int long long num){
    int long long digit=0;
    while(num!=0){
        num /= 10;
        digit++;
    }
    return digit;
} //桁数
int long long GetDigitN(int long long num, int long long N){
    int long long digit=0;
    while(num!=0){
        num /= N;
        digit++;
    }
    return digit;
} //十進数でnumの際のN進数における桁数

int main(){
    int long long N, ans;
    cin >> N;
    for(int i = 1; i <= N; i++){
        if((i % 15 == 1) || (i % 15 == 2) || (i % 15 == 4) || (i % 15 == 7) || (i % 15 == 8) || (i % 15 == 11) || (i % 15 == 13) || (i % 15 == 14)){
            ans = ans + i;
        }
    }
    cout << ans << endl;
    return 0;
}

// 1 + 2 + 4 + 7 + 8 + 11 + 13 + 14 = 60

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;
//useful library
int long long gcd(int long long a, int long long b){
    return b?gcd(b,a%b):a;
} //最大公約数
int long long lcm(int long long a, int long long b){
    return a/gcd(a,b)*b;
} //最小公倍数
int long long GetDigit(int long long num){
    int long long digit=0;
    while(num!=0){
        num /= 10;
        digit++;
    }
    return digit;
} //桁数
int long long GetDigitN(int long long num, int long long N){
    int long long digit=0;
    while(num!=0){
        num /= N;
        digit++;
    }
    return digit;
} //十進数でnumの際のN進数における桁数

int main(){
    int long long N, ans;
    cin >> N;
    for(int i = 1; i <= N; i++){
        if((i % 15 == 1) || (i % 15 == 2) || (i % 15 == 4) || (i % 15 == 7) || (i % 15 == 8) || (i % 15 == 11) (i % 15 == 13) || (i % 15 == 14)){
            ans = ans + i;
        }
    }
    cout << ans << endl;
    return 0;
}

// 1 + 2 + 4 + 7 + 8 + 11 + 13 + 14 = 60

Compiler output:
a.cc: In function 'int main()':
a.cc:31:112: error: expression cannot be used as a function
   31 |         if((i % 15 == 1) || (i % 15 == 2) || (i % 15 == 4) || (i % 15 == 7) || (i % 15 == 8) || (i % 15 == 11) (i % 15 == 13) || (i % 15 == 14)){
      |                                                                                                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
Language: C

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

typedef long long ll;
typedef pair<int, int> ii;

int n;
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    cin >> n;
    ll ans = 0;
    for (int i = 1; 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 <iostream>
using namespace std;

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

//なぜWA？


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

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

typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> ii;
typedef tuple<ll, ll, ll> iii;
typedef vector<ll> vi;
typedef vector<ii> vii;
typedef vector<iii> viii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
#define REP(i,n) for (ll i = 0; i < n; ++i)
#define REPR(i,n) for (ll i = n-1; i >= 0; --i)
#define FOR(i,m,n) for (ll i = m; i < n; ++i)
#define FORR(i,m,n) for (ll i = n-1; i >= m; --i)
#define FORE(x,xs) for (const auto& x : xs)
#define FORI(i,v) for (auto i = v.begin(); i != v.end(); i++)
#define ALL(v) v.begin(), v.end()
#define CHMIN(x,y) x = min(x, y)
#define CHMAX(x,y) x = max(x, y)

int N;

ll solve() {
    ll ret = 0;
    FOR (i, 1, N+1) {
        if (i % 3 != 0 && i % 5 != 0) ret += i;
    }
    return ret;
}

int main() {
    cin >> N;
    cout << solve() << endl;
}

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