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

#include <iostream>
#include <cmath>
using namespace std;
int main(void) {
    int n, m=1;
    cin >> n;
    for(int i=0;i<n;i++) {
        m = (m * i+1) % (pow(10, 9) + 7);
    }
    cout << m << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
    8 |         m = (m * i+1) % (pow(10, 9) + 7);
      |             ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~
      |                   |                 |
      |                   int               __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include<stdio.h>
#include<string.h>
#define maxn 1000000007
main()
{
    int i,j;
    __int64 n,s;
    while(scanf("%I64d",&n)!=EOF)
    {s=1;
    for(i=1;i<=n;i++)
        {s=s*i;
        s=s%maxn;
       }
    printf("%I64d\n",s%maxn);
    }
}


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:5: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
    7 |     __int64 n,s;
      |     ^~~~~~~
      |     __int64_t
a.cc:8:26: error: 'n' was not declared in this scope
    8 |     while(scanf("%I64d",&n)!=EOF)
      |                          ^
a.cc:9:6: error: 's' was not declared in this scope
    9 |     {s=1;
      |      ^
Language: C++

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

int main(int argc, char const *argv[])
{
  unsigned __int64 power = 1;
  int N;
  cin >> N;
  for(int i = 1; i <= N; ++i)
    power = i * power % 1000000007;
  cout << power << flush;
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:20: error: expected initializer before 'power'
    6 |   unsigned __int64 power = 1;
      |                    ^~~~~
a.cc:10:5: error: 'power' was not declared in this scope
   10 |     power = i * power % 1000000007;
      |     ^~~~~
a.cc:11:11: error: 'power' was not declared in this scope
   11 |   cout << power << flush;
      |           ^~~~~
Language: C

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

int main()
{
    __int64 s = 1;
    int i,x;
    scanf("%d",&x);
    for(i = 1;i <=x;i++)
    {
        s *=i;
        if(s>=1000000007)
        s %=1000000007;
    }
    printf("%I64d\n",s);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: unknown type name '__int64'; did you mean '__int64_t'?
    6 |     __int64 s = 1;
      |     ^~~~~~~
      |     __int64_t
Language: C

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

int main()
{
    int n,i;
    while(scanf("%d",&n)!=EOF)
    {
        __int64 sum=1;
        for(i=1;i<=n;i++)
        {
            sum=(i*sum)%1000000007;
        }
            printf("%I64d\n",sum);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: unknown type name '__int64'; did you mean '__int64_t'?
    9 |         __int64 sum=1;
      |         ^~~~~~~
      |         __int64_t
Language: C

#include<stdio.h>
int main()
{
    __int64 i,j=1e9+7,l,k;
    while(~scanf("%I64d",&l))
    {
        k=1;
        for(i=1;i<=l;i++)
            k=k*i%j;
        printf("%I64d\n",k);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name '__int64'; did you mean '__int64_t'?
    4 |     __int64 i,j=1e9+7,l,k;
      |     ^~~~~~~
      |     __int64_t
Language: C

#include <stdio.h>
int main()
{
    int n,i;
    long long sum;
    scanf("%d",&n);
    if(n == 1)
    {
        printf("1\n");
    }
    else
    {
        for(i = 1,s0um = 1; i <= n; i++)
            sum =(sum % (1000000000+7)) * (i %(1000000000+7));
        printf("%lld\n",sum%(1000000000+7));
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:19: error: 's0um' undeclared (first use in this function); did you mean 'sum'?
   13 |         for(i = 1,s0um = 1; i <= n; i++)
      |                   ^~~~
      |                   sum
main.c:13:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main()
{
    int n,i;
    __int64 sum;
    scanf("%d",&n);
    if(n == 1)
    {
        printf("1\n");

    }
    else
    {
        for(i = 1,sum = 1; i <= n; i++)
            sum =(sum % (1000000000+7)) * (i %(1000000000+7));
        printf("%I64d\n",sum%(1000000000+7));
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name '__int64'; did you mean '__int64_t'?
    5 |     __int64 sum;
      |     ^~~~~~~
      |     __int64_t
Language: Java

public class Main2{
	public static void main(String[] args){
		int n = new java.util.Scanner(System.in).nextInt();
		int pow = 1;
		for (int i=1; i<=n; i++){
			pow = i*pow%1000000007;
		}
		System.out.println(pow);
	}
}

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

package spring;

public class atcoder {
	public static void main(String[] args){
		int n=10,i,a=1;
		for(i=1;i<n+1;i++){
		a=a*i;
		}
		System.out.println(a);
	} 
}


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

import java.util.Scanner;

public class TrainingCamp {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
                int N = sc.nextInt();
                long power = 1;
        
               for(int i = 1; i <= N; i++) {
                 power = (power * (long)i) % 1000000007;
          }
                System.out.println(power);
          
	}

}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ans = ;
		long a = (long)(Math.pow(10, 9) + 7);
		for(int i = 0; i <= n; i++){
			ans = i * ans % a;
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:7: error: illegal start of expression
		long ans = ;
		           ^
1 error
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ans = 0;
		long a = (long)(Math.pow(10, 9) + 7);
		for(int i = 0; i < n; i++){
			ans = i * ans % a;
		}
		System.out.println(ans);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long ans = 0, a;
		a = (long)(Math.pow(10, 9) + 7);
		for(int i = 0; i < n; i++){
			ans = i * ans % a;
		}
		System.out.println(ans);;
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: Java

import java.util.*; 
public class Main {
    public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int N = sc.nextInt();
 int i;
 double pow=1;
 double ans = 1;
 for(i = 1; i <= N; i++){
     pow = pow * i;
  ans = pow %(Math.pow(10.0,9.0)+7.0);
 }
pow = ans;
System.out.println((int)ans);
     }
 }


Compiler output:
Main.java:1: error: illegal character: '\u00a0'
import java.util.*;?
                   ^
1 error
Language: Java

import java.util.*; 
public class Main {
    public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int N = sc.nextInt();
 int i;
 double pow=1;
 double ans = 1;
 for(i = 1; i < N; i++){
     pow = pow * i;
  ans = pow %(Math.pow(10.0,9.0)+7.0);
 }
pow = ans;
System.out.println((int)ans);
     }
 }


Compiler output:
Main.java:1: error: illegal character: '\u00a0'
import java.util.*;?
                   ^
1 error
Language: Java

import java.util.*; 
public class Main {
    public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int N = sc.nextInt();
 int i;
 double pow=1;
 double ans = 1;
 for(i = 1; i < N; i++){
     pow = pow * i;
  ans = pow %(Math.pow(10.0,9.0)+7.0);
 }
pow = ans;
System.out.println((int)ans);
  
     }
 }


Compiler output:
Main.java:1: error: illegal character: '\u00a0'
import java.util.*;?
                   ^
Main.java:15: error: illegal character: '\u00a0'
 ?
 ^
2 errors
Language: Java

import java.util.*; 
public class Main {
    public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int N = sc.nextInt();
 int i;
 double pow=1;
 double ans = 1;
 for(i = 1; i < N; i++){
     pow = pow * i;
  ans = pow %(Math.pow(10.0,9.0)+7.0);
pow = ans;
 }
System.out.println((int)ans);
  
     }
 }


Compiler output:
Main.java:1: error: illegal character: '\u00a0'
import java.util.*;?
                   ^
Main.java:15: error: illegal character: '\u00a0'
 ?
 ^
2 errors
Language: Java

2. import java.util.*;
3.  
4. public class Main {
5.     public static void main(String[] args){
6. Scanner sc = new Scanner(System.in);
7. int N = sc.nextInt();
8. int i;
9. double pow=1;
10. double ans = 1;
11. for(i = 1; i < N; i++){
12.     pow = pow * i;
13.  double ans = pow %(Math.pow(10.0,9.0)+7.0);
14. }
15. System.out.println((int)ans);
16.  
17.     }
18. }


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
2. import java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
3. ?
^
Main.java:2: error: illegal character: '\u00a0'
3. ?
   ^
Main.java:4: error: illegal start of type
5.     public static void main(String[] args){
^
Main.java:5: error: not a statement
6. Scanner sc = new Scanner(System.in);
^
Main.java:5: error: ';' expected
6. Scanner sc = new Scanner(System.in);
  ^
Main.java:6: error: not a statement
7. int N = sc.nextInt();
^
Main.java:6: error: ';' expected
7. int N = sc.nextInt();
  ^
Main.java:7: error: not a statement
8. int i;
^
Main.java:7: error: ';' expected
8. int i;
  ^
Main.java:8: error: not a statement
9. double pow=1;
^
Main.java:8: error: ';' expected
9. double pow=1;
  ^
Main.java:9: error: not a statement
10. double ans = 1;
^
Main.java:9: error: ';' expected
10. double ans = 1;
   ^
Main.java:10: error: not a statement
11. for(i = 1; i < N; i++){
^
Main.java:10: error: ';' expected
11. for(i = 1; i < N; i++){
   ^
Main.java:11: error: not a statement
12.     pow = pow * i;
^
Main.java:11: error: ';' expected
12.     pow = pow * i;
   ^
Main.java:12: error: not a statement
13.  double ans = pow %(Math.pow(10.0,9.0)+7.0);
^
Main.java:12: error: ';' expected
13.  double ans = pow %(Math.pow(10.0,9.0)+7.0);
   ^
Main.java:13: error: not a statement
14. }
^
Main.java:13: error: ';' expected
14. }
   ^
Main.java:14: error: not a statement
15. System.out.println((int)ans);
^
Main.java:14: error: ';' expected
15. System.out.println((int)ans);
   ^
Main.java:15: error: illegal character: '\u00a0'
16. ?
    ^
Main.java:15: error: not a statement
16. ?
^
Main.java:17: error: illegal start of type
18. }
^
27 errors
Language: Java

2. import java.util.*;
3.  
4. public class Main {
5.     public static void main(String[] args){
6. Scanner sc = new Scanner(System.in);
7. int N = sc.nextInt();
8. int i;
9. double pow=1;
10. double ans = 1;
11. for(i = 1; i < N; i++){
12.     pow = pow * i;
13.     double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
14. }
15. System.out.println((int)ans);
16.  
17.     }
18. }


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
2. import java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
3. ?
^
Main.java:2: error: illegal character: '\u00a0'
3. ?
   ^
Main.java:4: error: illegal start of type
5.     public static void main(String[] args){
^
Main.java:5: error: not a statement
6. Scanner sc = new Scanner(System.in);
^
Main.java:5: error: ';' expected
6. Scanner sc = new Scanner(System.in);
  ^
Main.java:6: error: not a statement
7. int N = sc.nextInt();
^
Main.java:6: error: ';' expected
7. int N = sc.nextInt();
  ^
Main.java:7: error: not a statement
8. int i;
^
Main.java:7: error: ';' expected
8. int i;
  ^
Main.java:8: error: not a statement
9. double pow=1;
^
Main.java:8: error: ';' expected
9. double pow=1;
  ^
Main.java:9: error: not a statement
10. double ans = 1;
^
Main.java:9: error: ';' expected
10. double ans = 1;
   ^
Main.java:10: error: not a statement
11. for(i = 1; i < N; i++){
^
Main.java:10: error: ';' expected
11. for(i = 1; i < N; i++){
   ^
Main.java:11: error: not a statement
12.     pow = pow * i;
^
Main.java:11: error: ';' expected
12.     pow = pow * i;
   ^
Main.java:12: error: not a statement
13.     double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
^
Main.java:12: error: ';' expected
13.     double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
   ^
Main.java:13: error: not a statement
14. }
^
Main.java:13: error: ';' expected
14. }
   ^
Main.java:14: error: not a statement
15. System.out.println((int)ans);
^
Main.java:14: error: ';' expected
15. System.out.println((int)ans);
   ^
Main.java:15: error: illegal character: '\u00a0'
16. ?
    ^
Main.java:15: error: not a statement
16. ?
^
Main.java:17: error: illegal start of type
18. }
^
27 errors
Language: Java

import java.util.*;  
public class Main{
   public static void main(String[] args){
	   Scanner sc = new Scanner(System.in);
	   int N = sc.nextInt();
	   int i;
	   int pow=1;
	   double ans=1;
 for(i = 1; i <= N; i++){
     pow = pow * i;
     ans = pow % (Math.pow(10.0,9.0)+7.0);
     pow=ans;
 }
 System.out.println((int)ans);
     }
 }

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from double to int
     pow=ans;
         ^
1 error
Language: Java

import java.util.*;  
public class Main {
   public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int N = sc.nextInt();
 int i;
 int pow=1;
 for(i = 1; i < N; i++){
     pow = pow * i;
     double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
 }
 System.out.println((int)ans);
     }
 }


Compiler output:
Main.java:1: error: illegal character: '\u00a0'
import java.util.*; ?
                    ^
1 error
Language: Java

 import java.util.*;  
public class Main {
   public static void main(String[] args){
 Scanner sc = new Scanner(System.in);
 int N = sc.nextInt();
 int i;
 int pow=1;
 for(i = 1; i < N; i++){
     pow = pow * i;
     double ans = (double)pow % (Math.pow(10.0,9.0)+7.0);
 }
 System.out.println((int)ans);
     }
 }


Compiler output:
Main.java:1: error: illegal character: '\u00a0'
 import java.util.*; ?
                     ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
Scanner sc = new Scanner(System.in);
 int n = sc.nextInt();
int i;
for(i = 1; i < n; i++){
    int pow = pow * i;
    int ans = pow % (Math.pow(10.0,9.0)+7.0);
}
System.out.println(ans);

    }
}

Compiler output:
Main.java:5: error: illegal character: '\u2028'
?int n = sc.nextInt();
^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
Scanner sc = new Scanner(System.in);
 int n = sc.nextInt();
int i;
for(i = 1; i < n; i++){
    int pow = pow * i;
    int ans = pow % (Math.pow(10.0,9.0)+7.0)
}
System.out.println(ans);

    }
}

Compiler output:
Main.java:5: error: illegal character: '\u2028'
?int n = sc.nextInt();
^
Main.java:9: error: ';' expected
    int ans = pow % (Math.pow(10.0,9.0)+7.0)
                                            ^
2 errors
Language: Java

public class Main{
  public static void main(String[] args){
Scanner sc = new Scanner(System.in);
 int n = sc.nextInt();
int i;
for(i = 1; i < n; i++){
    int pow = pow * i;
    int ans = pow % (Math.pow(10.0,9.0)+7.0)
}
System.out.println(ans);

    }
}

Compiler output:
Main.java:4: error: illegal character: '\u2028'
?int n = sc.nextInt();
^
Main.java:8: error: ';' expected
    int ans = pow % (Math.pow(10.0,9.0)+7.0)
                                            ^
2 errors
Language: Java

public class Main{
  public static void main(String[] args){
Scanner sc = new Scanner(System.in);
 int n = sc.nextInt();
int i;
for(i = 1; i < n; i++){
    int pow = pow * i;
    int ans = pow % (10^9+7);
}
System.out.println(ans);

    }
}

Compiler output:
Main.java:4: error: illegal character: '\u2028'
?int n = sc.nextInt();
^
1 error
Language: Java

public class Main{
  public static void main(String[] args){
Scanner sc = new Scanner(System.in);
 int n = sc.nextInt();int i;
for(i = 1; i < n; i++){
    int pow = pow * i;
    int ans = pow % (10^9+7);
}
System.out.println(ans);

    }
}

Compiler output:
Main.java:4: error: illegal character: '\u2028'
?int n = sc.nextInt();int i;
^
1 error
Language: C++

//簡易競プロテンプレ
#include<bits/stdc++.h>
using namespace std;
int main(void){
 int n; cin >> n;
 ll ans = 1;
 for(int i=1;i<=n;i++) ans = ans * i % 1000000007;
 cout << ans << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'll' was not declared in this scope
    6 |  ll ans = 1;
      |  ^~
a.cc:7:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |  for(int i=1;i<=n;i++) ans = ans * i % 1000000007;
      |                        ^~~
      |                        abs
a.cc:8:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |  cout << ans << endl;
      |          ^~~
      |          abs
Language: Java

import java.util.*;
public class ABC055_B {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt(),x=1;
		for(int i=1;i<=N;i++){
			x=x*i;
		}
		System.out.println((int)(x%(Math.pow(10,9)+7)));
	}
}

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

package spring21;

public class ABC055_B {
	public static void main(String[] args){
		int N=10,x=1;
		for(int i=1;i<=N;i++){
			x=x*i;
		}
		System.out.println(x);
	}
}

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

mod=10**9+7
n=gets.to_i

puts (1..n).inject(1, :*)%mod

Compiler output:
a.cc:4:7: error: too many decimal points in number
    4 | puts (1..n).inject(1, :*)%mod
      |       ^~~~
a.cc:1:1: error: 'mod' does not name a type
    1 | mod=10**9+7
      | ^~~
Language: Java

import java.util.Scanner;

public class Main {
	public static void main (String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int N = scanner.nextInt();
		int num = 1;
		int power = 1;
		for (int i  = 1 ; i <= N ; i++){
			num *=  i;
		}
		power = num % (Math.pow(10,9) + 7);
		System.out.println(power);
	}
}

Compiler output:
Main.java:13: error: incompatible types: possible lossy conversion from double to int
		power = num % (Math.pow(10,9) + 7);
		            ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
    int N;
    cin >> N;

    long long ans = 1:

    for(int i =1;j<=N;j++){
      ans =ans*j%1000000007;
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ',' or ';' before ':' token
    7 |     long long ans = 1:
      |                      ^
a.cc:9:18: error: 'j' was not declared in this scope
    9 |     for(int i =1;j<=N;j++){
      |                  ^
Language: Java

import java.util.*;

public class Playground2 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int n = in.nextInt();
		long a = 1;
		for (long i = 1; i <= n; i++) {
			a = a * i % 1000000007;
		}
		System.out.println(a);
	}
	
}

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

#include <stdio.h>
int main()
{
	double power=1;
	double int,num; 
	
	
	scanf("%lf",&num); 
	for(i=1;i<=num;i++){
		power=(power*i)%1000000007;
	};
	
	printf("%f",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: two or more data types in declaration specifiers
    5 |         double int,num;
      |                ^~~
main.c:5:19: error: expected identifier or '(' before ',' token
    5 |         double int,num;
      |                   ^
main.c:8:22: error: 'num' undeclared (first use in this function)
    8 |         scanf("%lf",&num);
      |                      ^~~
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'i' undeclared (first use in this function)
    9 |         for(i=1;i<=num;i++){
      |             ^
Language: C

#include <stdio.h>
int main()
{
	double power=1;
	int i,num; 
	
	
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=(power*i)%1000000007;
	};
	
	printf("%f",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:32: error: invalid operands to binary % (have 'double' and 'int')
   10 |                 power=(power*i)%1000000007;
      |                       ~~~~~~~~~^
      |                             |
      |                             double
Language: C

#include <stdio.h>
int main()
{
	double num,i; 
	int power=1; 
	scanf("%lf",&num); 
	for(i=1;i<=num;i++){
		power=(power*i)%1000000007;
	};
	
	printf("%f",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:32: error: invalid operands to binary % (have 'double' and 'int')
    8 |                 power=(power*i)%1000000007;
      |                       ~~~~~~~~~^
      |                             |
      |                             double
Language: C

#include <stdio.h>
int main()
{
	double num,i; 
	int power=1; 
	scanf("%lf",&num); 
	for(i=1;i<=num;i++){
		power=(power*i)%1000000007;
	};
	
	printf("%d",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:32: error: invalid operands to binary % (have 'double' and 'int')
    8 |                 power=(power*i)%1000000007;
      |                       ~~~~~~~~~^
      |                             |
      |                             double
Language: C

#include <stdio.h>
int main()
{
	double num,i; 
	int power=1; 
	scanif("%f",&num); 
	for(i=1;i<=num;i++){
		power=(power*i)%1000000007;
	};
	
	printf("%d",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanif'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanif("%f",&num);
      |         ^~~~~~
      |         scanf
main.c:8:32: error: invalid operands to binary % (have 'double' and 'int')
    8 |                 power=(power*i)%1000000007;
      |                       ~~~~~~~~~^
      |                             |
      |                             double
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=(power*i)%1000000007
	};
	
	printf("%d",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:43: error: expected ';' before '}' token
    8 |                 power=(power*i)%1000000007
      |                                           ^
      |                                           ;
    9 |         };
      |         ~
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i%1000000007
	};
	
	printf("%d",power);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:41: error: expected ';' before '}' token
    8 |                 power=power*i%1000000007
      |                                         ^
      |                                         ;
    9 |         };
      |         ~
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i mod 1000000007
	};
	
	printf("%d",power%1000000007);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ';' before 'mod'
    8 |                 power=power*i mod 1000000007
      |                              ^~~~
      |                              ;
Language: C

#include <stdio.h>
int main()
{
	int num,ans,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i;
	};
	
	ans=power%1000000007
	
	printf("%d",ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:29: error: expected ';' before 'printf'
   11 |         ans=power%1000000007
      |                             ^
      |                             ;
   12 | 
   13 |         printf("%d",ans);
      |         ~~~~~~
Language: C

#include <stdio.h>
int main(void)
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i;
	};
}
#include<math.h>
{
	printf("%d",(power%1000000007));
	return 0;
}

Compiler output:
main.c:12:1: error: expected identifier or '(' before '{' token
   12 | {
      | ^
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i;
	};
	
	printf("%d\n",power%(10^9)+7;
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:32: warning: result of '10^9' is 3; did you mean '1e9'? [-Wxor-used-as-pow]
   11 |         printf("%d\n",power%(10^9)+7;
      |                                ^
      |                              ---
      |                              1e
main.c:11:30: note: you can silence this warning by using a hexadecimal constant (0xa rather than 10)
   11 |         printf("%d\n",power%(10^9)+7;
      |                              ^~
      |                              0xa
main.c:11:37: error: expected ')' before ';' token
   11 |         printf("%d\n",power%(10^9)+7;
      |               ~                     ^
      |                                     )
main.c:12:18: error: expected ';' before '}' token
   12 |         return 0;
      |                  ^
      |                  ;
   13 | }
      | ~
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i;
	};
	
	Printf("%d\n",power%1000000009);
	Return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         Printf("%d\n",power%1000000009);
      |         ^~~~~~
      |         printf
main.c:12:9: error: 'Return' undeclared (first use in this function)
   12 |         Return 0;
      |         ^~~~~~
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:15: error: expected ';' before numeric constant
   12 |         Return 0;
      |               ^~
      |               ;
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i
	};
	
	Printf("%d\n",power%1000000009);
	Return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ';' before '}' token
    8 |                 power=power*i
      |                              ^
      |                              ;
    9 |         };
      |         ~                     
main.c:11:9: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         Printf("%d\n",power%1000000009);
      |         ^~~~~~
      |         printf
main.c:12:9: error: 'Return' undeclared (first use in this function)
   12 |         Return 0;
      |         ^~~~~~
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:15: error: expected ';' before numeric constant
   12 |         Return 0;
      |               ^~
      |               ;
Language: C

#include <stdio.h>
int main()
{
	int num,i; 
	int power=1; 
	scanf("%d",&num); 
	for(i=1;i<=num;i++){
		power=power*i
	}
	
	Printf("%d\n",power%1000000009);
	Return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ';' before '}' token
    8 |                 power=power*i
      |                              ^
      |                              ;
    9 |         }
      |         ~                     
main.c:11:9: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         Printf("%d\n",power%1000000009);
      |         ^~~~~~
      |         printf
main.c:12:9: error: 'Return' undeclared (first use in this function)
   12 |         Return 0;
      |         ^~~~~~
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:15: error: expected ';' before numeric constant
   12 |         Return 0;
      |               ^~
      |               ;
Language: C++

#include <iostream>

int main() {
int N;
std::cin >> N;
int remainder = 1;
for (int i = 1; i <= N; i++) {
  remainder *= i;
  remainder = remainder % (int)(7+1e+9)
}
std::cout << remainder << std::endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected ';' before '}' token
    9 |   remainder = remainder % (int)(7+1e+9)
      |                                        ^
      |                                        ;
   10 | }
      | ~
Language: Java

public class Main {
	public static int MOD = 1_000_000_000 + 7;

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

		int n = sc.nextInt();
		long power = 1;
		for(int i = 1; i <= n; i++) {
			power *= i;
			power %= MOD;
		}

		System.out.println(power);
	}
}


Compiler output:
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
2 errors
Language: C++

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
int N, pre_p = cur_p = 1;
cin >> N;
for (int i = 1; i < N; i++)
{
pre_p = cur_p;
cur_p = pre_p * i;
}

cout << cur_p % (pow(10,9) + 7);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'cur_p' was not declared in this scope
    8 | int N, pre_p = cur_p = 1;
      |                ^~~~~
Language: C++

include<stdio.h>
#define mod 1000000009
int main(void){
long long int N,i,ans=1;
scanf("%lld",&N);
for(i=1;i<=N;i++){
ans*=i;
ans%=mod;
}
printf("%lld\n",ans);
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

include<stdio.h>
#define mod 1000000009
int main(void){
long long int N,i,ans=1;
scanf("%lld",&N);
for(i=1;i<=N;i++){
ans*=i;
ans%=mod;
}
printf("%d\n",ans);
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define MOD (ll)1e9+7
#define MAX(X,Y) ((X)>(Y)?(X):(Y))
#define MIN(X,Y) ((X)<(Y)?(X):(Y))


int fact(int x)
{
    int res = 1;
    for(int i=1;i<=x;i++){
        res *= i;
        res %= CCC;
    }
    return res;
}


int main()
{
    int x;
    cin>>x;
    cout<<fact(x)<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int fact(int)':
a.cc:14:16: error: 'CCC' was not declared in this scope
   14 |         res %= CCC;
      |                ^~~
Language: C++

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

ll fact(int x)
{
    ll res = 1;
    for(int i=1;i<=x;i++){
        res *= i;
        while(res>1e9+7){
            res-=(1e9+7);
        }
    }
    return res;
}


int main()
{
    int x;
    cin>>x;
    cout<<fact(x)<<endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:24: error: expected ';' before 'return'
   22 |     cout<<fact(x)<<endl
      |                        ^
      |                        ;
   23 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
#include<math.h>

using namespace std;

int main() {
	long long p = 1;
	unsigned int n;

	cin >> n;

	for (unsigned int i = 1; i <= n; i++) {
		p *= i;
	}

	cout << p % long long(1e9 + 7) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected primary-expression before 'long'
   16 |         cout << p % long long(1e9 + 7) << endl;
      |                     ^~~~
Language: C++

#include <iostream>
#include <cstdlib>
#include <string>

int amari(int N, int wari){
if (N == 1){
return 1;
}

return (N*amari(N-1))%wari;
}

int main(){
std::string line;
std::getline(std::cin, line);
int N = atoi(line.c_str());

std::cout << amari(N, 1000000000+7) << std::endl;

return 0;
}

Compiler output:
a.cc: In function 'int amari(int, int)':
a.cc:10:16: error: too few arguments to function 'int amari(int, int)'
   10 | return (N*amari(N-1))%wari;
      |           ~~~~~^~~~~
a.cc:5:5: note: declared here
    5 | int amari(int N, int wari){
      |     ^~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    int n;
    cin >> n;
    int m = 1e9+7;
    ll ans = 1LL;
    for(int i = 1; i <= n; i++){
        ans *= i;
        ans = ans%m;
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'll' was not declared in this scope
    8 |     ll ans = 1LL;
      |     ^~
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         ans *= i;
      |         ^~~
      |         abs
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <iostream>
#include<stdio.h>
using namespace std;
long long int modx(long int x,long int y);
int main(void) {
	int N;
	cin >> N;
	long long int x = 1;
	for (int i = 0; i < N; i++)
	{
		x = modx(x,i+1);
		cout << x << endl;
	}

	getchar();
	getchar();
}

long long int modx(long long int x,long long int y) {
	long long int t=(x*y);
	t %= 1000000007;
	return t;
}

Compiler output:
/usr/bin/ld: /tmp/ccNmC2Ur.o: in function `main':
a.cc:(.text+0x43): undefined reference to `modx(long, long)'
collect2: error: ld returned 1 exit status
Language: C++

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

Compiler output:
a.cc:1:1: error: 'ude' does not name a type
    1 | ude<stdio.h>
      | ^~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'scanf' was not declared in this scope
    8 | scanf("%d",&n);
      | ^~~~~
a.cc:10:5: error: 'i' was not declared in this scope
   10 | for(i == 0;i == n ;i++){
      |     ^
a.cc:14:1: error: 'printf' was not declared in this scope
   14 | printf("%d",c);
      | ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<stdlib.h>
  +++ |+#include <cstdio>
    3 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected ';' before 'for'
    9 | a = n
      |      ^
      |      ;
   10 | for(i == 0;i == n ;i++){
      | ~~~   
a.cc:10:12: error: 'i' was not declared in this scope
   10 | for(i == 0;i == n ;i++){
      |            ^
a.cc:13:41: error: expected ';' before 'printf'
   13 | c = b / (10*10*10*10*10*10*10*10*10 + 7)
      |                                         ^
      |                                         ;
   14 | printf("%d",c);
      | ~~~~~~
Language: C

#include<stdio.h>

#define mod 1000000007

int main() {
    int n = 0;
    long long ans = 1;
    scanf("%d", &n);
    for(int i = 1; i <= n; i++) {
        ans = (ans * i) % MOD;
    }
    printf("%ld\n", ans);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:27: error: 'MOD' undeclared (first use in this function)
   10 |         ans = (ans * i) % MOD;
      |                           ^~~
main.c:10:27: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

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

public class TrsainingCamp{
	public static final int MODULO= 1000000007;
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();

	long power = 1;
	for(int i=1; i<=n; i++){
	power = (power*i)%MODULO;
		}
		System.out.println(power);		
	}
}

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

#include<stdio.h>

int main(void){
	int i, time=0;
	int syou=1000000007;
	//sumを上5桁と下5桁で分割して管理する
	unsigned __int64 sum=1;

	
	scanf("%d", &time);
	for(i = 0 ; i < time ; i++){
		sum = sum * (i+1);
		sum = sum%syou;
	}
	printf("%d", sum);
	
}


Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sum'
    7 |         unsigned __int64 sum=1;
      |                          ^~~
main.c:7:26: error: 'sum' undeclared (first use in this function)
main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
Language: Java


public class Main {
    public static void main(String[] args) {
        BigInteger power = BigInteger.ONE;
        Scanner scanner = new Scanner(System.in);
        BigInteger amount = scanner.nextBigInteger();
        BigInteger v = BigInteger.valueOf(1000000007L);
        for (BigInteger i = power; i.compareTo(amount) < 1 ; i = i.add(BigInteger.ONE)) {
            power = power.multiply(i).mod(v);
        }
        System.out.println(power.remainder(v));
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        BigInteger power = BigInteger.ONE;
        ^
  symbol:   class BigInteger
  location: class Main
Main.java:4: error: cannot find symbol
        BigInteger power = BigInteger.ONE;
                           ^
  symbol:   variable BigInteger
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        BigInteger amount = scanner.nextBigInteger();
        ^
  symbol:   class BigInteger
  location: class Main
Main.java:7: error: cannot find symbol
        BigInteger v = BigInteger.valueOf(1000000007L);
        ^
  symbol:   class BigInteger
  location: class Main
Main.java:7: error: cannot find symbol
        BigInteger v = BigInteger.valueOf(1000000007L);
                       ^
  symbol:   variable BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
        for (BigInteger i = power; i.compareTo(amount) < 1 ; i = i.add(BigInteger.ONE)) {
             ^
  symbol:   class BigInteger
  location: class Main
Main.java:8: error: cannot find symbol
        for (BigInteger i = power; i.compareTo(amount) < 1 ; i = i.add(BigInteger.ONE)) {
                                                                       ^
  symbol:   variable BigInteger
  location: class Main
9 errors
Language: C

#include <stdio.h>

int main(void){
	long long n, p;
	long long i;
	
	scanf("%lld", &n);
	
	p = 1;
	
	for (i = 1; i <= n; i++){
		p = p*i%(1e+7);
	}
	
	printf("%lld\n", p);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:24: error: invalid operands to binary % (have 'long long int' and 'double')
   12 |                 p = p*i%(1e+7);
      |                     ~~~^
      |                      |
      |                      long long int
Language: C++

#include <iostream>
using namespace std;
int main() {
	long n,p,i, mod;
	cin>>n;
	p=1;
mod=1000000007
	if (n>1){for (i=1; i<=n; i++) {p=(p*(i%mod)%mod);}}
else p=1;
	cout << p % mod << '\n';
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'if'
    7 | mod=1000000007
      |               ^
      |               ;
    8 |         if (n>1){for (i=1; i<=n; i++) {p=(p*(i%mod)%mod);}}
      |         ~~     
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else p=1;
      | ^~~~
Language: C

<?php
fscanf(STDIN, "%d", $n);
$res = 1;
for ($i = 1; $i <= $n; ++$i) {
    $res *= $i;
    $res = $res % 1000000007;
}
echo $res . "\n";

Compiler output:
main.c:1:1: error: expected identifier or '(' before '<' token
    1 | <?php
      | ^
main.c:3:1: warning: data definition has no type or storage class
    3 | $res = 1;
      | ^~~~
main.c:3:1: error: type defaults to 'int' in declaration of '$res' [-Wimplicit-int]
main.c:4:1: error: expected identifier or '(' before 'for'
    4 | for ($i = 1; $i <= $n; ++$i) {
      | ^~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    4 | for ($i = 1; $i <= $n; ++$i) {
      |                 ^~
main.c:4:24: error: expected identifier or '(' before '++' token
    4 | for ($i = 1; $i <= $n; ++$i) {
      |                        ^~
main.c:8:1: error: unknown type name 'echo'
    8 | echo $res . "\n";
      | ^~~~
main.c:8:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    8 | echo $res . "\n";
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	_int64 n;

	_int64 i;

	_int64 o;

	cin >> n;

	o = 1;
	
	for (i = 1; i <= n; i++)
		o = o*i;






	cout << o%1000000007 << endl;


	



}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: '_int64' was not declared in this scope
    6 |         _int64 n;
      |         ^~~~~~
a.cc:8:15: error: expected ';' before 'i'
    8 |         _int64 i;
      |               ^~
      |               ;
a.cc:10:15: error: expected ';' before 'o'
   10 |         _int64 o;
      |               ^~
      |               ;
a.cc:12:16: error: 'n' was not declared in this scope
   12 |         cin >> n;
      |                ^
a.cc:14:9: error: 'o' was not declared in this scope
   14 |         o = 1;
      |         ^
a.cc:16:14: error: 'i' was not declared in this scope
   16 |         for (i = 1; i <= n; i++)
      |              ^
Language: C++

#include <iostream>
using namespace std;

int mod = 1000000007;
int main() {
	// your code goes here
	int N;
	cin >> N;
	for(long long i= 1,j = 1;i <= N;i++){
		j *= i;
		j %= mod;
	}
	cout << j << endl;
	return 0;
}

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

#include<stdio.h>

int main(void)
{
	int num;
	int i;
	int result = 1;
	scanf("%d", &num);
	for(i=1; i <= num; i++){
		result *= i;
	}

	printf("%d\n", result % (1000000000 + 7));
	return 0;
}
#include<stdio.h>
 
int main(void)
{
	long int num;
	long int i;
	long int result = 1;
	scanf("%ld", &num);
	for(i=1; i <= num; i++){
		result *= i;
	}
 
	printf("%ld\n", result % (1000000000 + 7));
	return 0;
}

Compiler output:
main.c:18:5: error: redefinition of 'main'
   18 | int main(void)
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int N;
	cin >> N;
	int p = 1;
 	for(int i=1;i<=N;i++){
		p = p * i;
        }
　　 int a = p % (1000000007);
        cout << a << endl;
}	

Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　 int a = p % (1000000007);
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000\U00003000' was not declared in this scope
   10 | 　　 int a = p % (1000000007);
      | ^~~~
a.cc:11:17: error: 'a' was not declared in this scope
   11 |         cout << a << endl;
      |                 ^
Language: C

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

int  main(void){
 int n,i,y;

 scanf("%d",&n);
 for(i=1;i<=n;i++){
 	y=y*i;
 }
  y=y%pow(10,9)+7;
 printf("%d",y);
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:6: error: invalid operands to binary % (have 'int' and 'double')
   11 |   y=y%pow(10,9)+7;
      |      ^~~~~~~~~~
      |       |
      |       double
Language: C++

#include <stdio.h>

int main(void){
	double n=1;
	scanf("%f",&n);
	for(int i=0;i<n;i++){
		n=n*i;
	}
	printf("%f\n",n%(1000000000+7));

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         printf("%f\n",n%(1000000000+7));
      |                       ~^~~~~~~~~~~~~~~
      |                       |            |
      |                       double       int
Language: C

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

int  main(void){
 int n,y=1;

 scanf("%d",&n);
 for(int i=1;i<=n;i++){
 	y=y*i;
 }
 printf("%d",y%pow(10,9)+7);
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:15: error: invalid operands to binary % (have 'int' and 'double')
   11 |  printf("%d",y%pow(10,9)+7);
      |               ^~~~~~~~~~
      |                |
      |                double
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	int n, p, i;
	cin >> n;
	p = 1;
	
	for (i = 1; i <= n; i++) {p = p * i;}
	
	cout << p % 1000000007 << '\n';
	// your code goes here
	return 0;
}

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	int n, p, i;
	cin >> n;
	p = 1;
	
	for (i = 1; i <= n; i++) p = p * i;
	
	cout << p % 1000000007 << '\n';
	// your code goes here
	return 0;
}

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
	int n, p, i;
	cin >> n;
	p = 1;
	
	for (i = 1; i <= n; i++) p *= i;
	
	cout << p % (1000000007) << '\n';
	// your code goes here
	return 0;
}

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include<stdio.h>

int main(){
	int N, i, j=1, ;
	scanf("%d", &N);
	
	for(i=1;i<=N;i++){
		j = j * i;
	}
	
	if (j >= 1000000007)
		j = j % 1000000007;
		
	printf("%d", j);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: expected unqualified-id before ';' token
    4 |         int N, i, j=1, ;
      |                        ^
Language: C++

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

int main(){
  int n, fact,i;
  fact = 1;
  scanf("%d", &n);

  for(i=1; i<=n; ++i) {
    fact = fact * i;
  };

  printf("%

Compiler output:
a.cc:13:10: warning: missing terminating " character
   13 |   printf("%
      |          ^
a.cc:13:10: error: missing terminating " character
   13 |   printf("%
      |          ^~
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression at end of input
   13 |   printf("%
      |          ^
a.cc:13:10: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^