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

#include <cstdio>
#include <iostream>

using namespace std;

int main(void) {
	int n, a, b;
	cin >> n >> a >> b;
	int ans = 0;
	for(int i = 1; i <= n; i++) {
		int sum = 0;
		int tmp = i;
		for(int j = 10000; j >= 1; j = j / 10) {
			sum += tmp / j;
			tmp = tmp - (tmp / j) * j;
		}
		if(a <= sum && sum <= b) {
			ans += i;
		}
	}
	cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:21:29: error: expected '}' at end of input
   21 |         cout << ans << endl;
      |                             ^
a.cc:6:16: note: to match this '{'
    6 | int main(void) {
      |                ^
Language: C++

#include <stdio.h>
int main ()

{
   int n,x1,x2,a,b,c,d,e,i,k,x;
   k=0;
   scanf("%d %d %d",&n,&x1,&x2);
   for(i=0;i<=n;i++)
   {
         a=i/pow(10,4);
         b=(i-a*pow(10,4))/pow(10,3);
         c=(i-a*pow(10,4)-b*pow(10,3))/pow(10,2);
         d=(i-a*pow(10,4)-b*pow(10,3)-c*pow(10,2))/pow(10,1);
         e=(i-a*pow(10,4)-b*pow(10,3)-c*pow(10,2))-d*pow(10,1);
         x=a+b+c+d+e;
         if(x>=x1 && x<=x2)
         {
          k=k+i;
         }

       }

       printf("%d",k);
       return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'pow' was not declared in this scope
   10 |          a=i/pow(10,4);
      |              ^~~
Language: C

    #include<bits/stdc++.h>
    using namespace std;
    int digitsum(int num)
    {
        int d,sum=0;
        while(num>0)
        {
            d=num%10;
            num=num/10;
            sum+=d;
        }
    return(sum);
    }
     
    int main()
    {
        int n,a,b,p;
        scanf("%d %d %d",&n,&a,&b);
        int i,s=0;
        for(i=1;i<=n;i++)
        {   p=digitsum(i);
            if(p>=a && p<=b)
            {
                s=s+i;
            }
        }
        printf("%d",s);
    }

Compiler output:
main.c:1:13: 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 digitsum(int num)
{
    int d,sum=0;
    while(num>0)
    {
        d=num%10;
        num=num/10;
        sum+=d;
    }
return(sum);
}

int main()
{
    int n,a,b;
    scanf("%d %d %d",&n,&a,&b);
    int i,s=0;
    for(i=1;i<=n;i++)
    {
        if(digitsum(i)>=a&&digitsum(i)<=b)
        {
            s=s+i;
        }
    }
    printf("%d",s);
}


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

#include<bits/stdc++.h>
using namespace std;
int digitsum(int num)
{
    int d,sum=0;
    while(num>0)
    {
        d=num%10;
        num=num/10;
        sum+=d;
    }
return(sum);
}

int main()
{
    int n,a,b;
    scanf("%d %d %d",&n,&a,&b);
    int i,j,k,s=0;
    for(i=1;i<=n;i++)
    {
        if(digitsum(i)>=a&&digitsum(i)<=b)
        {
            s=s+i;
        }
    }
    printf("%d",s);
}


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

#include<iostream>
#include<cmath>
#include<string>
using namespace std;

sum(int x)
{
  int b=10,s=0,i,q,ar[5],y;
  ar[0]=0;
  q=log10(x);
  if(q==log10(x))
  {
      y=log10(x)+1;
  }
  else
  {
     y=ceil(log10(x));
  }
  for(i=1;i<=y;i++)
  {
      ar[i]=((x%b)-ar[i-1])/(b/10);
      s=s+ar[i];
      b=b*10;
  }
  return s;
}

int main()
{
   int a,b,n,s=0,i;
   cin >> n >> a >> b;
   for(i=1;i<=n;i++)
   {
       if(sum(i)>=a&&sum(i)<=b)
       {
           s=s+i;
       }

   }
   cout << s;
   return 0;
}


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

#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<queue>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<complex>
#define INF 2147483647
#define llINF 9223372036854775807
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long

using namespace std;
int main(){
  int n,a,b;cin>>n>>a>>b;
  ll ans=0;
  for(int i=1;i<=n;i++){
    int num=i;
    int aa=0;
    while(num>0){
      aa+=num%10;
      num/=10;
    }
    if(aa>=a&&aa<=bb)
      ans+=i;
  }
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:19: error: 'bb' was not declared in this scope; did you mean 'b'?
   31 |     if(aa>=a&&aa<=bb)
      |                   ^~
      |                   b
Language: C++

# include <bits.stdc++.h>

inline int F ( int x )  {
	int sum ( 0 ) ;
	while ( x )  sum += x % 10, x /= 10 ;
	return sum ;
}

int main ( )  {

	int n, a, b ;
	std :: cin >> n >> a >> b ;
	
	int sum ( 0 ) ;

	for ( int i = 1 ; i <= n ; ++ i )  {
		if ( F ( i ) >= a && F ( i ) <= b )  {
			ans += i ;
		}
	}

	return ! printf ( "%d\n", ans ) ;
}


Compiler output:
a.cc:1:11: 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 , A , B ;
  cin >> N >> A >> B ;
  int S = 0 ;
  for (int i= 1 ; i < N + 1 ; ++i){
    int c = 0;
    for ( int j =0 ; j < 5 ; ++j){
      int d = i %10 ; 
        c = c + d ;
        i = 0.1 * ( i - d ) ;
    }
    if ( c >= A && c <= B ){
      S = S + c ;
    }
  }
cout << S << endl ;
  return 0 ;
}


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N , A , B ;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> N >> A >> B ;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'for'
    8 |   for (int i= 1 ; i < N + 1 ; ++i){
      |   ^~~
a.cc:8:19: error: 'i' does not name a type
    8 |   for (int i= 1 ; i < N + 1 ; ++i){
      |                   ^
a.cc:8:31: error: expected unqualified-id before '++' token
    8 |   for (int i= 1 ; i < N + 1 ; ++i){
      |                               ^~
a.cc:19:1: error: 'cout' does not name a type
   19 | cout << S << endl ;
      | ^~~~
a.cc:20:3: error: expected unqualified-id before 'return'
   20 |   return 0 ;
      |   ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

n, a, b = map(int, input().split())

ans = 0
for x in range(1,n+1):
    acc = 0
    for d in str(x):
        acc += int(d)
    if a <= acc and acc <= b : ans += x

print(ans)


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, a, b = map(int, input().split())
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

using int64 = long long;
const int64 INF = 1LL << 60;

int main()
{
  int N, A, B;
  cin >> N >> A >> B;
  int ret = 0;
  for(int i = 1; i <= N; i++) {
    string s = to_string(i)
    int sum = 0;
    for(auto &j : s) sum += j - '0';
    if(A <= sum && sum <= B) ret += i;
  }

  cout << ret << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: expected ',' or ';' before 'int'
   17 |     int sum = 0;
      |     ^~~
a.cc:18:22: error: 'sum' was not declared in this scope
   18 |     for(auto &j : s) sum += j - '0';
      |                      ^~~
a.cc:19:13: error: 'sum' was not declared in this scope
   19 |     if(A <= sum && sum <= B) ret += i;
      |             ^~~
Language: C++

#include <stdio.h>

void main() {
    int N, A, B;
    scanf("%d %d %d", &N, &A, &B);
    
    int ans=0;

    for (int i=1; i<=N; i++) {
        int c=0, t=i;
        for (int j=0; j<5; j++) c+=t%10, t/=10;
        if (A<=c && c<=B) ans+=i;
    }
    printf("%d\n", ans); 
}


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
Language: C

#include <stdio.h>

void main() {
    int N, A, B;
    scanf("%d %d %d", &N, &A, &B)!=3);
    
    int ans=0;

    for (int i=1; i<=N; i++) {
        int c=0, t=i;
        for (int j=0; j<5; j++) c+=t%10, t/=10;
        if (A<=c && c<=B) r+=i;
    }
    printf("%d\n", ans); 
}


Compiler output:
main.c: In function 'main':
main.c:5:37: error: expected ';' before ')' token
    5 |     scanf("%d %d %d", &N, &A, &B)!=3);
      |                                     ^
      |                                     ;
main.c:5:37: error: expected statement before ')' token
main.c:12:27: error: 'r' undeclared (first use in this function)
   12 |         if (A<=c && c<=B) r+=i;
      |                           ^
main.c:12:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

void main() {
    int N, A, B;
    if (scanf("%d %d %d", &N, &A, &B)!=3) {
        printf("The number of Input is unacceptable");
    }

    int ans=0;

    for (int i=0; i<=N; i++) {
        int digit_sum=0;
        int temp_N = i;

        for (int digit=4; digit>=0; digit--) {
            if (temp_N / pow(10, digit) != 0) {
                digit_sum += (temp_N / (int)pow(10, digit));
                temp_N = (temp_N % (int)pow(10, digit)); 
            } 
        }

        if (A<=digit_sum && B>=digit_sum) {
            ans += i;
        }
    }

    printf("%d\n", ans); 
            
}



Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main() {
      | ^~~~
Language: C++

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

int main() {
  int N,A,B;
  cin>>N>>A>>B;
  int ans=0;
  int i;
  for(i=1;i<=N;i++) {
	int c=i;
	int count=0;
	while(c>0) {
		count+=c%10;
		c=c/10;
	}
	if(count>=A&&count<=B) ans+=1;
  cout<<ans<<endl;
  return 0;
}    

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

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

int main() {
  int N,A,B;
  cin>>N>>A>>B;
  int ans=0;
  for(i=1;i<=N;i++) {
	int c=i;
	int count=0;
	while(c>0) {
		count+=c%10;
		c=c/10;
	}
	if(count>=A&&count<=B) ans+=1;
  cout<<ans<<endl;
  return 0;
}    

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  int A,B;cin>>A  >>B;
  int cnt = 0;
  for(int i = 1; i <= N; i++){
  	const string s = to_string(i);
    const int sum = accumulate(s.begin(),s.end(),0)-'0'*s.size();
    cnt += (A<= sum and sum <= B?i:0);
  }
  cout << sum << endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  int A,B;cin>>A  >>B;
  int cnt = 0;
  for(int i = 1; i <= N; i++){
  	const string s = to_string(i);
    const int sum = accumulate(s.begin(),s.end(),0)-'0'*s.size();
  	cnt += (A<= sum and sum <= B?1:0);
  }
  cout << sum << endl;
  return 0;
}

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

#include <iostream>
using namespace std;
int main(){
  int n,a,b,count=0;

  cin>>n>>a>>b;
  for(int i=1;i<=n;i++){
    int count2=0;
    count2+=i%10+(i/10)%10+(i/100)%10+(i/1000)%10+i/10000;
    if(a<=count2&&count2<=b)
      count+=i;
  }

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

 public class Main {
	 
	
	public static void main(String[] args) {
		
		Scanner in = new Scanner(System.in);
		int N=in.nextInt();
		int A=in.nextInt();
		int B=in.nextInt();
		int s=0;
		 for (int i=1; i <= N; i++) {
	            if( ((int)i/10000 + ( (int)i/1000 % 10) + ( (int)i/100 % 10) + ( (int)i/10 % 10) + i%10) >= A && ((int)i/10000 + ( (int)i/1000 % 10) + ( (int)i/100 % 10) + ( (int)i/10 % 10) + i%10) <= B)
		     s=s+i;
		 }
	            	System.out.println(s);
		
	}
}


Compiler output:
Main.java:6: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define vvi vector<vi>
#define vs vector<string>
#define pb push_back
#define P pair<int,int>
#define vp vector<P>
#define PP pair<int,P>
#define vpp vector<PP>
#define fi first
#define se second
#define INF (1<<30)
#define MOD 1000000007
#define REP(i,n) for(int i=0;i<n;i++)
#define REPR(i,n) for(int i=n;i>=0;i--)
#define FOR(i,m,n) for(int i=m;i<n;i++)
#define all(x) (x).begin(),(x).end()
int main(){
    int n,a,b;
    cin>>n>>a>>b;
    int ans=0;
    FOR(i,1,n+1){
        string t=to_string(i);
        int sum=0;
        REP(j,t.size()){
            sum+=stoi(t[j],1);
        }
        if(a<=sum&&sum<=b){
            ans+=i;
        }
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:22: error: no matching function for call to 'stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, int)'
   27 |             sum+=stoi(t[j],1);
      |                  ~~~~^~~~~~~~
In file included 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/c++/14/bits/basic_string.h:4164:3: note: candidate: 'int std::__cxx11::stoi(const std::string&, std::size_t*, int)'
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4164:22: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::string&' {aka 'const std::__cxx11::basic_string<char>&'}
 4164 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/basic_string.h:4432:3: note: candidate: 'int std::__cxx11::stoi(const std::wstring&, std::size_t*, int)'
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |   ^~~~
/usr/include/c++/14/bits/basic_string.h:4432:23: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const std::wstring&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}
 4432 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
      |        ~~~~~~~~~~~~~~~^~~~~
Language: C++

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

int main(){
    int n,a,b;
    int res=0;
    cin>>n>>a>>b;

    

    for(int i=n;i>=0;i--){

        string st=toString(i);
        int nl=st.length();

        int sum=0;
        for(int j=0;j<nl;j++) sum+=st[j];
        if(sum>=a && sum<=b)res+=sum;

    }

    cout<<res<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'toString' was not declared in this scope
   14 |         string st=toString(i);
      |                   ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int n, a, b, sum=0, total=0;

    cin >> n >> a >> b;

    for (i=1; i<=n; i++)
    {
        int p = i;
        sum = 0;
        while (p!=0)
        {
            sum += p % 10;
            p /= 10;
        }
        if (sum >= a && sum <= b) total+=i;
	}

    cout << total << endl;
    return 0;
}

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

def digitSum(num):
    res = 0
    while num > 0:
        res = res + num % 10
        num = int(num / 10)
    return res


def main():
    n,a,b = map(int, (input().split()))

    ans = 0;
    for i in range(n):
        ds = digitSum(i + 1)
        if ds >= a and ds <= b:
            ans = ans + i + 1

    print (ans)

main()


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def digitSum(num):
      | ^~~
a.cc:13:5: error: expected unqualified-id before 'for'
   13 |     for i in range(n):
      |     ^~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;

int mian()
{
	int n, a, b, i, t=0, p, s=0;
	cin >> n >> a >> b;
	
	for (i=1; i<=n; i++)
	{
		p=i;
		t=0;
		while (p!=0)
		{
			t+=p%10;
			p/=10;
		}
		if (t>=a&&t<=b) s+=i;
	}
	cout << s << endl;
	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import java.io.*;
import java.util.*;

public class SomeSums {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		//BufferedReader in = new BufferedReader(new FileReader("prob.in"));
		
		PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		//PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("prob.out")));
		
		
		StringTokenizer st = new StringTokenizer(in.readLine());
		
		int N = Integer.parseInt(st.nextToken());
		int A = Integer.parseInt(st.nextToken());
		int B = Integer.parseInt(st.nextToken());
		
		
		int totalSum = 0;
		
		for(int i = 1; i <= N; i++){
			int curr = i;
			String str= "" + curr;
			
			int tempSum = 0;
			
			while(str.length() < 4){
				str = "0" + str;
			}
			
			
			for(int j =0; j < 4; j++){
				tempSum += Integer.parseInt("" + str.charAt(j));
			}
			
			if(tempSum >= A && tempSum <= B){
				//out.println(str);
				totalSum += curr;
			}
			
			
		}
		
		out.println(totalSum);
		
		
		
		
		in.close();
		out.close();
		
	}
}


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

#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>

using namespace std;

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

int main(){
  int n,a,b;
  scanf("%d%d%d",&n,&a,&b);
  int res = 0;
  for(int i = 1 ;i <= n; i++){
    int c = 0, t = i;
    for (int j = 0; j < 4; j++){
        c += t%10;
        t = t/10;
    }
    if (a <= c && c <= b){
      res += i;
    }
  }
  printf(

Compiler output:
a.cc: In function 'int main()':
a.cc:25:10: error: expected primary-expression at end of input
   25 |   printf(
      |          ^
a.cc:25:10: error: expected '}' at end of input
a.cc:11:11: note: to match this '{'
   11 | int main(){
      |           ^
Language: C

#i n cl u d e <s t d i o . h>
i n t main ( )
{
i n t 　n , a , b ;
s c a n f (”%d%d%d ” , &n , &a , &b ) ;
i n t 　r = 0 ;
f o r ( i n t i = 1 ; i <= n ; i++)
{
i n t 　c = 0 , t = i ;
f o r ( i n t j = 0 ; j < 5 ; j++)c += t % 1 0 , t /= 1 0;
i f ( a <= c&&c <= b ) r += i ;
}
p r i n t f (”%d\n ” , r ) ;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
main.c:2:1: error: unknown type name 'i'
    2 | i n t main ( )
      | ^
main.c:2:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 't'
    2 | i n t main ( )
      |     ^
main.c:2:5: error: unknown type name 't'
main.c:4:7: error: stray '\343' in program
    4 | i n t <U+3000>n , a , b ;
      |       ^~~~~~~~
main.c:5:12: error: stray '\342' in program
    5 | s c a n f (<U+201D>%d%d%d <U+201D> , &n , &a , &b ) ;
      |            ^~~~~~~~
main.c:5:20: error: stray '\342' in program
    5 | s c a n f (<U+201D>%d%d%d <U+201D> , &n , &a , &b ) ;
      |                           ^~~~~~~~
main.c:6:7: error: stray '\343' in program
    6 | i n t <U+3000>r = 0 ;
      |       ^~~~~~~~
main.c:9:7: error: stray '\343' in program
    9 | i n t <U+3000>c = 0 , t = i ;
      |       ^~~~~~~~
main.c:13:14: error: stray '\342' in program
   13 | p r i n t f (<U+201D>%d\n <U+201D> , r ) ;
      |              ^~~~~~~~
main.c:13:17: error: stray '\' in program
   13 | p r i n t f (”%d\n ” , r ) ;
      |                 ^
main.c:13:20: error: stray '\342' in program
   13 | p r i n t f (<U+201D>%d\n <U+201D> , r ) ;
      |                           ^~~~~~~~
Language: C++

#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
 
using namespace std;
 
int main()
{
	int n,a,b;
	int q,w,e,r,sum,m;
	while(~scanf("%d %d %d \n",&n,&a,&b)){
		m=0;
		for(int i=1; i<=n; i++){
			q = i%10;
			w = i/10%10;
			e = i/100%10;
			r = i/1000
			sum = q+w+e+r;
			if(sum >= a&&sum <= b){
				m = m+i;
			}
		}
		printf("%d\n",m);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:35: error: expected ';' before 'sum'
   18 |                         r = i/1000
      |                                   ^
      |                                   ;
   19 |                         sum = q+w+e+r;
      |                         ~~~
Language: C++

#include<stdio.h>

int main(){
  int n,a,b,i,j,ans,tmp;
  scanf("%d %d %d",&n,&a,&b);
  ans=0;
  for(i=1;i<=n;i++){
    j=i;
    tmp=0
    while(j>0){
      tmp+=j%10;
      j=j/10;
    }
    if (a <= tmp && tmp <= b) {
			ans += i;
		}
  }

  printf("%d\n",ans);

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'while'
    9 |     tmp=0
      |          ^
      |          ;
   10 |     while(j>0){
      |     ~~~~~
Language: C++

#include<stdio.h>
int main()
{
	int N,A,B,C,D,E;
	int sum=0;
	1<=N && N<=（10*10*10*10）;
	1<=A && A<=B && B<=36;
    scanf("%d %d %d",&N,&A,&B);
     for(int i=1;i<=N;i++)
	 {
	 	 if(i<10)
		 {
		 	 if(i>=A && i<=B)
			 { sum=sum+i;}
		 }
		 if( i>=10  && i<=99)
			 { C=i/10;
			   D=i%10;
			   if((C+D)>=A && (C+D)<=B)
			   {  sum=sum+i;}
			 }
		 if(i>=100)
			 {  C=i/100;
			    D=(i/10)%10;
			    E=i%100;
			    if((C+D+E)>=A && (C+D+E)<=B)
				{sum=sum+i;}
			 }
		}
		printf("%d",sum);
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: '\U0000ff0810' was not declared in this scope
    6 |         1<=N && N<=（10*10*10*10）;
      |                    ^~~~
a.cc:6:31: error: unable to find numeric literal operator 'operator""\U0000ff09'
    6 |         1<=N && N<=（10*10*10*10）;
      |                               ^~~~
Language: C++

#include<stdio.h>

int main(){
  int n,a,b,i,j,ans,tmp;
  scanf("%d %d %d",&n,&a,&b);
  int sum[n+1]={};
  ans=0;
  for(i=1;i<=n;i++){
    j=i
    do{
      sum[i]+=j%10;
      j%10;
    }while(j<10);
    if (a <= sum[i] && sum[i] <= b) {
			ans += sum[i];
		}
  }

  printf("%d\n",ans);

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'do'
    9 |     j=i
      |        ^
      |        ;
   10 |     do{
      |     ~~
Language: C++

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int  main(void)
{ 
   long n,i,sum;
   int a,b,length,he;
   char s[6];
   while(scanf("%ld%d%d",&s,&a,&b)!=-1)
     {    sum=0;
         for(i=1;i<=n;i++)
           {  he=0;
              itoa(i,s,10);
              length=strlen(s)-1;
              while(length>-1)
                { he+=s[length];
                  length--;
				}
				if(a<=he&&he<=b)sum+=i;
		   }
		   printf("%ld\n",sum);
	 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'itoa' was not declared in this scope
   13 |               itoa(i,s,10);
      |               ^~~~
Language: C++

#include <iostream>
int main(){
int N,A,B,X=0;
std::cin >> N >> A >> B;
int I = i/1000
int J = (i-I*1000)/100
int K = (i-I*1000-J*100)/10
int L = i-I*1000-J*100-K*10
for(int i=0;i<N;i++)
  if(A<= I+J+K+L && I+J+K+L<=B)
	X = X+i;
std::cout << X << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'i' was not declared in this scope
    5 | int I = i/1000
      |         ^
Language: C

#include<stdio.h>
int main(){
  int N,A,B,sum,i,c;
  scanf("%d %d %d",&N,&A,&B);
  
  int ans=0;
  for(i=1;i<=N;i++){
    sum=0;
    c=i;
    while(c>0){
      sum+=c%10;
      (c-(c%10))/10=c;
    }
    if(sum=>A&&sum<=B) ans+=i;
  }
  
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: lvalue required as left operand of assignment
   12 |       (c-(c%10))/10=c;
      |                    ^
main.c:14:12: error: expected expression before '>' token
   14 |     if(sum=>A&&sum<=B) ans+=i;
      |            ^
Language: C

#include<stdio.h>
int main(){
  int N,A,B,sum,i,c;
  scanf("%d %d %d",&N,&A,&B);
  
  int ans=0;
  for(i=1;i<=N;i++){
    sum=0;
    c=i
    while(c>0){
      sum+=c%10;
      (c-(c%10))/10=c;
    }
    if(sum=>A&&sum<=B) ans+=i;
  }
  
  printf("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected ';' before 'while'
    9 |     c=i
      |        ^
      |        ;
   10 |     while(c>0){
      |     ~~~~~
Language: C

#include <stdio.h>

int main()
{
	int num;
	int dig;
	int sum;
	int n, a, b,j=0;
	scanf_s("%d %d %d", &n, &a, &b);

	for (int i = 1; i <= n; i++) {
		num = i;
		sum = 0;
		/* 自然数の各桁の数字の和を計算 */
		while (num) {
			dig = num % 10;
			sum = sum + dig;
			num = num / 10;
		}
		if (sum >= a && sum <= b) j += i;
	}
	printf("%d", j);
	return 0;
}

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

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{ 
   long n,i,sum;
   int a,b,length,he;
   char s[6];
   while(scanf("%ld%d%d",&n,&a,&b)!=-1)
     {    sum=0;
         for(i=1;i<=n;i++)
           {  he=0;
              itoa(i,s,10);
              length=strlen(s)-1;
              while(length>-1)
                { he+=s[length];
                  length--;
				}
				if(he>a&&he<b)sum+=i;
		   }
		   printf("%ld\n",sum);
	 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'itoa' was not declared in this scope
   13 |               itoa(i,s,10);
      |               ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int n,a,b;
int sum=0;
bool f_ck(int c)
{
	
	while(c>0)
	{
		sum+=c%10;
		c=c/10;
	}
	if(sum>=a&&sum<=b)
	return true;
	else 
	return false;
}
int main()
{
	cin>>n>>a>>b;
	for(int i=1;i<=n;i++)
	{
		if(f_ck(i))
		sum+=i;		
	}
	cout<<sum<<endl;
	return 0;
}#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int n,a,b;
int sum=0;
bool f_ck(int c)
{
	
	while(c>0)
	{
		sum+=c%10;
		c=c/10;
	}
	if(sum>=a&&sum<=b)
	return true;
	else 
	return false;
}
int main()
{
	cin>>n>>a>>b;
	for(int i=1;i<=n;i++)
	{
		if(f_ck(i))
		sum+=i;		
	}
	cout<<sum<<endl;
	return 0;
}

Compiler output:
a.cc:31:2: error: stray '#' in program
   31 | }#include <iostream>
      |  ^
a.cc:31:3: error: 'include' does not name a type
   31 | }#include <iostream>
      |   ^~~~~~~
a.cc:36:5: error: redefinition of 'int n'
   36 | int n,a,b;
      |     ^
a.cc:6:5: note: 'int n' previously declared here
    6 | int n,a,b;
      |     ^
a.cc:36:7: error: redefinition of 'int a'
   36 | int n,a,b;
      |       ^
a.cc:6:7: note: 'int a' previously declared here
    6 | int n,a,b;
      |       ^
a.cc:36:9: error: redefinition of 'int b'
   36 | int n,a,b;
      |         ^
a.cc:6:9: note: 'int b' previously declared here
    6 | int n,a,b;
      |         ^
a.cc:37:5: error: redefinition of 'int sum'
   37 | int sum=0;
      |     ^~~
a.cc:7:5: note: 'int sum' previously defined here
    7 | int sum=0;
      |     ^~~
a.cc:38:6: error: redefinition of 'bool f_ck(int)'
   38 | bool f_ck(int c)
      |      ^~~~
a.cc:8:6: note: 'bool f_ck(int)' previously defined here
    8 | bool f_ck(int c)
      |      ^~~~
a.cc:51:5: error: redefinition of 'int main()'
   51 | int main()
      |     ^~~~
a.cc:21:5: note: 'int main()' previously defined here
   21 | int main()
      |     ^~~~
Language: C

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

int all, min, max,result;
int main() {
	result = 0;
	scanf_s("%d%d%d", &all, &min, &max);
	for (int i = 1; i <= all; i++) {
		int sum;
		int sen = ceil(i / 1000);
		int hyaku = ceil(i / 100);
		int juu = ceil(i / 10);

		if (sen != 0) {
			sum = 1;
			if (min <= sum && sum <= max) {
				result += i;
			}
		} else if (hyaku != 0) {
			sum = hyaku + (juu - hyaku * 10) + (i - juu * 10);
			if (min <= sum && sum <= max) {
				result += i;
			}
		}
		else if (juu != 0) {
			sum = juu + (i - juu * 10);
			if (min <= sum && sum <= max) {
				result += i;
			}
		}
		else {
			sum = i;
			if (min <= sum && sum <= max) {
				result += i;
			}
		}
	}

	printf("%d", result);

}



Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d%d%d", &all, &min, &max);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{ 
   int  i,n,sum;
   int a,b,length,he;
   char s[6];
   while(scanf("%d%d%d",&n,&a,&b)!=-1)
     {    sum=0;
         for(i=1;i<=n;i++)
           {  he=0;
              itoa(i,s,10);
              length=strlen(s)-1;
              while(length>-1)
                { he+=s[length]-48;
                  length--;
				}
				if(a<=he&&he<=b)sum+=i;
		   }
		   printf("%d\n",sum);
	 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'itoa' was not declared in this scope
   13 |               itoa(i,s,10);
      |               ^~~~
Language: C++

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{ 
   long n,i,sum;
   int a,b,length,he;
   char s[6];
   while(scanf("%ld%d%d",&n,&a,&b)!=-1)
     {    sum=0;
         for(i=1;i<=n;i++)
           {  he=0;
              itoa(i,s,10);
              length=strlen(s)-1;
              while(length>-1)
                { he+=s[length]-48;
                  length--;
				}
				if(a<=he&&he<=b)sum+=i;
		   }
		   printf("%ld\n",sum);
	 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'itoa' was not declared in this scope
   13 |               itoa(i,s,10);
      |               ^~~~
Language: C++

#include<iostream>
using namespace std;
int n,a,b,x;
long long x;
int main()
{
cin>>n>>a>>b;
for(int i=1;i<=n;i++)
{x=i/1000+(i/100)%10+(i/10)%10+i%10;
 if(a<=x&&x<=b)
 sum+=i;}
 cout << sum;
system("pause"); 
return 0;
}


Compiler output:
a.cc:4:11: error: conflicting declaration 'long long int x'
    4 | long long x;
      |           ^
a.cc:3:11: note: previous declaration as 'int x'
    3 | int n,a,b,x;
      |           ^
a.cc: In function 'int main()':
a.cc:11:2: error: 'sum' was not declared in this scope
   11 |  sum+=i;}
      |  ^~~
a.cc:12:10: error: 'sum' was not declared in this scope
   12 |  cout << sum;
      |          ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int n, a, b, res = 0, tmp, tmp10000, tmp1000, tmp100, tmp10, tmp1;
    cin >> n >> a >> b;

    for (int i = 1; i <= n; ++i) {
        // 10^1
        if (i >= 10){
            tmp = i / 10 + i % 10;
            if(tmp > a && tmp < b) {
                res += tmp;
            }

        } // 10^2
        else if (i >= 100) {
            tmp = i / 100 + (i - i % 100) / 10 + (i - i % 100) % 10;
            if(tmp > a && tmp < b) {
                res += tmp;
            }
        }// 10^3
        else if (i >= 1000) {
            tmp1000 = i / 1000;
            tmp100 = (tmp1000 % 1000) / 100;
            tmp10 = (tmp100 % 100) / 100;
            tmp1 = (tmp10 % 10) / 10;
            tmp = tmp1000 + tmp100 + tmp10 + tmp1;
            if(tmp > a && tmp < b) {
                res += tmp;
            }
        }// 10^4
        else if (i >= 10000) {
            tmp10000 = i /10000
            tmp1000 = (tmp10000 % 10000) / 1000;
            tmp100 = (tmp1000 % 1000) / 100;
            tmp10 = (tmp100 % 100) / 100;
            tmp1 = (tmp10 % 10) / 10;
            tmp = tmp10000 + tmp1000 + tmp100 + tmp10 + tmp1;
            if(tmp > a && tmp < b) {
                res += tmp;
            }
        } // 10^0
        else {
            if(i > a && i < b) {
                res += i;
            }
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:32: error: expected ';' before 'tmp1000'
   34 |             tmp10000 = i /10000
      |                                ^
      |                                ;
   35 |             tmp1000 = (tmp10000 % 10000) / 1000;
      |             ~~~~~~~
Language: C

#include<stdio.h>
int main(void){
 int N,A,B,i,num,dig,sum1=0,sum2,num;
 scanf("%d",&N);
 scanf("%d",&A);
 scanf("%d",&B);
 for(i=0;i<=N;i++){
 num=i;
 sum2=0;
 while(num){
  dig=num%10;
 sum2=sum2+dig;
  num=num/10;
}
  if((1<=sum2)&&(sum2<=N)) sum1+=i;
 }
 printf("%d",sum1);
 return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:3:34: error: redeclaration of 'num' with no linkage
    3 |  int N,A,B,i,num,dig,sum1=0,sum2,num;
      |                                  ^~~
main.c:3:14: note: previous declaration of 'num' with type 'int'
    3 |  int N,A,B,i,num,dig,sum1=0,sum2,num;
      |              ^~~
Language: C

#include<stdio.h>
int main(void){
 int N,A,B,i,num,dig,sum1=0,sum2,num;
 scanf("%d",&N);
 scanf("%d",&A);
 scanf("%d",&B);
 for(i=0;i<=N;i++){
 num=i;
 sum2=0;
 while(num){
  dig=num%10;
 sum2=sum2+dig;
  num=num/10;
}
  if((1<=sum2)&&(sum2<=N)) sum+=i;
 }
 printf("%d",sum);
 return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:3:34: error: redeclaration of 'num' with no linkage
    3 |  int N,A,B,i,num,dig,sum1=0,sum2,num;
      |                                  ^~~
main.c:3:14: note: previous declaration of 'num' with type 'int'
    3 |  int N,A,B,i,num,dig,sum1=0,sum2,num;
      |              ^~~
main.c:15:28: error: 'sum' undeclared (first use in this function); did you mean 'num'?
   15 |   if((1<=sum2)&&(sum2<=N)) sum+=i;
      |                            ^~~
      |                            num
main.c:15:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
 int N,A,B,i,num,dig,sum1=0,sum2;
 scanf("%d",&N);
 scanf("%d",&A);
 scanf("%d",&B);
 for(i=0;i<=N;i++){
 sum2=0;
 while(i){
  dig=i%10;
 sum2=sum2+dig;
  i=i/10;
}
  if((1<=sum2)&&(sum2<=N)) sum+=i;
 }
 printf("%d",sum);
 return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:14:28: error: 'sum' undeclared (first use in this function); did you mean 'sum2'?
   14 |   if((1<=sum2)&&(sum2<=N)) sum+=i;
      |                            ^~~
      |                            sum2
main.c:14:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;

int main() {
	int N,a,b;
	cin >> N >> a >> b;

	int sum = 0;
	int digit = (int)log10(N)+1;
	int c = N; for (int i = 1; i < digit; i++) { c /= 10; }

	int *D = new int[digit];
	int Dsum = 0;
	for (int i = 0; i < digit; i++) {
		D[i] = 0;
	}
	for (int i = 1; i <= N; i++) {
		D[0]++;
		Dsum++;
		for (int k = 0; k < digit; k++) {
			if (D[k] == 10) {//加算
				D[k] = 0; D[k + 1]++;
				Dsum-=9;
			}
			else {
				break;
			}
		}
		if (a <= Dsum && Dsum <= b) {
			sum+=i;
		}
		if (D[digit - 1] == c && i % 10 == D[0]) {
			int n = N;
			bool flag = true;
			for (int k = 0; k < digit; k++) {
				if (D[k] != n % 10) {
					flag = false;
					break;
				}
				n /= 10;
			}
			if (flag) { break; }
		}
	}

	cout << sum << endl;

	delete[] D;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'log10' was not declared in this scope
   10 |         int digit = (int)log10(N)+1;
      |                          ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int N;
	int A;
	int B;
	int sum = 0;
	int man;
	int hyaku;
	int ten;
	int ichi;

	cin >> N >> A >> B;
	for (int i = 1; i <=N; i++)
	{
		man = i / 10000;
		hyaku = i %1000
		ten = i % 100;
		ichi = i % 10;
		if (man + hyaku + ten + ichi >= A && man + hyaku +ten + ichi <= B)
			sum += i;
	}
	cout << sum;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:32: error: expected ';' before 'ten'
   18 |                 hyaku = i %1000
      |                                ^
      |                                ;
   19 |                 ten = i % 100;
      |                 ~~~
Language: Java

public class Sums{
	public static void main(String[] args){
		int n = Integer.valueOf(args[0]);
		int a = Integer.valueOf(args[1]);
		int b = Integer.valueOf(args[2]);
		
		int total = 0;

		for(int i=1;i<=n;i++){
			int sum = i/10000 + i%10000/1000 + i%1000/100 + i%100/10 + i%10;
			if (a<=sum&&sum<=b){
				total = total + i;
			}
		}
		System.out.println(total);
	}
}

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

#include<iostream>
using namespace std;
int main() {
	int N, A, B;
  	cin >> N >> A >> B;
  	int sum
  	int sum1 = 0;
  	for(int j = 1; j <= N; j++){
  	for(int i = j; (i / 10) != 0 || (i % 10) != 10; i /= 10) {
      	sum1 += (i % 10);
    }
  	if(sum1 >= A && sum1 <= B) {
      	sum += 10
    }
    }
  	cout << sum << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'int'
    7 |         int sum1 = 0;
      |         ^~~
a.cc:10:9: error: 'sum1' was not declared in this scope
   10 |         sum1 += (i % 10);
      |         ^~~~
a.cc:12:12: error: 'sum1' was not declared in this scope
   12 |         if(sum1 >= A && sum1 <= B) {
      |            ^~~~
a.cc:13:9: error: 'sum' was not declared in this scope
   13 |         sum += 10
      |         ^~~
a.cc:16:17: error: 'sum' was not declared in this scope
   16 |         cout << sum << endl;
      |                 ^~~
Language: C++

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

int n, a, b;

int whole;

int main(void){
    // Here your code !
    scanf("%d %d %d", &n, &a, &b);

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

      int sum = 0;
      for (int j = 0; j < t.size(); ++j) {
        int num = (int)t[j] - 48;
        sum += num;
      }
      if (A <= sum && sum <= B) whole += i;
    }

    printf("%d\n", whole);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'A' was not declared in this scope
   20 |       if (A <= sum && sum <= B) whole += i;
      |           ^
a.cc:20:30: error: 'B' was not declared in this scope
   20 |       if (A <= sum && sum <= B) whole += i;
      |                              ^
Language: C++

#include <iostream>
#include<cstdlib>
#include<queue>
#include<set>
#include<vector>
#include<string>
#include<algorithm>
#include<stack>
#include<map>
#include<cstdio>
using namespace std;
#define rep(i,a) for(int i=0;i<a;i++)
#define mp make_pair
#define P pair<int,int>

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

	for(int i=1;i<=n;i++){
		int tmp=i,sum=0;
		for(int j=6;j>=0;j--){
			if(tmp/(pow(10,j))>0){
				int s=tmp/pow(10,j);
				sum+=s;
				tmp-=s*pow(10,j);
				//cout<<"A"<<endl;
			}
		}
			
		if(a<=sum&&sum<=b)ans+=i;
	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:33: error: 'pow' was not declared in this scope
   24 |                         if(tmp/(pow(10,j))>0){
      |                                 ^~~
Language: C++

////////////////////////////////////////////////
//                                            //
//  Author: Muhammad Faishol Amirul Mukminin  //
//                                            //
////////////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pi;
typedef pair<pi,int> pii;
typedef pair<ll,ll> pl;
typedef pair<pl,ll> pll;
typedef pair<double,double> pd;
typedef pair<pd,double> pdd;

#define fi first
#define se second
#define PUB push_back
#define POB pop_back
#define PUF push_front
#define POF pop_front
#define ALL(v) (v).begin(),(v).end()
#define endl "\n"

const double EPS = 1e-9;
const double PI = acos(-1);

const ll MOD = 1e9+7;

const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};

ll A, B, N, ans=0;

bool valid(ll ang){
	ll res=0;
	while(ang>0){
		res += ang%10;
		ang/=10;
	}

	if(A <= ang && ang <= B) return 1;
	else return 0;
}

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	
	cin >> N >> A >> B;
	FORN(i,1,N){
		if(valid(i)) ans += i;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:52:14: error: 'i' was not declared in this scope; did you mean 'pi'?
   52 |         FORN(i,1,N){
      |              ^
      |              pi
a.cc:52:9: error: 'FORN' was not declared in this scope
   52 |         FORN(i,1,N){
      |         ^~~~
Language: C++

////////////////////////////////////////////////
//                                            //
//  Author: Muhammad Faishol Amirul Mukminin  //
//                                            //
////////////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair pi;
typedef pair pii;
typedef pair pl;
typedef pair pll;
typedef pair pd;
typedef pair pdd;

#define fi first
#define se second
#define PUB push_back
#define POB pop_back
#define PUF push_front
#define POF pop_front
#define ALL(v) (v).begin(),(v).end()
#define endl "\n"

const double EPS = 1e-9;
const double PI = acos(-1);

const ll MOD = 1e9+7;

const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};

ll A, B, N, ans=0;

bool valid(ll ang){
	ll res=0;
	while(ang>0){
		res += ang%10;
		ang/=10;
	}

	if(A <= ang && ang <= B) return 1;
	else return 0;
}

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	
	cin >> N >> A >> B;
	FORN(i,1,N){
		if(valid(i)) ans += i;
	}
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc:11:9: error: typedef declared 'auto'
   11 | typedef pair pi;
      |         ^~~~
a.cc:12:9: error: typedef declared 'auto'
   12 | typedef pair pii;
      |         ^~~~
a.cc:13:9: error: typedef declared 'auto'
   13 | typedef pair pl;
      |         ^~~~
a.cc:14:9: error: typedef declared 'auto'
   14 | typedef pair pll;
      |         ^~~~
a.cc:15:9: error: typedef declared 'auto'
   15 | typedef pair pd;
      |         ^~~~
a.cc:16:9: error: typedef declared 'auto'
   16 | typedef pair pdd;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:52:14: error: 'i' was not declared in this scope; did you mean 'pi'?
   52 |         FORN(i,1,N){
      |              ^
      |              pi
a.cc:52:9: error: 'FORN' was not declared in this scope
   52 |         FORN(i,1,N){
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int ans;
int N, A, B;
int sumDigit(int n) {
	int ret = 0;
	while (0 < n) {
		ret = n % 10;
		n /= 10;
	}
	return ret;
}
int main(void) {
	cin >> N >> A >> B;
	for (int i = 1; i <= N; ++i) {
		int sum = sumDigit(i);
		if (A <= sum && sum <= B) ans += sum;
	}
	cout << sum << endl;
	return 0;
}

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

////////////////////////////////////////////////
//                                            //
//  Author: Muhammad Faishol Amirul Mukminin  //
//                                            //
////////////////////////////////////////////////
#include 
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair pi;
typedef pair pii;
typedef pair pl;
typedef pair pll;
typedef pair pd;
typedef pair pdd;

#define fi first
#define se second
#define PUB push_back
#define POB pop_back
#define PUF push_front
#define POF pop_front
#define ALL(v) (v).begin(),(v).end()
#define endl "\n"

const double EPS = 1e-9;
const double PI = acos(-1);

const ll MOD = 1e9+7;

const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};

ll A, B, N, ans=0;

bool valid(ll ang){
	ll res=0;
	while(ang>0){
		res += ang%10;
		ang/=10;
	}

	if(A <= ang && ang <= B) return 1;
	else return 0;
}

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	
	cin >> N >> A >> B;
	FORN(i,1,N){
		if(valid(i)) ans += i;
	}
	cout << i << endl;
	return 0;
}


Compiler output:
a.cc:6:10: error: #include expects "FILENAME" or <FILENAME>
    6 | #include
      |          ^
a.cc:11:9: error: 'pair' does not name a type
   11 | typedef pair pi;
      |         ^~~~
a.cc:12:9: error: 'pair' does not name a type
   12 | typedef pair pii;
      |         ^~~~
a.cc:13:9: error: 'pair' does not name a type
   13 | typedef pair pl;
      |         ^~~~
a.cc:14:9: error: 'pair' does not name a type
   14 | typedef pair pll;
      |         ^~~~
a.cc:15:9: error: 'pair' does not name a type
   15 | typedef pair pd;
      |         ^~~~
a.cc:16:9: error: 'pair' does not name a type
   16 | typedef pair pdd;
      |         ^~~~
a.cc:28:19: error: 'acos' was not declared in this scope
   28 | const double PI = acos(-1);
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:49:9: error: 'ios_base' has not been declared
   49 |         ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |         ^~~~~~~~
a.cc:49:43: error: 'cin' was not declared in this scope
   49 |         ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                           ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | ////////////////////////////////////////////////
a.cc:49:55: error: 'cout' was not declared in this scope
   49 |         ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                                       ^~~~
a.cc:49:55: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:52:14: error: 'i' was not declared in this scope
   52 |         FORN(i,1,N){
      |              ^
a.cc:52:9: error: 'FORN' was not declared in this scope
   52 |         FORN(i,1,N){
      |         ^~~~