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

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

int main() {
    vector<int> l(5) = {105, 135, 165, 189, 195};
    int N;
    cin >> N;
    int cnt = 0
    i = 0;
    while (i < 5) {
        if (l[i] <= N ) {
            cnt++
            i++
        }
        else {
            break;
        }
    }
    cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before '=' token
    8 |     vector<int> l(5) = {105, 135, 165, 189, 195};
      |                      ^
a.cc:12:5: error: expected ',' or ';' before 'i'
   12 |     i = 0;
      |     ^
a.cc:13:12: error: 'i' was not declared in this scope
   13 |     while (i < 5) {
      |            ^
a.cc:15:18: error: expected ';' before 'i'
   15 |             cnt++
      |                  ^
      |                  ;
   16 |             i++
      |             ~
Language: C++

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

int main() {
    vector<int> l(5) = <105, 135, 165, 189, 195>;
    int N;
    cin >> N;
    int cnt = 0
    i = 0;
    while (i < 5) {
        if (l[i] <= N ) {
            cnt++
            i++
        }
        else {
            break;
        }
    }
    cout << cnt << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before '=' token
    8 |     vector<int> l(5) = <105, 135, 165, 189, 195>;
      |                      ^
a.cc:12:5: error: expected ',' or ';' before 'i'
   12 |     i = 0;
      |     ^
a.cc:13:12: error: 'i' was not declared in this scope
   13 |     while (i < 5) {
      |            ^
a.cc:15:18: error: expected ';' before 'i'
   15 |             cnt++
      |                  ^
      |                  ;
   16 |             i++
      |             ~
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  int ans = 0;
  if(N==105) ans = 1;
  else if(N>105){
    ans = 1;
    int cnt = 0;
    rep(i,106,N){
      int j = 1;
      while(j<=N){
        if(i%j==0) cnt++; 
        j++;
      }
      if(cnt==8) ans++; 
      cnt = 0;
    }
  }
  
  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:23: error: expected '}' at end of input
   25 |   cout << ans << endl;
      |                       ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = (ll)1e9 + 7;  
int main(){
  int n;
  cin >> n;

    int s = 0;
    for (int _max = n;_max >0; _max--)
    {          
        int c=1;
        for (int i = 1; i <= _max/2; i++)
        {
            if(_max%i==0){
                c++;
            }
        }
        if(c==8&&_max%2==1) s++;
    }
    cout << s;
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected '}' at end of input
   21 |     cout << s;
      |               ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

#include <stdio.h>

int main(void)｛
int n,p=0;
scanf("%d",&n);

if(n>=195)｛
p=5;
｝else if(n>=189)｛
p=4;
｝else if(n>=165)｛
p=3;
｝else if(n>=135)｛
p=2;
｝else if(n>=105)｛
p=1;
｝
printf("%d\n",p);
return 0;
｝

Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected declaration specifiers before '\U0000ff5b'
    3 | int main(void)｛
      |               ^~
main.c:5:1: error: expected declaration specifiers before 'scanf'
    5 | scanf("%d",&n);
      | ^~~~~
main.c:7:1: error: expected declaration specifiers before 'if'
    7 | if(n>=195)｛
      | ^~
main.c:9:1: error: expected declaration specifiers before '\U0000ff5delse'
    9 | ｝else if(n>=189)｛
      | ^~~~~~
main.c:11:1: error: expected declaration specifiers before '\U0000ff5delse'
   11 | ｝else if(n>=165)｛
      | ^~~~~~
main.c:13:1: error: expected declaration specifiers before '\U0000ff5delse'
   13 | ｝else if(n>=135)｛
      | ^~~~~~
main.c:15:1: error: expected declaration specifiers before '\U0000ff5delse'
   15 | ｝else if(n>=105)｛
      | ^~~~~~
main.c:17:1: error: unknown type name '\U0000ff5d'
   17 | ｝
      | ^~
main.c:18:8: error: expected declaration specifiers or '...' before string constant
   18 | printf("%d\n",p);
      |        ^~~~~~
main.c:18:15: error: unknown type name 'p'
   18 | printf("%d\n",p);
      |               ^
main.c:19:1: error: expected declaration specifiers before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected declaration specifiers before '\U0000ff5d'
   20 | ｝
      | ^~
Language: C

#include<stdio.h>

int main(void){
  int N;
  scanf("%d", &N);
  if(N >= 105)｛
     if(N >= 135){
       if(N >= 165){
         if(N >= 189){
           if(N >= 195){
             printf("5\n");
           }
           else{
             printf("4\n");
           }
         }
         else{
           printf("3\n");
         }
       }
       else{
         printf("2\n");
       }
     }
     else{
       printf("1\n");
     }
   ｝
  else{
    printf("0\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: '\U0000ff5b' undeclared (first use in this function)
    6 |   if(N >= 105)｛
      |               ^~
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: expected ';' before 'if'
    6 |   if(N >= 105)｛
      |                 ^
      |                 ;
    7 |      if(N >= 135){
      |      ~~
Language: Java

import java.util.Scanner;
public class at{
   public static void main(String[] args){
     int n = new Scanner(System.in).nextInt();
     int i, j;
     int ans=0, temp=0;
     for(i=1;i<=n;i+=2){
       for(j=1;j<=i;j++){
         if(i%j==0){
           temp++;
         }
       }
       if(temp==8){
         ans++;
       }
       temp=0;
     }
     System.out.println(ans);
   }
}


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

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<numeric>
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
bool isDigit(char c){return '0' <= c && c <= '9';}
template<typename T> void remove(std::vector<T>& vector, unsigned int index){vector.erase(vector.begin() + index);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

signed main(){
    SPEED;
    int n;
    cin >> n;
    int ans;
    if(105<=n&&n<135)ans = 1;
    else if(135<=n&&n<165)ans = 2;
    else if(165<=n&&n<189)ans = 3;
    else if(189<=n&&n<195)ans = 4;
    else if(<=195)ans = 5;
    else ans = 0;
    cout << ans << endl;
    //105,135,,165,189,195
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:13: error: expected primary-expression before '<=' token
   41 |     else if(<=195)ans = 5;
      |             ^~
Language: C++

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<numeric>
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
bool isDigit(char c){return '0' <= c && c <= '9';}
template<typename T> void remove(std::vector<T>& vector, unsigned int index){vector.erase(vector.begin() + index);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

signed main(){
    SPEED;
    int n;
    cin >> n;
    int ans;
    if(105<=n&&n<135)ans = 1;
    else if(135<=n&&n<165)ans = 2;
    else if(165<=n&&n<189)ans = 3;
    else if(189<=n&&n<195)ans = 4;
    else i(<=195)ans = 5;
    else ans = 0;
    cout << ans << endl;
    //105,135,,165,189,195
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:12: error: expected primary-expression before '<=' token
   41 |     else i(<=195)ans = 5;
      |            ^~
a.cc:41:10: error: 'i' was not declared in this scope
   41 |     else i(<=195)ans = 5;
      |          ^
a.cc:42:5: error: 'else' without a previous 'if'
   42 |     else ans = 0;
      |     ^~~~
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 rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n;
  cin>>n;
  
  int ans=0;
  for(int i=1;i<=n;i++){
    int cnt=0;
    for(int j=1;j<=i;j++){
      if(i%j==0)cnt++;
}

  if(cnt==8)ans++;
  }
  cout<<ans<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:25:19: error: expected '}' at end of input
   25 |   cout<<ans<<endl;
      |                   ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//約数の個数を求める関数
 long long int divisor(int num1){  
    vector<int> sum(num1+1);
	int num2 = num1;
    long long int ans=1;
	for(long long int i=2;i<=num1;i++){
        while(num2%i==0){
		sum[i]++;
		num2/=i;
        }
    }
	for(long long int i=2;i<=num1;i++)ans*=sum[i]+1;
	return ans;
}
//ここからサンプル
int main(){
    int N,K=0;
    cin >> N;
  if(N%2==0)N--;
  for(int i=N;i>0;i-=2){
   if(8==divisor(N))K++;
  }
  cout << K << endl;
}
}

Compiler output:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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


int main(){
  int N;
  cin >> N;
  int cnt=0;
  for(int i=1; i<=N; i++){
    for(int j=1; j<i; j++){
      if(i%j==0) cnt++;
    }
  
  }
  cout << cnt << endl;

  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << cnt << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << cnt << endl;
      |                  ^~~~
Language: C++

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


int main(){
  int N;
  cin >> N;
  int cnt=0;
  for(int i=1; i<=N; i++){
    for(int j=1; j<i; j++){
      if(i%j==0) cnt++;
    }
  
  }
  cout << cnt << endl;

  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << cnt << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << cnt << endl;
      |                  ^~~~
Language: C++

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


int main(){
  int N;
  cin >> N;
  int cnt=0;
  for(int i=1; i<=N; i++){
    for(int j=1; j<i; j++){
      if(i%j) cnt++;
    }
  
  }
  cout << cnt << endl;

  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << cnt << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << cnt << endl;
      |                  ^~~~
Language: C++

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

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main()
{int n;
 cin >> n ;
 
 int count = 0;
 
 if (n >= 105) count++;
 if (n >= 135) count++;
 if (n >= 189) count++;
 
 cout < count << endl;
  
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   31 |  cout < count << endl;
      |         ~~~~~~^~~~~~~
Language: C++

using namespace std;
int main() {
	int a;
	cin >> a;
	int answer = 0;
	for (int C = 1; C <= a; C += 2) {
		int divisors = 0;
		for (int X = 1; X <= C; ++X) {
			if (C % X == 0) {
				divisors;
			}
		}
		if (divisors == 8) {
			++answer;
		}
	}
	cout << answer << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << answer << '\n';
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>
int main(void){
  int n;
  scanf("%d",&n);
  if(n<104){
    printf("0");
  }
  else if(n<164){
    printf("1");
  }
  else if(n<188){
    printf("2");
  }
  else if(n<194){
    printf("3");
  else{
    printf("4");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '}' before 'else'
   16 |   else{
      |   ^~~~
a.cc:14:17: note: to match this '{'
   14 |   else if(n<194){
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int ans=0;
  for(i=1;i<N;i+=2){
    int count =0;
    for(j=1;j<i;j++){
      if(i%j==0){
        count++;
      }
    }
    if(count == 8){
      ans++;
    }
  }
  cout << ans << endl;
}

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

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

int num(int x){
	int ret=0;
  for(int i=1;i*i<n;i++){
  if(x%i==0)ret++;
  }
  return ret;
}

int main(){
	int n;cin>>n;
  int ans=0;
  for(int i=1;i<=n;i+=2){
  if(num(i)==4)ans++;
  }
  cout<<ans<<ednl;
}

Compiler output:
a.cc: In function 'int num(int)':
a.cc:6:19: error: 'n' was not declared in this scope
    6 |   for(int i=1;i*i<n;i++){
      |                   ^
a.cc: In function 'int main()':
a.cc:18:14: error: 'ednl' was not declared in this scope
   18 |   cout<<ans<<ednl;
      |              ^~~~
Language: C++

#include <bits/stdc++.h>

std::vector<int> vec;
int n, ans=0;

int main() {
  std::cin >> n;
  for (int i = 1; i <= n; i++) {
    int c = 0;
    for (int j = 1; j*j <= i; j++) {
      if (i%j == 0) {
        c++;
        if (i/j != j) {
          c++;
        }
      }
    }
    if (c == 8) {
      ans++;
    }
  }
  std::cout << ans << std::endl;
}
  
}

Compiler output:
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>

using namespace std;
typedef long long ll;

int main(){
  int n;
  cin>>n;
  if(n<105)cout<<0<<endl;
  else if(n<135)cout<<1<<ndl;
  else if(n<165)cout<<2<<endl;
  else if(n<195)cout<<3<<endl;
  else cout<<4<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: 'ndl' was not declared in this scope
   20 |   else if(n<135)cout<<1<<ndl;
      |                          ^~~
Language: C++

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

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

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

    int i, j;
    int ans = 0;
    int yakusu = 0;
    for(i=1; i<=n; i++){
        yakusu=0;
        for(j=1; j<=i; j++){
            if(i%j==0){
                yakusu++;
            }
        }
        if(yakkusu==8){
            ans++;
        }
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: 'yakkusu' was not declared in this scope; did you mean 'yakusu'?
   25 |         if(yakkusu==8){
      |            ^~~~~~~
      |            yakusu
Language: C++

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

int main(){
  int n,sum=0; cin>>n;
  for(int i=1;i<n+1;i++){
    int sum2=0
    for(int j=1;j<i+1;j++){
      if(i%j==0) sum2++;
    }
    if(sum2==8 &&i%2==1) sum++
  }
  cout<<sum<<endl;
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'for'
    8 |     for(int j=1;j<i+1;j++){
      |     ^~~
a.cc:8:17: error: 'j' was not declared in this scope
    8 |     for(int j=1;j<i+1;j++){
      |                 ^
a.cc:11:31: error: expected ';' before '}' token
   11 |     if(sum2==8 &&i%2==1) sum++
      |                               ^
      |                               ;
   12 |   }
      |   ~
Language: C++

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

int main(){
  int n,sum=0; cin>>n;
  for(int i=1;i<n+1;i++){
    int sum2=0
    for(int j=1;j<i+1;j++){
      if(i%j==0) sum2++;
    }
    i#include <bits/stdc++.h>
using namespace std;

int main(){
  int n,sum=0; cin>>n;
  for(int i=1;i<n+1;i++){
    int sum2=0
    for(int j=1;j<i+1;j++){
      if(i%j==0) sum2++;
    }
    if(sum2==8 &&i%2==1) sum++
  }
  cout<<sum<<endl;
}  f(sum2==8 &&i%2==1) sum++
  }#include <bits/stdc++.h>
using namespace std;

int main(){
  int n,sum=0; cin>>n;
  for(int i=1;i<n+1;i++){
    int sum2=0
    for(int j=1;j<i+1;j++){
      if(i%j==0) sum2++;
    }
    i#include <bits/stdc++.h>
using namespace std;

int main(){
  int n,sum=0; cin>>n;
  for(int i=1;i<n+1;i++){
    int sum2=0
    for(int j=1;j<i+1;j++){
      if(i%j==0) sum2++;
    }
    if(sum2==8 &&i%2==1) sum++
  }
  cout<<sum<<endl;
}  f(sum2==8 &&i%2==1) sum++
  }
  cout<<sum<<endl;
}  

  cout<<sum<<endl;
}  


Compiler output:
a.cc:11:6: error: stray '#' in program
   11 |     i#include <bits/stdc++.h>
      |      ^
a.cc:25:4: error: stray '#' in program
   25 |   }#include <bits/stdc++.h>
      |    ^
a.cc:35:6: error: stray '#' in program
   35 |     i#include <bits/stdc++.h>
      |      ^
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'for'
    8 |     for(int j=1;j<i+1;j++){
      |     ^~~
a.cc:8:17: error: 'j' was not declared in this scope
    8 |     for(int j=1;j<i+1;j++){
      |                 ^
a.cc:11:6: error: expected ';' before 'include'
   11 |     i#include <bits/stdc++.h>
      |      ^~~~~~~~
      |      ;
a.cc:14:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   14 | int main(){
      |         ^~
a.cc:14:9: note: remove parentheses to default-initialize a variable
   14 | int main(){
      |         ^~
      |         --
a.cc:14:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:11: error: a function-definition is not allowed here before '{' token
   14 | int main(){
      |           ^
a.cc:24:4: error: 'f' was not declared in this scope
   24 | }  f(sum2==8 &&i%2==1) sum++
      |    ^
a.cc:25:5: error: 'include' was not declared in this scope
   25 |   }#include <bits/stdc++.h>
      |     ^~~~~~~
a.cc:25:14: error: 'bits' was not declared in this scope
   25 |   }#include <bits/stdc++.h>
      |              ^~~~
a.cc:25:19: error: 'stdc' was not declared in this scope; did you mean 'std'?
   25 |   }#include <bits/stdc++.h>
      |                   ^~~~
      |                   std
a.cc:26:1: error: expected primary-expression before 'using'
   26 | using namespace std;
      | ^~~~~
a.cc:28:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   28 | int main(){
      |         ^~
a.cc:28:9: note: remove parentheses to default-initialize a variable
   28 | int main(){
      |         ^~
      |         --
a.cc:28:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:28:11: error: a function-definition is not allowed here before '{' token
   28 | int main(){
      |           ^
Language: C++

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

int main(){
  int n; cin>>n;
  int ans=0;
  for(int i=1;i<=n;i++){
    for(int p=1;p<=i;p++){
      if(n%p == 0){
        count++;
      }
    }
    if(count == 8){
      ans++;
    }
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: no post-increment operator for type
   10 |         count++;
      |              ^~
a.cc:13:14: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   13 |     if(count == 8){
      |        ~~~~~~^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n, counter, ans=0;
  cin >> n;
  for(int i=0;2*i+1<=n;i++){
    counter=0;
    for(int j=1; j<=2i+1;j++)
      if((2i+1)%j==0) counter++;
    if(counter==8)
      ans++;}
  cout << ans;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'int' and '__complex__ int' to binary 'operator<='
    8 |     for(int j=1; j<=2i+1;j++)
      |                  ~^~
      |                  |
      |                  int
a.cc:9:16: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator%'
    9 |       if((2i+1)%j==0) counter++;
      |          ~~~~~~^~
      |             |   |
      |             |   int
      |             __complex__ int
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n, counter, ans=0;
  cin >> n;
  for(int i=0;2i+1<=n;i++){
    counter=0;
    for(int j=1; j<=2i+1;j++)
      if((2i+1)%j==0) counter++;
    if(counter==8)
      ans++;}
  cout << ans;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<='
    6 |   for(int i=0;2i+1<=n;i++){
      |                   ^~~
      |                     |
      |                     int
a.cc:8:19: error: invalid operands of types 'int' and '__complex__ int' to binary 'operator<='
    8 |     for(int j=1; j<=2i+1;j++)
      |                  ~^~
      |                  |
      |                  int
a.cc:9:16: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator%'
    9 |       if((2i+1)%j==0) counter++;
      |          ~~~~~~^~
      |             |   |
      |             |   int
      |             __complex__ int
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>

#define INT_MAX 2147483647

int main(void){
    int N;
    scanf("%d", &N);
    int j;
    int count = 0;
    for(j=1; j<=N; j++) {
        int H[201] = {0};
        int x = j;
        int i = 3;
        while(i <= x && i != 1) {
            if(i % 2 != 0) {
                if(x % i == 0) {
                    H[i]++;
                    x = x / i;
                }
                else{
                    i++;
                }
            }
            else{
                i++;
            }
        }

        int sum = 1;
        for(i=1; i <= j; i++){ 
            if(H[i] != 0) {
                sum *= H[i] + 1;
            }
        }
        if(j % 2 != 0 ) {
            if(sum == 8) {
                count++;
        }
    }
    printf("%d\n", count);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:46:1: error: expected declaration or statement at end of input
   46 | }
      | ^
Language: C++

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


 int judge(int i){
   int sum=0;
   for(int j=1;j<i;j++)
   {
     if(i%j==0)
       sum++;
   }
     if(sum==8)retrun 1;
     else retrun 0;
 }
   int main(){
     int n;cin>>n;
     int ans=0;
     for(int i=1;i<n;i+=2)
       ans+=judge(i);
     cout<<ans<<endl;
   }
     


Compiler output:
a.cc: In function 'int judge(int)':
a.cc:14:16: error: 'retrun' was not declared in this scope
   14 |      if(sum==8)retrun 1;
      |                ^~~~~~
a.cc:15:11: error: 'retrun' was not declared in this scope
   15 |      else retrun 0;
      |           ^~~~~~
a.cc:16:2: warning: no return statement in function returning non-void [-Wreturn-type]
   16 |  }
      |  ^
Language: C++

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


 int judge(int i){
   int sum=0;
   for(int j=1;j<i;j++)
   {
     if(i%j==0)
       sum++;
   }
     if(sum==8)
       retrun 1;
     else
       retrun 0;
 }
   int main(){
     int n;cin>>n;
     int ans=0;
     for(int i=1;i<n;i+=2)
       ans+=judge(i);
     cout<<ans<<endl;
   }
     


Compiler output:
a.cc: In function 'int judge(int)':
a.cc:15:8: error: 'retrun' was not declared in this scope
   15 |        retrun 1;
      |        ^~~~~~
a.cc:17:8: error: 'retrun' was not declared in this scope
   17 |        retrun 0;
      |        ^~~~~~
a.cc:18:2: warning: no return statement in function returning non-void [-Wreturn-type]
   18 |  }
      |  ^
Language: C++

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


 int judge(int i){
   int sum=0;
   for(int j=1;j<i;j++)
   {
     if(i%j==0)
       sum++;
     if(sum==8)
       retrun 1;
     else
       retrun 0;
   }
 }
   int main(){
     int n;cin>>n;
     int ans=0;
     for(int i=1;i<n;i+=2)
       ans+=judge(i);
     cout<<ans<<endl;
   }
     


Compiler output:
a.cc: In function 'int judge(int)':
a.cc:14:8: error: 'retrun' was not declared in this scope
   14 |        retrun 1;
      |        ^~~~~~
a.cc:16:8: error: 'retrun' was not declared in this scope
   16 |        retrun 0;
      |        ^~~~~~
a.cc:18:2: warning: no return statement in function returning non-void [-Wreturn-type]
   18 |  }
      |  ^
Language: C++

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


 int judge(int i){
   int sum=0;
   for(int j=1;j<i;j++)
   {
     if(i%j==0)
       sum++;
     if(sum==8)
       retrun 1;
     else
       retrun 0;
   }
   int main(){
     int n;cin>>n;
     int ans=0;
     for(int i=1;i<n;i+=2)
       ans+=judge(i);
     cout<<ans<<endl;
   }
     


Compiler output:
a.cc: In function 'int judge(int)':
a.cc:14:8: error: 'retrun' was not declared in this scope
   14 |        retrun 1;
      |        ^~~~~~
a.cc:16:8: error: 'retrun' was not declared in this scope
   16 |        retrun 0;
      |        ^~~~~~
a.cc:18:12: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 |    int main(){
      |            ^~
a.cc:18:12: note: remove parentheses to default-initialize a variable
   18 |    int main(){
      |            ^~
      |            --
a.cc:18:12: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:14: error: a function-definition is not allowed here before '{' token
   18 |    int main(){
      |              ^
a.cc:24:5: error: expected '}' at end of input
   24 |    }
      |     ^
a.cc:7:18: note: to match this '{'
    7 |  int judge(int i){
      |                  ^
a.cc:24:5: warning: no return statement in function returning non-void [-Wreturn-type]
   24 |    }
      |     ^
Language: C++

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


 int judge(int i){
   int sum=0;
   for(int j=1;j<i;j++)
   {
     if(i%j==0)
       sum++;
     if(sum==8)
       retrun 1;
     else
       retrun 0;
   }
   int main(){
     int n=0;cin>>n;
     int ans=0;
     for(int i=0;i<n;i++)
       ans+=judge(i);
     cout<<ans<<endl;
   }
     

Compiler output:
a.cc: In function 'int judge(int)':
a.cc:14:8: error: 'retrun' was not declared in this scope
   14 |        retrun 1;
      |        ^~~~~~
a.cc:16:8: error: 'retrun' was not declared in this scope
   16 |        retrun 0;
      |        ^~~~~~
a.cc:18:12: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 |    int main(){
      |            ^~
a.cc:18:12: note: remove parentheses to default-initialize a variable
   18 |    int main(){
      |            ^~
      |            --
a.cc:18:12: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:14: error: a function-definition is not allowed here before '{' token
   18 |    int main(){
      |              ^
a.cc:24:5: error: expected '}' at end of input
   24 |    }
      |     ^
a.cc:7:18: note: to match this '{'
    7 |  int judge(int i){
      |                  ^
a.cc:24:5: warning: no return statement in function returning non-void [-Wreturn-type]
   24 |    }
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  int i,j;
  int tmp = 0,ans = 0 ;
  for(i=1;i<n+1;i += 2){
    tmp = 0;
    for(j=1;j<i+1;j+=2){
      if(i % j == 0){
        tmp++;
      }
    }
    if(tmp  == 8){
      ans++
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected ';' before '}' token
   17 |       ans++
      |            ^
      |            ;
   18 |     }
      |     ~
Language: C++

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

int main(){
    int n;
    cin >> n;
    int ans = 0;
    for(int i = 1; i <= N; i += 2){
        int count = 0;
        for(int X = 1; X <= i; X++){
            if(i % X == 0){
                count++;
            }
        }
        if(count == 8){
            ans++;
        }
    }
    cout << ans << endl;
}

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

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
    int N;
    cin>>N;
    int i=4;
    if(N<105){
        i=0;
    }
    else if(N<135){
        i=1;
    }
    else if(N<165){
        i=2;
    }
    else if(N<195){
        i=3
    }
    cout << i << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected ';' before '}' token
   18 |         i=3
      |            ^
      |            ;
   19 |     }
      |     ~
Language: C

#include <stdio.h>

int main(void)
{
  int N;
  scanf("%d", &N);
  int ans = 0;
  if(N%2 > 0){
    if(N >= 105){
      ans++;
      if(N >= 135){
        ans++;
        if(N > = 189){
          ans++;
        }
      }
    }
  }
  printf("%d\n", ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:16: error: expected expression before '=' token
   13 |         if(N > = 189){
      |                ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i;
  cin>>i;
  
  if(i<105)
    cout<<"0"<<endl;
  else if(i<135)
    cout<"1"<<endl;
  else if(i<165)
    cout<<"2"<<endl;
  else if(i<135)
    cout<<"3"<<endl;
  else
    cout<<"4"<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout<"1"<<endl;
      |          ~~~^~~~~~
Language: C++

#include<iostteam>

using namespace std;

int main(){
  int i;
  cin>>i;
  
  if(i<105)
    cout<<"0"<<endl;
  else if(i<135)
    cout<"1"<<endl;
  else if(i<165)
    cout<<"2"<<endl;
  else if(i<135)
    cout<<"3"<<endl;
  else
    cout<<"4"<<endl;
  
  return 0;
}

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

ing namespace std;

int main()
{
  int n, i, j, ans = 0;
  cin >> n;
  for (i = 1; i <= n; i+=2) {
    int c = 0;
    for (j = 1; j <= i; j++) {
      if (i % j == 0)
        c++;
    }
    if (c == 8)
      ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc:1:1: error: 'ing' does not name a type; did you mean 'int'?
    1 | ing namespace std;
      | ^~~
      | int
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << ans << endl;
      |   ^~~~
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int N;
	cin >> N;
	int answer = 0;
	for (int C = 1; C <= N; C += 2) {
		int num_of_divisors = 0;
		for (int X = 1; X <= C; ++X) {
			if (C % X == 0) {
				++num_of_divisors;
			}
		}
		if (num_of_divisors == 8) {
			++answer;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:34: error: expected '}' at end of input
   15 |                         ++answer;
      |                                  ^
a.cc:14:43: note: to match this '{'
   14 |                 if (num_of_divisors == 8) {
      |                                           ^
a.cc:15:34: error: expected '}' at end of input
   15 |                         ++answer;
      |                                  ^
a.cc:7:41: note: to match this '{'
    7 |         for (int C = 1; C <= N; C += 2) {
      |                                         ^
a.cc:15:34: error: expected '}' at end of input
   15 |                         ++answer;
      |                                  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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

  	int t = 0;
  	for (int i = 3; i <= n; i += 2) {
      	int c = 0;
      	for (int j = 1; j <= n; j += 2) {
          	if (i % j == 0) {
              	c++
            }
        }
      	if (c == 8) {
          	t++;
        }
    }
  
  
  cout << t << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before '}' token
   14 |                 c++
      |                    ^
      |                    ;
   15 |             }
      |             ~
Language: C++

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

int main(){
  int N;
  cin>>N;
  if(N<105)
    cout<<0<<endl;
  else if(N<135)
    cout<<1<<endl;
  else if(N<165)
    cout<<2<<endl;
  else if(N<189)
    cout<<3<<endl;
  else if(N<195)
    cout<<4<<endl;
  else
    cout<<5<<endl;
    
    3 5 7 9 11 13 15
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: expected ';' before numeric constant
   20 |     3 5 7 9 11 13 15
      |      ^~
      |      ;
Language: C++

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

int main(){
  int N;
  cin>>N;
  if(N<104)
    cout<<0<<endl;
  else if(N<134)
    cout<<1<<endl;
  else if(N<164)
    cout<<2<<endl;
  else if(N<188)
    cout<<3<<endl;
  else if(N<194)
    cout<<4<<endl;
  else
    cout<<5<<endl;
    
    3 5 7 9 11 13 15
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: expected ';' before numeric constant
   20 |     3 5 7 9 11 13 15
      |      ^~
      |      ;
Language: C++

 #include "bits/stdc++.h"

using namespace std;

#define sp(x) cout<<setprecision(x);
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define all(a) (a).begin(), (a).end()
#define inf 10000000
#define linf INT64_MAX*0.99
#define print(s) cout<<(s)<<endl
#define lint long long
#define yes "Yes"
#define no "No"

typedef pair<int, int> P;
 
dir(int a){
    int cnt = 0;
    FOR(i,1,a+1){
        if(a%i==0) cnt++;
    }
    return cnt;
}
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n; cin>>n;
    int ans = 0;
    FOR(i,1,n+1){
        if(i%2==0) continue;
        else if(dir(i) == 8) ans++;
    }
    print(ans);
    return 0;
}

Compiler output:
a.cc:18:1: error: ISO C++ forbids declaration of 'dir' with no type [-fpermissive]
   18 | dir(int a){
      | ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,cnt=0,ans=0;
  cin >> n;
  for(int i=1; i<=n; i+=2) {
    cnt=0;
    for(int j=1; j<=i; j++) {
      if(i%j==0) {
        cnt++;
        if(cnt==8) {
          ans++;
        }
      }
    }
    cout << ans << endl;
}

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

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

template<typename T>
set<T> div_count(T x) {
  set<T> st;
  for (int i = 1; i * i <= x; ++i) {
    if (x % i == 0) {
      st.insert(i);
      st.insert(x/i);
    }
  }
  return st;
}

int main() {
  int n;
  cin >> n;
  ll ans = 0;  
  for (int i = 1; i <= n; ++i) {
    set<int> s = div_count(i);
    if (s.size() == 8) ans += 1;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'll' was not declared in this scope
   19 |   ll ans = 0;
      |   ^~
a.cc:22:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |     if (s.size() == 8) ans += 1;
      |                        ^~~
      |                        abs
a.cc:24:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: Java

import java.util.Scanner;

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

	int n = scan.nextInt();

	int ans = 0;
	for(int i = 1; i <= n; i += 2){
	    int count = 0;
	    for(int j = i; j >= 1; j--){
		if(i % j == 0){
		    count++;
		}
	    }
	    if(count == 8){
		ans++;
	    }
	}

	System.out.println(ans);
    }
}
import java.util.Scanner;

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

	int n = scan.nextInt();

	int ans = 0;
	for(int i = 1; i <= n; i += 2){
	    int count = 0;
	    for(int j = i; j >= 1; j--){
		if(i % j == 0){
		    count++;
		}
	    }
	    if(count == 8){
		ans++;
	    }
	}

	System.out.println(ans);
    }
}


Compiler output:
Main.java:25: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: C++

//105,135,165,195,189
#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  int ans=0;
  cin >> n;
  vector<int> da(5)={105,135,165,195,189};
  for(int i=0;i<5;i++){
    if(da[i]<=n)
      ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ',' or ';' before '=' token
    8 |   vector<int> da(5)={105,135,165,195,189};
      |                    ^
Language: C++

//105,135,165,195,189
#include < bits/stdc++.h>
using namespace std;
int main(){
  int n;
  int ans=0;
  cin >> n;
  vector<int> da(5)={105,135,165,195,189};
  for(int i=0;i<5;i++){
    if(da[i]<=n)
      ans++;
  }
  cout << ans << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin>>N;
  
  int ans=0;
  for(int i=1;i<N+1;i+=2){
    for(int j=1;j<i+1;j++){
      int count=0;
      if(i%j==0)
        count++;
    }
      if(count==8)
        ans++;
  }
  cout<<ans<<endl;
}
 
  


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   15 |       if(count==8)
      |          ~~~~~^~~
Language: C++

#include "pch.h"
#include<iostream>

using namespace std;

int main() {
	int N, count = 0;

	cin >> N;

	if (N >= 195) {
		count = 5;
	}
	else if (N >= 189) {
		count = 4;
	}
	else if (N >= 165) {
		count = 3;
	}
	else if (N >= 135) {
		count = 2;
	}
	else if (N >= 105) {
		count = 1;
	}

	cout << count << endl;
}

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

#include "pch.h"
#include<iostream>

using namespace std;

int main() {
	int N, count = 0;

	cin >> N;

	if (N >= 195) {
		count = 5;
	}
	else if (N >= 189) {
		count = 4;
	}
	else if (count >= 165) {
		count = 3;
	}
	else if (N >= 135) {
		count = 2;
	}
	else if (N >= 105) {
		count = 1;
	}

	cout << count << endl;
}

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

#include <iostream>
#include <vector>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int n;
  cin>>n;
  int d[]={2,3,5,7,11,13};
  vector<int> e(6,0);
  int cnt;
  int ans=0;
  REP(i,n){
    if((i+1)%2==0){
      continue;
    }
    origin = i+1;
    REP(j,6){
      while(origin%d[j]==0){
        origin /= d[j];
        e[j]++;
      }
    }
    REP(j,6){
      cnt *= e[j]+1;
    }
    if(cnt==8){
      ans++;
    }
    REP(j,6){
      e[j]=0;
    }
    cnt=1;
  }
  
  cout<<ans<<endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'origin' was not declared in this scope
   16 |     origin = i+1;
      |     ^~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <map>
using namespace std;
int main(){
	int N;
	cin >> N;
	int ans = 0
	if(N >= 105) ans++;
	if(N >= 165) ans++;
	cout <<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ',' or ';' before 'if'
   11 |         if(N >= 105) ans++;
      |         ^~
Language: C++

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

int main() {

	int ans = 0;
	int N; cin >> N;

	for(int i = 105; i <= N; i = i + 2){
		int count = 0;
		for (int div = 1; div <= i; div++) {
			if (i % div == 0) count++;
		}
		if (count == 8) ans++
    }
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:38: error: expected ';' before '}' token
   17 |                 if (count == 8) ans++
      |                                      ^
      |                                      ;
   18 |     }
      |     ~
Language: C++

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

int main(void){
    int N,cnt=0;
    cin>>N;

    for(int i=2;i<=N-1;i++){
        if(N%i==0)
            cnt++;
    }
    cout<<cnt<<endl;
    return 0;
}


Compiler output:
a.cc: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,cnt=0,ans=0;
  cin >> N;
  for (int i=0; i<N; i++) {
    if (N(i+1)%==0) {
      cnt++;
    }
  }
  if (cnt==8) {
    ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'N' cannot be used as a function
    8 |     if (N(i+1)%==0) {
      |         ~^~~~~
a.cc:8:17: error: expected primary-expression before '=' token
    8 |     if (N(i+1)%==0) {
      |                 ^
Language: C++

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

int main() {
  int N,cnt=0,ans=0;
  cin >> N;
  for (int i=0; i<N; i++) {
    if (N(i+1)i==0) {
      cnt++;
    }
  }
  if (cnt==8) {
    ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'N' cannot be used as a function
    8 |     if (N(i+1)i==0) {
      |         ~^~~~~
a.cc:8:15: error: expected ')' before 'i'
    8 |     if (N(i+1)i==0) {
      |        ~      ^
      |               )
Language: C

#include <stdio.h>

int main(){
    int n;scanf("%d",&n);
    if(n<105) printf("%d",0);
    else if(n<135) printf("%d",1)
    else if(n<165) printf("%d",2);
    else if(n<189) printf("%d",3);
    else if(n<195) printf("%d",4);
    else printf("%d",5);
    return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:6:34: error: expected ';' before 'else'
    6 |     else if(n<135) printf("%d",1)
      |                                  ^
      |                                  ;
    7 |     else if(n<165) printf("%d",2);
      |     ~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
int main(){
    int N;
    cin >> N;
    int ans;
    if(105 > N){
        ans = 0;
    }
    else if(135 > N){
        ans = 1;
    }
    else if(165 > N){
        ans = 2;
    }
    else if (189 > N){
        ans = 3;
    }
    else if (195 > N){
        ans = 4;
    }
    else{
      ans = 5;
    cout << ans << endl;

}

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

#include <bits/stdc++.h>
using namespace std ;
int main (){
int N;
  cin>>N;
  ans==0
  for (i=0;i<N,i++){
    if (i=105,135,189)
      ans=ans+1;
      else ans=ans;
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   ans==0
      |   ^~~
      |   abs
a.cc:7:12: error: 'i' was not declared in this scope
    7 |   for (i=0;i<N,i++){
      |            ^
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main (){
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int N,ans
    cin>>N;
    if(N<105) ans=0;
    else if(N<=134)ans=1;
    else if(N<=164)ans=2;
    else if(N<=188)ans=3;
    else if(N<=194)ans=4;
    else ans=5;
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>N;
      |     ^~~
a.cc:7:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     if(N<105) ans=0;
      |               ^~~
      |               abs
a.cc:8:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     else if(N<=134)ans=1;
      |                    ^~~
      |                    abs
a.cc:9:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     else if(N<=164)ans=2;
      |                    ^~~
      |                    abs
a.cc:10:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     else if(N<=188)ans=3;
      |                    ^~~
      |                    abs
a.cc:11:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     else if(N<=194)ans=4;
      |                    ^~~
      |                    abs
a.cc:12:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     else ans=5;
      |          ^~~
      |          abs
a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     cout<<ans<<endl;
      |           ^~~
      |           abs