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

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[1]);
int c=Integer.parseInt(arr[2]);
diviNum(a, b, c);
br.close();
}
static void diviNum(int a; int b; int c){
int x=0;
int i=b-a+1;
for(int j=0;j<i,j++){
if(c%a==0)  x++;
a++;
}
System.out.println(x);
}
}

Compiler output:
Main.java:13: error: ',', ')', or '[' expected
static void diviNum(int a; int b; int c){
                         ^
Main.java:13: error: ';' expected
static void diviNum(int a; int b; int c){
                                       ^
Main.java:16: error: ';' expected
for(int j=0;j<i,j++){
               ^
3 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[1]);
int c=Integer.parseInt(arr[2]);
diviNum(a, b, c);
br.close();
}
static void diviNum(int a; int b; int c){
int x=0;
int i=b-a+1;
for(int j=0;j<i;j++){
if(c%a==0)  x++;
a++;
}
System.out.println(x);
}
}

Compiler output:
Main.java:13: error: ',', ')', or '[' expected
static void diviNum(int a; int b; int c){
                         ^
Main.java:13: error: ';' expected
static void diviNum(int a; int b; int c){
                                       ^
2 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] arr=str.split(" ");
int a=Integer.parseInt(arr[0]);
int b=Integer.parseInt(arr[1]);
int c=Integer.parseInt(arr[2]);
diviNum(a, b, c);
br.close();
}
static void diviNum(int a, int b, int c){
int x=0;
for(a;b+1;a++){
if(c%a==0)  x++;
}
System.out.println(x);
}
}

Compiler output:
Main.java:15: error: not a statement
for(a;b+1;a++){
    ^
1 error
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int j = sc.nextInt();
		int k = sc.nextInt();
		int c = 0;
		for (int x = i; x <= j; x++) {

			if (x % k == 0) {
				c++;
			}
		}
		System.out.printf("%d\n", c);
		sc.close();
	}
}

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

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int b=scan.nextInt();
int c=scan.nextInt();
int d=0;
do{
	if(c%a==0){
		d++;
	}
	a++;
	if(a>b)break;
}while(true);
System.out.println(d);
scan.close();
	}

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

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String[] list;
		while(sc.hasNextLine()){
			list =sc.nextLine().split(" ");
		}
		int a=Integer.parseInt(line[0]);
		int b=Integer.parseInt(line[1]);
		int c=Integer.parseInt(line[2]);
		
		int count=0;
		for(int i=a;i<=b;i++){
			if(c%i==0){
				count=+;
			}
		}
		System.outnprintln(count);
	}
}

Compiler output:
Main.java:17: error: illegal start of expression
				count=+;
				       ^
1 error
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String[] list;
		while(sc.hasNextLine()){
			list =sc.nextLine().split(" ");
		}
		int a=Integer.parseInt(line[0]);
		int b=Integer.parseInt(line[1]);
		int c=Integer.parseInt(line[2]);
		
		int count=0;
		for(int i=a;i<=b;i++){
			if(c%i==0){
				count++;
			}
		}
		System.outnprintln(count);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		int a=Integer.parseInt(line[0]);
		                       ^
  symbol:   variable line
  location: class Main
Main.java:11: error: cannot find symbol
		int b=Integer.parseInt(line[1]);
		                       ^
  symbol:   variable line
  location: class Main
Main.java:12: error: cannot find symbol
		int c=Integer.parseInt(line[2]);
		                       ^
  symbol:   variable line
  location: class Main
Main.java:20: error: cannot find symbol
		System.outnprintln(count);
		      ^
  symbol:   method outnprintln(int)
  location: class System
4 errors
Language: Java

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String[] list;
		while(sc.hasNextLine()){
			list =sc.nextLine().split(" ");
		}
		int a=Integer.parseInt(list[0]);
		int b=Integer.parseInt(list[1]);
		int c=Integer.parseInt(list[2]);
		
		int count=0;
		for(int i=a;i<=b;i++){
			if(c%i==0){
				count++;
			}
		}
		System.out.println(count);
	}
}

Compiler output:
Main.java:10: error: variable list might not have been initialized
		int a=Integer.parseInt(list[0]);
		                       ^
1 error
Language: Java

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

public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String datas = br.readLine();
		String[] data = datas.split(" ");
		int x = Integer.parseInt(data[0]);
		int y = Integer.parseInt(data[1]);
		int z = Integer.parseInt(data[2]);
		
		int count = 0;
		for(int i = x;i<y;i++) {
			
			if(z%i==0) {
				count++;
			}
			
		}
		
		System.out.println(count);
	}
}
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String datas = br.readLine();
		String[] data = datas.split(" ");
		int x = Integer.parseInt(data[0]);
		int y = Integer.parseInt(data[1]);
		int z = Integer.parseInt(data[2]);
		
		int count = 0;
		for(int i = x;i<y;i++) {
			
			if(z%i==0) {
				count++;
			}
			
		}
		
		System.out.println(count);
	}
}

Compiler output:
Main.java:28: error: class, interface, enum, or record expected
import java.io.BufferedReader;
^
Main.java:29: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:30: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: Java

import java.util.Scanner;
public class Main2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a, b, c, count = 0;
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		for(int i = a; i < b; i++){
			if(c % i == 0){
				count++;
			}
		}
		System.out.println(count);
	}
}

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

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int count = 0;
        
        for(int i = a; a <= b; i++){
            if(c % i == 0){
                count++;
            }
        }
        
        System.out.pritnln(count);
    }
}


Compiler output:
Main.java:17: error: cannot find symbol
        System.out.pritnln(count);
                  ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class Main{

public static void main(String[] args) {

Scanner scan = new Scanner(System.in);
int p = scan.nextLine();
int q = scan.nextLine();
int w = scan.nextLine();
int counter = 0;
for (int i = p; i <= q;  i ++ ) {
if ( w % i == 0) {
counter++;
}
}
System.out.println(counter);

}
}



Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
int p = scan.nextLine();
                     ^
Main.java:9: error: incompatible types: String cannot be converted to int
int q = scan.nextLine();
                     ^
Main.java:10: error: incompatible types: String cannot be converted to int
int w = scan.nextLine();
                     ^
3 errors
Language: Java

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

public class HMDivisors {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int count=0;

		StringTokenizer st1 = new StringTokenizer(br.readLine());
		int a=Integer.parseInt(st1.nextToken());
		int b=Integer.parseInt(st1.nextToken());
		int c=Integer.parseInt(st1.nextToken());
		if(c%a==0){
			count++;
		}
		a++;

		while(a<b){
			if(c%a==0){
				count++;
			}
			a++;
		}

		System.out.println(count);
	}

}



Compiler output:
Main.java:6: error: class HMDivisors is public, should be declared in a file named HMDivisors.java
public class HMDivisors {
       ^
1 error
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        for (int i = a; i <= b; i++) {
            if (c % i == 0) {
               cnt++;
            }
        }
        System.out.println(cnt);
    }
}


Compiler output:
Main.java:11: error: cannot find symbol
               cnt++;
               ^
  symbol:   variable cnt
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(cnt);
                           ^
  symbol:   variable cnt
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Main {
    Main(){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt() ;
        int b = sc.nextInt() 
        int c = sc.nextInt() ;
        int count =0;
        for (int i=a; i<=b; i++ ){
            if(c%i==0) count++;
        }
        System.out.printf("%d\n", count);


    }

    public static void main(String[] args){
        new Main();
    }
}




Compiler output:
Main.java:7: error: ';' expected
        int b = sc.nextInt() 
                            ^
1 error
Language: Java

import java.util.Scanner;

public class Three{

	public static void main (String arg[]) {
		int Math = 0;
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		for (int x = a; x <= b ; x++) {
			if (c % x == 0) {
				Math += 1;
			}
			else {}
			
		}
		System.out.println(Math);

	}
}


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

import java.util.Scanner;

public class Three{

	public static void main (String arg[]) {
		int Math = 0;
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		for (int x = a; x <= b ; x++) {
			if (c % x == 0) {
				Math += 1;
			}			
		}
		System.out.println(Math);

	}
}


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

import java.util.Scanner;
public class Three{

	public static void main (String arg[]) {
		int Math = 0;
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		for (int x = a; x <= b ; x++) {
			if (c % x == 0) {
				Math += 1;
			}
			
		}
		System.out.println(Math);
		scan.close();

	}
}


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

import java.utul.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a,b,c;
        int ck;
        
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        
        for(;a<=b;a++){
            if(c%a == 0){
                ++ck;
            }
        }
        System.out.println(ck);
        
        sc.close();
    }
}


Compiler output:
Main.java:1: error: package java.utul does not exist
import java.utul.Scanner;
                ^
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a,b,c;
        int ck;
        
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        
        for(;a<=b;a++){
            if(c%a == 0){
                ++ck;
            }
        }
        System.out.println(ck);
        
        sc.close();
    }
}


Compiler output:
Main.java:15: error: variable ck might not have been initialized
                ++ck;
                  ^
Main.java:18: error: variable ck might not have been initialized
        System.out.println(ck);
                           ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a,b,c;
        int ck;
        
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        
        for(;a<=b;a++){
            if(c%a == 0){
                ck++;
            }
        }
        System.out.println(ck);
        
        sc.close();
    }
}


Compiler output:
Main.java:15: error: variable ck might not have been initialized
                ck++;
                ^
Main.java:18: error: variable ck might not have been initialized
        System.out.println(ck);
                           ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int count;
        for (a ; a<=b;a++){
            if(a%c==0)count++;
        }
        System.out.println(count);
        sc.close();
    }
    
}


Compiler output:
Main.java:9: error: not a statement
        for (a ; a<=b;a++){
             ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int count;
        for (int i = a ; i<=b;i++){
            if(i%c==0)count++;
        }
        System.out.println(count);
        sc.close();
    }
    
}


Compiler output:
Main.java:10: error: variable count might not have been initialized
            if(i%c==0)count++;
                      ^
Main.java:12: error: variable count might not have been initialized
        System.out.println(count);
                           ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int count;
        for (int i = a ; i<=b;i++){
            if(c%i==0)count++;
        }
        System.out.println(count);
        sc.close();
    }
    
}


Compiler output:
Main.java:10: error: variable count might not have been initialized
            if(c%i==0)count++;
                      ^
Main.java:12: error: variable count might not have been initialized
        System.out.println(count);
                           ^
2 errors
Language: Java

import java.util.Scanner;
class Main()
{
 public static void main(String args[])
 {
  int a,b,c,i,g=0;
  Scanner sc = new Scanner(System.in);
  a=sc.nextInt();
  b=sc.nextInt();
  c=sc.nextInt();
  for(i=a;a<=b;i++)
  {
   if(c%i==0)
      g++;
  }
  System.out.println(g);
}


Compiler output:
Main.java:2: error: '{' expected
class Main()
          ^
Main.java:17: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;
class Main()
{
 public static void main(String args[])
 {
  int a,b,c,i,g=0;
  Scanner sc = new Scanner(System.in);
  a=sc.nextInt();
  b=sc.nextInt();
  c=sc.nextInt();
  for(i=a;a<=b;i++)
  {
   if(c%i==0)
      g++;
  }
  System.out.println(g);
 }
}


Compiler output:
Main.java:2: error: '{' expected
class Main()
          ^
1 error
Language: C

#include <stdio.h>
int main(void){
    int a, b, c, d;
    int e = 0;
    scanf("%d, %d, %d", &a, &b, &c);
    for( d=a; d<=b; d++){
    if (c%i=0)
    d++
    else;
}
    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:7:11: error: 'i' undeclared (first use in this function)
    7 |     if (c%i=0)
      |           ^
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:8: error: expected ';' before 'else'
    8 |     d++
      |        ^
      |        ;
    9 |     else;
      |     ~~~~
Language: C

#include <stdio.h>
int main(void){
    int a, b, c, d;
    int e = 0;
    scanf("%d, %d, %d", &a, &b, &c);
    for( d=a; d<=b; d++){
    if (c%i=0)
    e++
    else;
}
    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:7:11: error: 'i' undeclared (first use in this function)
    7 |     if (c%i=0)
      |           ^
main.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:8: error: expected ';' before 'else'
    8 |     e++
      |        ^
      |        ;
    9 |     else;
      |     ~~~~
Language: C

#include <stdio.h>
int main(void){
    int a, b, c, d;
    int e = 0;
    scanf("%d, %d, %d", &a &b &c);
    for( d=a; d<=b; d++){
    if (c % d == 0)
    e++;
    else;
}
    return 0;
}





Compiler output:
main.c: In function 'main':
main.c:5:28: error: invalid operands to binary & (have 'int *' and 'int')
    5 |     scanf("%d, %d, %d", &a &b &c);
      |                         ~~ ^
      |                         |
      |                         int *
Language: C

#include <stdio.h>
int main(void){
    int a, b, c, d;
    int e = 0;
    scanf("%d, %d, %d", &a &b &c);
    for( d=a; d<=b; d++){
    if (c % d == 0){
    e++;}
    else;
}
    return 0;
}





Compiler output:
main.c: In function 'main':
main.c:5:28: error: invalid operands to binary & (have 'int *' and 'int')
    5 |     scanf("%d, %d, %d", &a &b &c);
      |                         ~~ ^
      |                         |
      |                         int *
Language: C

#include <stdio.h>
int main(void){
    int a, b, c, d;
    int e = 0;
    scanf("%d, %d, %d", &a, &b, &c);
    for( d=a; d<=b; d++){
    if (c % d = 0){
    e++;}
    else;
}
    return 0;
}





Compiler output:
main.c: In function 'main':
main.c:7:15: error: lvalue required as left operand of assignment
    7 |     if (c % d = 0){
      |               ^
Language: C

#include<stdio.h>
int main(void){
int a,b,c,i;
int d=0;
    scanf("%d %d %d", &a, &b &c);
    for(i=a;i<=b; i++){
    if (c%i==0){
    d++
}
}
printf("%d\n", d);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:30: error: invalid operands to binary & (have 'int *' and 'int')
    5 |     scanf("%d %d %d", &a, &b &c);
      |                           ~~ ^
      |                           |
      |                           int *
main.c:8:8: error: expected ';' before '}' token
    8 |     d++
      |        ^
      |        ;
    9 | }
      | ~
Language: C

#include<stdio.h>
int main(void){
int a,b,c,i;
int d=0;
    scanf("%d %d %d", &a, &b &c);
    for(i=a;i<=b; i++){
    if (c%i==0){
    d++;}
}
printf("%d\n", d);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:30: error: invalid operands to binary & (have 'int *' and 'int')
    5 |     scanf("%d %d %d", &a, &b &c);
      |                           ~~ ^
      |                           |
      |                           int *
Language: C

#include<stdio.h>
 int main()
 {
    int a,b,c;
    int i;
    int x;
    sum = 0;
    scanf("%d %d %d",&a,&b,&c);

    for(i=a;i<=b;i++){
        if(c%i==0){
            x++;
        }
    }
    printf("%d\n",x);
    return 0;
 }


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

#include <stdio.h>

int main(){
    int a, b, c;
    int count = 0;
    scanf("%d%d%d", &a, &b, &c);
    
    for(i=a;i<=b;i++){
        if(c % i == 0)
            count++;
    }
    
    printf("%d", count);
    
    return 0;
}


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

#include <stdio.h>

int main() {
	int a,b,c;
	int d = 0;
	scanf_s("%d %d %d", &a, &b, &c);
	for (int i = a; i <= b; i++) {
		if (c % i == 0) {
			d += 1;
		}
	}
	printf("%d", d);
}


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

#include<stdio.h>

 int main(){
     int i,a,b,c,count=0;
     scanf("%d%d%d",&a,&b,&c);
     for(i=a;i<b;i++){
            if(c%i==0)count++);
            else return 0;
            }
     printf("%d\n",count);
     return 0;
     }


Compiler output:
main.c: In function 'main':
main.c:7:30: error: expected ';' before ')' token
    7 |             if(c%i==0)count++);
      |                              ^
      |                              ;
main.c:7:30: error: expected statement before ')' token
main.c:8:13: error: 'else' without a previous 'if'
    8 |             else return 0;
      |             ^~~~
Language: C

#include<stdio.h>

 int main(){
     int i,a,b,c,count=0,x;
     scanf("%d%d%d",&a,&b,&c);
     for(i=a;i<b;i++){
            x=c%i;
            if(x==0)count++);
            else return 0;
            }
     printf("%d\n",count);
     return 0;
     }


Compiler output:
main.c: In function 'main':
main.c:8:28: error: expected ';' before ')' token
    8 |             if(x==0)count++);
      |                            ^
      |                            ;
main.c:8:28: error: expected statement before ')' token
main.c:9:13: error: 'else' without a previous 'if'
    9 |             else return 0;
      |             ^~~~
Language: C

#include<stdio.h>

#define MIN 1
#define MAX 10000
#define IS_ERR(n) (n < MIN || n > MAX)

int main(void)
{
    int a, b, c, i, ans=0;

    scanf("%d %d %d", &a, &b, &c);

    if(IS_ERR(a) || IS_ERR(b) || IS_ERR(c) || a > b)
    {
        return -1;
    }

    for(i=&a;i<=b;a++)
    {
        if(c % a == 0)
        {
             ans++
        }
    }

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:10: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   18 |     for(i=&a;i<=b;a++)
      |          ^
main.c:22:19: error: expected ';' before '}' token
   22 |              ans++
      |                   ^
      |                   ;
   23 |         }
      |         ~
Language: C

#include<stdio.h>
 
#define MIN 1
#define MAX 10000
#define IS_ERR(n) (n < MIN || n > MAX)
 
int main(void)
{
    int a, b, c, i, ans=0;
 
    scanf("%d %d %d", &a, &b, &c);
 
    if(IS_ERR(a) || IS_ERR(b) || IS_ERR(c) || a > b)
    {
        return -1;
    }
 
    for(i=a;i<=b;i++)
    {
        if(c % i == 0)
        {
             ans++
        }
    }
 
    printf("%d\n", ans);
 
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:19: error: expected ';' before '}' token
   22 |              ans++
      |                   ^
      |                   ;
   23 |         }
      |         ~
Language: C

#include<stdio.h>
int main(){
	int a,b,c,i=0;
	scanf("%d %d %d",&a,&b,&c);
	for(int x=a;x<=b,x++){
		if(x%c=0){
			i++;
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:29: error: expected ';' before ')' token
    5 |         for(int x=a;x<=b,x++){
      |                             ^
      |                             ;
main.c:6:23: error: lvalue required as left operand of assignment
    6 |                 if(x%c=0){
      |                       ^
Language: C

#include<stdio.h>
int main(){
	int a,b,c,i=0;
	scanf("%d %d %d",&a,&b,&c);
	for(int x=a;x<=b,x++){
		if(x%c=0){
			i++;
		}
	}
	printf("%d\n",i);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:29: error: expected ';' before ')' token
    5 |         for(int x=a;x<=b,x++){
      |                             ^
      |                             ;
main.c:6:23: error: lvalue required as left operand of assignment
    6 |                 if(x%c=0){
      |                       ^
Language: C

#include <stdio.h>

int main(){
int a,b,c,x,y;
scanf("%d %d %d",&a,&b,&c);
y = 0;
for(int x=a;x<=b; x++){
if(c%x=0) y++;
}
printf("%d\n", n);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:7: error: lvalue required as left operand of assignment
    8 | if(c%x=0) y++;
      |       ^
main.c:10:16: error: 'n' undeclared (first use in this function)
   10 | printf("%d\n", n);
      |                ^
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
int a,b,c,x,y;
scanf("%d%d%d",&a,&b,&c);
y = 0;
for(x=a;x<=b; x++){
if(c%x==0) y++;
}
printf("%d\n", n);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:16: error: 'n' undeclared (first use in this function)
   10 | printf("%d\n", n);
      |                ^
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<conio.h>
main()
{
    int a,b,c,i, count=0;
    scanf("%d%d%d",&a,&b,&c);
    for(i=a;i<=b;i++)
    {
        if(c%i==0)count++;

    }
    {
        printf("%d\n",count);
    }
}



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

#include <stdio.h>

int main(){
    int a=0,b=0,c=0;
    int rslt=0,cnt=0;
    
    scanf("%d %d %d\n",&a,&b,&c);
    
    for(int i=a,i<=b,i++)
    {
        rslt = c%i;
        if(rslt==0)
        {
            cnt++;
        }
    }
    printf("%d\n",cnt);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    9 |     for(int i=a,i<=b,i++)
      |                  ^~
main.c:19:5: error: expected expression before 'return'
   19 |     return 0;
      |     ^~~~~~
main.c:20:1: error: expected expression before '}' token
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(){  
  int a,b,c;
  int i;
  int N=0;
  scanf("%d %d &%d",&a,&b,&c);
  for(i=a;i<=b;i++){
    if(c%i==0){N++}
  }
  printf("%d\n",N);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:19: error: expected ';' before '}' token
    9 |     if(c%i==0){N++}
      |                   ^
      |                   ;
Language: C

#include<stdio.h>

int main(){
	int a,b,c,i,x,p;
	p=0;
	scanf("%d %d %d %d %d",a,b,c,i,x);
	for(i=a;i<=b;i++){
		x=c%i;
		if(x=0){
			p++
		}
	}
	printf("%d\n",p);
	
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:28: error: expected ';' before '}' token
   10 |                         p++
      |                            ^
      |                            ;
   11 |                 }
      |                 ~
Language: C

#include<stdio.h>

int main(){
	int a,b,c,i,x,p;
	p=0;
	scanf("%d %d %d %d %d",&a,&b,&c,&i,&x);
	for(i=a;i<=b;i++){
		x=c%i;
		if(x=0){
			p++
		}
	}
	printf("%d\n",p);
	
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:28: error: expected ';' before '}' token
   10 |                         p++
      |                            ^
      |                            ;
   11 |                 }
      |                 ~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a,n <= b,i++){
    if(c % n == 0)
    printf("%d %d %d\n,a,b,c);
   
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:23: error: expected ';' before ')' token
    9 |   for(n = a,n <= b,i++){
      |                       ^
      |                       ;
main.c:9:23: error: expected expression before ')' token
main.c:11:12: warning: missing terminating " character
   11 |     printf("%d %d %d\n,a,b,c);
      |            ^
main.c:11:12: error: missing terminating " character
   11 |     printf("%d %d %d\n,a,b,c);
      |            ^~~~~~~~~~~~~~~~~~~
main.c:14:1: error: expected expression before 'return'
   14 | return 0;
      | ^~~~~~
main.c:14:10: error: expected ';' before '}' token
   14 | return 0;
      |          ^
      |          ;
   15 | }
      | ~         
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  n = 0;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a,n <= b,i++){
    if(c % n == 0)
    printf("%d %d %d\n,a,b,c);
   
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ';' before ')' token
   10 |   for(n = a,n <= b,i++){
      |                       ^
      |                       ;
main.c:10:23: error: expected expression before ')' token
main.c:12:12: warning: missing terminating " character
   12 |     printf("%d %d %d\n,a,b,c);
      |            ^
main.c:12:12: error: missing terminating " character
   12 |     printf("%d %d %d\n,a,b,c);
      |            ^~~~~~~~~~~~~~~~~~~
main.c:15:1: error: expected expression before 'return'
   15 | return 0;
      | ^~~~~~
main.c:15:10: error: expected ';' before '}' token
   15 | return 0;
      |          ^
      |          ;
   16 | }
      | ~         
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
       
  scanf("%d %d %d",a,b,c);
  for(n = a,n <= b,i++){
   if(c % n == 0)
  printf("%d\n",&i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ';' before ')' token
    8 |   for(n = a,n <= b,i++){
      |                       ^
      |                       ;
main.c:8:23: error: expected expression before ')' token
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
       
  scanf("%d %d %d",a,b,c);
  for(n = a,n <= b,i++);
   if(c % n == 0)
  printf("%d\n",&i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ';' before ')' token
    8 |   for(n = a,n <= b,i++);
      |                       ^
      |                       ;
main.c:8:23: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
       
  scanf("%d %d %d",a,b,c);
  for(n = a,n <= b,i++)
   if(c % n == 0)
  printf("%d\n",&i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ';' before ')' token
    8 |   for(n = a,n <= b,i++)
      |                       ^
      |                       ;
main.c:8:23: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  n = 0;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a,n <= b,i++){
    if(c % n == 0)
    printf("%d\n",c);
    
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ';' before ')' token
   10 |   for(n = a,n <= b,i++){
      |                       ^
      |                       ;
main.c:10:23: error: expected expression before ')' token
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
       
  scanf("%d %d %d",a,b,c);
  for(n = a,n <= b,i++)
   if(c % n == 0)
  printf("%d\n",i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ';' before ')' token
    8 |   for(n = a,n <= b,i++)
      |                       ^
      |                       ;
main.c:8:23: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  n = 0;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a,n <= b,i++){
    if(c % n == 0)
    printf("%d\n",c);
}
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ';' before ')' token
   10 |   for(n = a,n <= b,i++){
      |                       ^
      |                       ;
main.c:10:23: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  n = 0;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a,n <= b,n++){
    if(c % n == 0)
    printf("%d\n",n);
}
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ';' before ')' token
   10 |   for(n = a,n <= b,n++){
      |                       ^
      |                       ;
main.c:10:23: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  i = 0;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a,n <= b,n++){
    if(c % n == 0)
  i++;
    printf("%d\n",i);
}
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:23: error: expected ';' before ')' token
   10 |   for(n = a,n <= b,n++){
      |                       ^
      |                       ;
main.c:10:23: error: expected expression before ')' token
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,n,i;
  i = 0;
  scanf("%d %d %d",&a,&b,&c); 
  
  
  for(n = a:n <= b:n++){
    if(c % n == 0)
  i++;
    printf("%d\n",i);
}
    
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected ';' before ':' token
   10 |   for(n = a:n <= b:n++){
      |            ^
      |            ;
main.c:10:23: error: expected expression before ')' token
   10 |   for(n = a:n <= b:n++){
      |                       ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
  
i=0     
  scanf("%d %d %d",a,b,c);
  for(n = a;n <= b;n++)
   if(c % n == 0)
   i++;
   printf("%d\n",i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:4: error: expected ';' before 'scanf'
    7 | i=0
      |    ^
      |    ;
    8 |   scanf("%d %d %d",a,b,c);
      |   ~~~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
  
  i=0     
  scanf("%d %d %d",a,b,c);
  for(n = a;n <= b;n++)
   if(c % n == 0)
   i++;
   printf("%d\n",i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'scanf'
    7 |   i=0
      |      ^
      |      ;
    8 |   scanf("%d %d %d",a,b,c);
      |   ~~~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
  
  i=0     
  scanf("%d %d %d\n",a,b,c);
  for(n = a;n <= b;n++)
   if(c % n == 0)
   i++;
   printf("%d\n",i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'scanf'
    7 |   i=0
      |      ^
      |      ;
    8 |   scanf("%d %d %d\n",a,b,c);
      |   ~~~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
  
  i=0     
  scanf("%d %d %d",&a,&b,&c);
  for(n = a;n <= b;n++)
   if(c % n == 0)
   i++;
   printf("%d\n",i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'scanf'
    7 |   i=0
      |      ^
      |      ;
    8 |   scanf("%d %d %d",&a,&b,&c);
      |   ~~~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;
  
  i=0     
  scanf("%d %d %d",&a,&b,&c);
  for(n = a;n <= b;n++)[
   if(c % n == 0)
   i++;
]
   printf("%d\n",i);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'scanf'
    7 |   i=0
      |      ^
      |      ;
    8 |   scanf("%d %d %d",&a,&b,&c);
      |   ~~~~~
main.c:9:24: error: expected expression before '[' token
    9 |   for(n = a;n <= b;n++)[
      |                        ^
main.c:12:2: error: expected ';' before 'printf'
   12 | ]
      |  ^
      |  ;
   13 |    printf("%d\n",i);
      |    ~~~~~~
Language: C

#include<stdio.h>
int main(void){
    int a, b, c;
    int i;
    scanf("%d %d %d", &a, &b, &c);
    for(a<b;a++){
        if(c%a==0){
            i++;
        }
    }
    printf("%d",i);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected ';' before ')' token
    6 |     for(a<b;a++){
      |                ^
      |                ;
Language: C

#include<stdui.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    int d=0;
    for(int i=a;i<=b;i++){
        if(c%i==0){
            d++;
        }
    }
    printf("%d\n",d);
    return 0;
}


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

#include<stdio.h>
int main(){
    int a,b,c,d;
    scanf("%d %d %d",%a,%b,&c);
    for(a<=b;a++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
main.c:5:17: error: expected ';' before ')' token
    5 |     for(a<=b;a++){
      |                 ^
      |                 ;
main.c:7:13: error: 'sum' undeclared (first use in this function)
    7 |             sum++;
      |             ^~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
    int a,b,c,sum;
    scanf("%d %d %d",%a,%b,&c);
    for(a<=b;a++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
main.c:5:17: error: expected ';' before ')' token
    5 |     for(a<=b;a++){
      |                 ^
      |                 ;
Language: C

#include<stdio.h>
int main(){
    int a,b,c,sum;
    scanf("%d %d %d",%a,%b,&c);
    for(a<b;a++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
main.c:5:16: error: expected ';' before ')' token
    5 |     for(a<b;a++){
      |                ^
      |                ;
Language: C

#include<stdio.h>
int main(){
    int a,b,c,d,sum;
    scanf("%d %d %d",%a,%b,&c);
    for(d+=a;a<b;d++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
Language: C

#include<stdio.h>
int main(){
    int a,b,c,d,sum=0;
    scanf("%d %d %d",%a,%b,&c);
    for(d+=a;a<b;d++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
Language: C

#include<stdio.h>
int main(){
    int a,b,c,d,sum=0;
    scanf("%d %d %d",%a,%b,&c);
    for(d=a;a<b;d++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
Language: C

#include<stdio.h>
int main(){
    int a,b,c,d,sum=0;
    scanf("%d %d %d",%a,%b,&c);
    for(d=a;d<b;d++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
Language: C

#include<stdio.h>
int main(){
    int a,b,c,d,sum=0;
    scanf("%d %d %d",%a,%b,&c);
    for(d=a;d<b;d++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d\n",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
Language: C

#include<stdio.h>
int main(){
    int a,b,c,d,sum=0;
    scanf("%d %d %d",%a,%b,&c);
    for(d=a;d<=b;d++){
        if(c%a==0){
            sum++;
        }
    }
    printf("%d\n",sum);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d %d",%a,%b,&c);
      |                      ^
Language: C

#include <stdio.h>

int main(int argc, char const *argv[])
{
  int a, b, c, ans=0;
  scanf("%d %d %d", &a, %b, %c);

  while(a <= b)
  {
    if((c % a++) == 0)
      ans = 0;
  }
  prntf("%d\n", ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected expression before '%' token
    6 |   scanf("%d %d %d", &a, %b, %c);
      |                         ^
main.c:13:3: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |   prntf("%d\n", ans);
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>

int main(void) {
int cnt,a,b,c,num;
scanf("%d %d %d\n",&a,&b,&c);
num=a;cnt=0;
while((num<=b)){
if(c%num==0){
cnt++;
}
num++;
}
printf"%d\n",cnt);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: expected ';' before string constant
   13 | printf"%d\n",cnt);
      |       ^~~~~~
      |       ;
main.c:13:17: error: expected statement before ')' token
   13 | printf"%d\n",cnt);
      |                 ^
Language: C

#include<stdio.h>
int main(){
?
int a,b,c,yaku=0,i;
?
scanf("%d %d %d",&a,&b,&c);
?
for(i = a ; i <= b ; i++){
??????if(c%i == 0) yaku++;
}
?
printf("%d\n",yaku);
?
return 0;
?
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ?
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ?
      | ^
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 | scanf("%d %d %d",&a,&b,&c);
      |                   ^
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: 'b' undeclared (first use in this function)
    6 | scanf("%d %d %d",&a,&b,&c);
      |                      ^
main.c:6:25: error: 'c' undeclared (first use in this function)
    6 | scanf("%d %d %d",&a,&b,&c);
      |                         ^
main.c:7:1: error: expected expression before '?' token
    7 | ?
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ?
      | ^
main.c:15:1: error: expected expression before '?' token
   15 | ?
      | ^
Language: C

#include<stdio.h>
main(){
int a,b,c,i,c;
scanf("%d%d%d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0) c++;
}
printf("%d",c);
return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:13: error: redeclaration of 'c' with no linkage
    3 | int a,b,c,i,c;
      |             ^
main.c:3:9: note: previous declaration of 'c' with type 'int'
    3 | int a,b,c,i,c;
      |         ^
Language: C

#include<stdio.h>
int main(void){
	int a, b, c, cnt = 0;
	scanf("%d %d %d", &a, &b, &c);
	for(i = a;i <= b;i++);
		if(c % i == 0){
			cnt++;
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'i' undeclared (first use in this function)
    5 |         for(i = a;i <= b;i++);
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:10:9: error: expected identifier or '(' before 'return'
   10 |         return 0;
      |         ^~~~~~
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int a, b, c, cnt = 0;
	scanf("%d %d %d", &a, &b, &c);
	for(i = a;i <= b;i++){
		if(c % i == 0){
			cnt++;
		}
	}
	return 0;
}

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

#include<stdio.h>
int main(void){
	int a, b, c, cnt = 0;
	scanf("%d %d %d", &a, &b, &c);
	for(i = a;i <= b;i++){
		if(c % i == 0){
			cnt = cnt++;
		}
	}
	return 0;
}

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

#include<stdio.h>
int main(void){
	int a, b, c, cnt = 0;
	scanf("%d %d %d", &a, &b, &c);
	for(i = a;i <= b;i++){
		if(c % i == 0){
			cnt = cnt + 1;
		}
	}
	return 0;
}

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

#include<stdio.h>
int main(void){
	int a, b, c, cnt = 0;
	scanf("%d %d %d", &a, &b, &c);
	for(i = a;i <= b;i++){
		if((c % i) == 0){
			cnt = cnt + 1;
		}
	}
	return 0;
}

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

#include<stdio.h>
int main(void){
	int a, b, c, d, cnt = 0;
	scanf("%d %d %d", &a, &b, &c);
	for(i = a;i <= b;i++){
                d = c % i;
		if(d == 0){
			cnt = cnt + 1;
		}
	}
	return 0;
}

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