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

#include<iostream>

using namespace std;

int main(){
int n,sum;

cin>>n;

sum=800*n;
sum-=200*(n/15)

cout<<sum<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'cout'
   11 | sum-=200*(n/15)
      |                ^
      |                ;
   12 | 
   13 | cout<<sum<<endl;
      | ~~~~
Language: C++

import Control.Applicative

main = do
    n <- readLn :: IO Int
    putStrLn $ show $ n * 800 - n `div` 15 * 200

Compiler output:
a.cc:5:35: error: stray '`' in program
    5 |     putStrLn $ show $ n * 800 - n `div` 15 * 200
      |                                   ^
a.cc:5:39: error: stray '`' in program
    5 |     putStrLn $ show $ n * 800 - n `div` 15 * 200
      |                                       ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Applicative
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C

#include<stdio.h>
int main()
{
	int i;
	scanf("%d",&i);
	print("%d",i*800-i/15*200);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |         print("%d",i*800-i/15*200);
      |         ^~~~~
      |         printf
Language: C++

import java.util.Scanner; 
public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int x = N * 800;
        int y = (N / 15) * 200;
        System.out.println(x - y);
    }
}

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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include <stdafx.h>
#include <stdio.h>
int main () {
long long int N,i;
int a[10000],b[10000],c,j,k;
scanf("%lld", &N);
char S[10000],T[10000];
scanf("%s", S);
for(i=0;i<N;i++){
if (S[i]=='o') a[i]=1;
if (S[i]=='x') a[i]=-1;
}
for(j=-1;j<=1;j=j+2){
for(k=-1;k<=1;k=k+2){
b[0]=j, b[1]=k;
for(i=0;i<N-2;i++){
if(b[i+1]*a[i+1]==1) b[i+2]=b[i];
if(b[i+1]*a[i+1]==-1) b[i+2]=-b[i];
}
if(a[N-1]*b[N-1]==b[N-2]*b[0] && a[0]*b[0]==b[N-1]*b[1]) {
for(i=0;i<N;i++){
if(b[i]==1) T[i]='S';
if(b[i]==-1) T[i]='W';
}
for(i=0;i<N;i++){
printf("%c",T[i]);
}
printf("\n");
return 0;
}
}
}
printf("-1\n");
return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include <stdafx.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

package ABC;

import java.util.Scanner;

public class ABC055A {
	public static void main(){
		
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		System.out.println((N*800)-(N/15));

	}

}


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

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

int main()
{
int N;
cin >> N;
cout << (N * 800 - N / 15 * 200) << endl;
return 0;
}

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

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

int main()
{
int N;
cin >> N;
cout << (N * 20 - N / 15) << endl;
return 0;
}

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

include <cstdio>
 using namespace std;
 int main(void){
     int N=0;
     int x,y=0;
     scanf("%d",&N);
     x=N*800;
     y=N/15;
     y*=200;
     printf("%d\n",x-y);
     return 0;
 }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <cstdio>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:6: error: 'scanf' was not declared in this scope
    6 |      scanf("%d",&N);
      |      ^~~~~
a.cc:10:6: error: 'printf' was not declared in this scope
   10 |      printf("%d\n",x-y);
      |      ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <cstdio>
Language: C++



  int N;
  cin >> N;    
  if((N<1)||(N>100001)){
    return 0;
  }

  int i;
  int poi=1;
  double po=1.0;
  for(i=1; i<=N ; i++){
    po=po*i;
  
    //  if(poi>=(pow(9.0,10)+7)){
    //  po=(double)poi;
    //  po=po/(1000000000.0+7.0);
    //  poi=(int)po;
    //           }
  }
  poi=(int)(po/(pow(9.0,10.0)+7.0));
  cout << poi;


}

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> N;
      |   ^~~
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if((N<1)||(N>100001)){
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'for'
   12 |   for(i=1; i<=N ; i++){
      |   ^~~
a.cc:12:12: error: 'i' does not name a type
   12 |   for(i=1; i<=N ; i++){
      |            ^
a.cc:12:19: error: 'i' does not name a type
   12 |   for(i=1; i<=N ; i++){
      |                   ^
a.cc:21:3: error: 'poi' does not name a type
   21 |   poi=(int)(po/(pow(9.0,10.0)+7.0));
      |   ^~~
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << poi;
      |   ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get a integer
		int N = sc.nextInt();
		return N*800 - 200*(N/15);
	}
}

Compiler output:
Main.java:7: error: incompatible types: unexpected return value
		return N*800 - 200*(N/15);
		             ^
1 error
Language: Java

import java.util.Scanner;

/**
 * Created by User on 2017/02/18.
 */
public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        System.out.println(getPower(n));

    }

    public static long getPower(int n) {
        if (n <= 1) return 1;

        return (n % 1000000007) * (getPower(((n + 1000000007) - 1) % 1000000007) % 1000000007);
    }
}


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

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

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

		int price = n * 800;
		price = price - 200*(n/15);
	
		System.out.println(price);		
	}
}

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

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

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

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

  printf("%d\n", fact%(pow(10,9) + 7));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: invalid operands of types 'long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   13 |   printf("%d\n", fact%(pow(10,9) + 7));
      |                  ~~~~^~~~~~~~~~~~~~~~
      |                  |               |
      |                  long int        __gnu_cxx::__promote<double>::__type {aka double}
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 x = N*800;
        int y = N/15*200
        System.out.println(x-y);
    }
}


Compiler output:
Main.java:8: error: ';' expected
        int y = N/15*200
                        ^
1 error
Language: C

include <stdio.h>
int main (void){
int M,N,a,b,c,d;
scanf("%d %d",&M,&N);
a=2*M+N;
b=(a-a%4)/4;
if (N>=2*b) printf("%d\n",b);
if (N<2*b) {
c=(N-N%2)/2;
printf("%d\n",c);
}
return 0;
}

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

#include <iostream>

int main() {
	int n;
	cin >> n;
	cout << (int)(n * 800 - (n / 15) * 200) << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << (int)(n * 800 - (n / 15) * 200) << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << (int)(n * 800 - (n / 15) * 200) << endl;
      |                                                    ^~~~
      |                                                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){
  int N;
  scanf("%d", &n);
  printf("%d\n", n*800 + 200*((n+1)%15));

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'n' was not declared in this scope
    6 |   scanf("%d", &n);
      |                ^
Language: C++

#include<bits/stdc++.h>


using namespace std;



int main()
{
    cin >> N;
    cout << N*800 - ((N%15)*200);
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'N' was not declared in this scope
   10 |     cin >> N;
      |            ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>

using namespace std;

int main() {
	int N;
	cin >> N;
	long long back = ceil(N/15) *200;
	long long price = N*800 - back;
	cout << price << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: 'ceil' was not declared in this scope
   11 |         long long back = ceil(N/15) *200;
      |                          ^~~~
Language: C++

#include <iostream>
using namespace std

int main() {
	int a;
	cin >> a;
	cout << 800*a - a%15*200 << endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main() {
      | ~~~
Language: C++

#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
	int N;
	cin >> N;
	cout << ((N * 800) - ((N / 15) * 200));
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll result[a] = {0};
ll factfastaf(ll n)
{
    if (n >= 0) 
    {
        result[0] = 1;
        for (ll i = 1; i <= n; ++i) 
        {
            result[i] = i * result[i - 1];
        }
        return result[n];
    }
  }	
  

int main()
{
	ll n;
  cin>>n;
  ll r= factfastaf(n);
  cout<<(r%10000007);
  return 0;
}
    


Compiler output:
a.cc:4:11: error: 'a' was not declared in this scope
    4 | ll result[a] = {0};
      |           ^
a.cc: In function 'll factfastaf(ll)':
a.cc:9:9: error: 'result' was not declared in this scope
    9 |         result[0] = 1;
      |         ^~~~~~
Language: C++

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;

int main(){
	long long int n;
  	cin>>n;
  	long long int pw=1;
  	long long int a=1000000000+7;
  	for(long long int i=1;i<=n;i++){
    	i =i%a;
      pw *=i;
      pw =pw%a
    }
  	
  	cout<< pw <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected ';' before '}' token
   15 |       pw =pw%a
      |               ^
      |               ;
   16 |     }
      |     ~
Language: C

#include <iostream>
#include<string>
#include<math.h>
#include<algorithm>
#include<vector>
using namespace std;
#define mod 1000000007
int main()
{

	long long n,f=1; cin >> n;
	for (int i = 1; i < n; ++i)
	{
		f =(f* i)%mod;
	}
	cout << (f*n)%mod;
}



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

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

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   return 0;
      |   ^~~~~~
Language: C++

#include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;

#define rep(i, n) for(ll i = 0; i < n; i++)
#define REP(i, n) for(ll i = 1; i < n + 1; i++)
#define PI 3.14159265359
#define EPS 0.0000000001
#define MOD 1000000007
//cout << std::fixed << std::setprecision(15) << y << endl;


int main(){
    ll N;
    cin >> N;

    ll ans = 1:
    REP(i, N){
        ans *= i;
        ans %= MOD;
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:15: error: expected ',' or ';' before ':' token
   29 |     ll ans = 1:
      |               ^
a.cc:30:9: error: 'i' was not declared in this scope
   30 |     REP(i, N){
      |         ^
a.cc:18:33: note: in definition of macro 'REP'
   18 | #define REP(i, n) for(ll i = 1; i < n + 1; i++)
      |                                 ^
Language: C++

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

int main(){
  long long int n,i=1,ans=1;
  cin>>n;
  for(i=1,i<=n;i++){
    ans*=i;
    ans%=10000000007;
  }
  cout<<ans<<endl

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before ')' token
    7 |   for(i=1,i<=n;i++){
      |                   ^
      |                   ;
a.cc:11:18: error: expected ';' at end of input
   11 |   cout<<ans<<endl
      |                  ^
      |                  ;
a.cc:11:18: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define m 1e9+7

int main()
{
 ll n;
 cin>>n;
 ll ans =1;
 for(int i=1;i<=n;i++)
 {
     ans = (ans*i)%m;
 }
 cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   13 |      ans = (ans*i)%m;
      |            ~~~~~~~^
      |                |
      |                ll {aka long long int}
Language: C++

#include <iostream>

using namespace std;

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

    cin >> n;
    for(int i = 1; i <= n; i++){
        p *= i;
        if(p >= 1000000007) p %= 1000000007;
    
    cout << p << endl;
}


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

#include <bits/stdc++.h> 
using namespace std; 
int main() { 
  int N;
  cin >> N ;
  int X=1;
  for (int i = 0; i < N; i++) {
    X=X*i%((1e9)+7);
  }
  cout << X << endl;
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    8 |     X=X*i%((1e9)+7);
      |       ~~~^~~~~~~~~~
      |        |        |
      |        int      double
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
int main() { 
  int N;
  cin >> N ;
  int X=1;
  for (int i = 0; i < N; i++) {
    X=X*i%((10**9)+7);
  }
  cout << X << endl;
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid type argument of unary '*' (have 'int')
    8 |     X=X*i%((10**9)+7);
      |                ^~
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
int main() { 
  int N;
  cin >> N ;
  int X=1;
  for (int i = 0; i < N; i++) {
    X*=i%((10**9)+7);
  }
  cout << X << endl;
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: invalid type argument of unary '*' (have 'int')
    8 |     X*=i%((10**9)+7);
      |               ^~
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
int main() { 
  int N;
  cin >> N ;
  int X=1;
  for (i = 0; i < N; i++) {
    X*=i%((10**9)+7)
  }
  cout << X << endl;
    

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i = 0; i < N; i++) {
      |        ^
a.cc:8:15: error: invalid type argument of unary '*' (have 'int')
    8 |     X*=i%((10**9)+7)
      |               ^~
Language: C++

#include <iostream>
using namespace std;
const int MOD = 1e9+7;

int main(){
  int n ; cin >> n;
  long long power = 1;
  for(int i = 1; i <= n; ++i){
    power *= i
    power %= MOD;
  }
  cout << power << endl;
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'power'
    9 |     power *= i
      |               ^
      |               ;
   10 |     power %= MOD;
      |     ~~~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  int ans = 1;
  int show=pow(10,9)+7
  for (int i=1;i<=N;i++) {
    ans =(ans*i)%show;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for (int i=1;i<=N;i++) {
      |   ^~~
a.cc:9:16: error: 'i' was not declared in this scope
    9 |   for (int i=1;i<=N;i++) {
      |                ^
Language: C++

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


int main(){

	int N, M;
	cin >> N >> M;
	rep(i,M){
		int s, c;
		if(s>N) ok = false;
		:

}














Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'ok' was not declared in this scope
   14 |                 if(s>N) ok = false;
      |                         ^~
a.cc:15:17: error: expected primary-expression before ':' token
   15 |                 :
      |                 ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

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

int main() {
  int n;
  int64_t power=1;
  cin >> n;

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

  power /= 10**9+7
  cout << power << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: invalid type argument of unary '*' (have 'int')
   14 |   power /= 10**9+7
      |               ^~
Language: C++

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

int main() {
  int i, N;
  long long sum=1;
  
  cin >> N;
  
  for(i=1; i<=N; i++) {
    sum *= N;
  }
  
  cout << sum%(pow(10,9)+7) << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   15 |   cout << sum%(pow(10,9)+7) << endl;
      |           ~~~^~~~~~~~~~~~~~
      |           |             |
      |           long long int __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
  int i, N;
  long long sum=1;
  
  cin >> N;
  
  for(i=1; i<=N; i++) {
    sum *= N;
  }
  
  cout << sum%(pow(10,9)+7) << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   15 |   cout << sum%(pow(10,9)+7) << endl;
      |           ~~~^~~~~~~~~~~~~~
      |           |             |
      |           long long int __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
  int i, N;
  long long sum=1;
  
  cin >> N;
  
  for(i=1; i<=N; i++) {
    sum *= N;
  }
  
  cout << sum%(pow(10,9)+7) << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |   cout << sum%(pow(10,9)+7) << endl;
      |           ~~~^~~~~~~~~~~~~~
      |           |             |
      |           long long int __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

int main() {
  int i, N;
  long long sum=1;
  
  cin >> N;
  
  for(i=1; i<=N; i++) {
    sum *= N;
  }
  
  cout << sum << endl;

  retutn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'retutn' was not declared in this scope
   16 |   retutn 0;
      |   ^~~~~~
Language: C++

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

int main() {
  int i, N;
  long long sum=1;
  
  cin >> N;
  
  for(i=1; i<=N; i++) {
    sum *= N
  }
  
  cout << sum << endl;

  retutn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     sum *= N
      |             ^
      |             ;
   12 |   }
      |   ~          
a.cc:16:3: error: 'retutn' was not declared in this scope
   16 |   retutn 0;
      |   ^~~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
   int n;
   cin >> n;
   long ans = 1;
   for(int i = 1;i <= n;i++){
         ans *= i;
   }
   cout << ans % (1e9l + 7) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: invalid operands of types 'long int' and 'long double' to binary 'operator%'
   11 |    cout << ans % (1e9l + 7) << endl;
      |            ~~~ ^ ~~~~~~~~~~
      |            |           |
      |            long int    long double
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
typedef long long ll;　// long long型をこのように定義することで時間短縮

int main() {
  cout << fixed << setprecision(10);

  int n;
  cin >> n;
  ll ans = 1; // long long型にしておく
  for(int i=1; i<=n; i++){
    ans = ans*i%MOD; //掛け算一回ごとにあまりをとる
  }
  cout << ans << endl;
}


Compiler output:
a.cc:7:22: error: extended character 　 is not valid in an identifier
    7 | typedef long long ll;　// long long型をこのように定義することで時間短縮
      |                      ^
a.cc:7:22: error: '\U00003000' does not name a type
    7 | typedef long long ll;　// long long型をこのように定義することで時間短縮
      |                      ^~
Language: C++

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

int N;

int main()
{
    cin>>N;

    int x = 1;
    for (int i = 1; i <= N; i++)
    {
        ans *= i; 
        ans %= 1000000007;
    }
    
    cout << ans << endl;
    return 0;

    
}


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

#define cout(x) cout<<(x)<<endl
#define all(v) v.begin(), v.end()
using namespace std;
//型エイリアス
using vi = vector<int>;
using ll = long long;
using P = pair<int,int>;
using Mat = vector<vector<int>>;
const ll inf = 1e18;
const int N = 2e5+10;

int main(){
    int n;
    cin >> n;
 
    ll factorial=1;
    ll thr = 1e9;
    for(int i=1;i<=n;++i){
        factorial = (factorial*i)%(thr +7);
    };
    cout<<factorial<<endl;
    return 0;
}

Compiler output:
a.cc:5:12: error: 'vector' does not name a type
    5 | using vi = vector<int>;
      |            ^~~~~~
a.cc:7:11: error: 'pair' does not name a type
    7 | using P = pair<int,int>;
      |           ^~~~
a.cc:8:13: error: 'vector' does not name a type
    8 | using Mat = vector<vector<int>>;
      |             ^~~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define cout(x) cout<<(x)<<endl
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout<<factorial<<endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:22: error: 'endl' was not declared in this scope
   21 |     cout<<factorial<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define cout(x) cout<<(x)<<endl
Language: C++

#define cout(x) cout<<(x)<<endl
#define all(v) v.begin(), v.end()
using namespace std;
//型エイリアス
using vi = vector<int>;
using ll = long long;
using P = pair<int,int>;
using Mat = vector<vector<int>>;
const ll inf = 1e18;
const int N = 2e5+10;

int main(){
    int n;
    cin >> n;
 
    ll factorial=1;
    for(int i=1;i<=n;++i){
        factorial = (factorial*i)%(1e9+7);
    };
    cout<<factorial<<endl;
    return 0;
}

Compiler output:
a.cc:5:12: error: 'vector' does not name a type
    5 | using vi = vector<int>;
      |            ^~~~~~
a.cc:7:11: error: 'pair' does not name a type
    7 | using P = pair<int,int>;
      |           ^~~~
a.cc:8:13: error: 'vector' does not name a type
    8 | using Mat = vector<vector<int>>;
      |             ^~~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define cout(x) cout<<(x)<<endl
a.cc:18:34: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   18 |         factorial = (factorial*i)%(1e9+7);
      |                     ~~~~~~~~~~~~~^~~~~~~~
      |                               |       |
      |                               |       double
      |                               ll {aka long long int}
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout<<factorial<<endl;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:22: error: 'endl' was not declared in this scope
   20 |     cout<<factorial<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define cout(x) cout<<(x)<<endl
Language: C++

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


int main() {
  
  long long N;
  long long s=1;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    s *= i;
 

  }
 cout << s %= 1000000007;;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: no match for 'operator%=' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
   15 |  cout << s %= 1000000007;;
      |  ~~~~~~~~~~^~~~~~~~~~~~~
Language: C++

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


int main() {
  
  long long N;
  long long s=1;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    s *= i;
 

  }
 cout <<    s%=1000000007;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: no match for 'operator%=' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
   15 |  cout <<    s%=1000000007;
      |  ~~~~~~~~~~~~^~~~~~~~~~~~
Language: C++

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


int main() {
  
  long long N;
  long long s=1;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    s *= i;
 

  }
 cout <<    s%=1000000007;;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: no match for 'operator%=' (operand types are 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} and 'int')
   15 |  cout <<    s%=1000000007;;
      |  ~~~~~~~~~~~~^~~~~~~~~~~~
Language: C++

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

int main() {
  ll n;
  ans=1;
  cin>>n;
  for(int i=1; i<=n; i++){
    ans*=i;
    ans%=1000000007;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   ans=1;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main () {
    int N;
    cin >> N;
    long int power = 1;
    int a = 1000000007;
    
    for (int i=1; i <= N; i++) {
        power = power * i % 1
    }
    
    cout << power << endl;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before '}' token
   11 |         power = power * i % 1
      |                              ^
      |                              ;
   12 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    
    int x
    for (int i=1; i <= N; i++) {
        x = i * x % 109 + 7;
    }
    cout << x << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'for'
    9 |     for (int i=1; i <= N; i++) {
      |     ^~~
a.cc:9:19: error: 'i' was not declared in this scope
    9 |     for (int i=1; i <= N; i++) {
      |                   ^
a.cc:12:13: error: 'x' was not declared in this scope
   12 |     cout << x << endl;
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    
    int j = 1;
    for (int i=1; i <= N; i++) {
        if (N==1) cout << 1 << endl; break;
        
        int total = i * j + j;
        j = total;
    }
    cout << total << endl;
}


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

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    
    int j = 1;
    for (i=1; i <= N; i++) {
        if (N==1) cout << 1 << endl; break;
        
        int total = i * j + j;
        if (i == N) cout << total << endl;
        j = total;
    }
}

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

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    
    j = 1;
    for (i=1; i <= N; i++) {
        if (N==1) cout << 1 << endl; break;
        
        int total = i * j + j;
        if (i == N) cout << total << endl;
        int j = total;
    }
}


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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL<<((ll)n))
#define SHIFT_LEFT(n) (1LL<<((ll)n))
#define SUBS(s,f,t) ((s).substr((f),(t)-(f)))
#define ALL(a) (a).begin(),(a).end()
#define Max(a) (*max_element(ALL(a)))
#define Min(a) (*min_element(ALL(a)))
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll ans = 1;
  for(ll i=1;i<=n;i++){
    ans *= i;
    ans %= MOD;
  }
  cout<<ans<<endl;
  return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '}' token
    9 |     j%=1000000007
      |                  ^
      |                  ;
   10 |   }
      |   ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '}' token
    9 |     j=j%1000000007
      |                   ^
      |                   ;
   10 |   }
      |   ~
Language: C++

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

int main() {
int N; cin>>N;
  int j=1;
  for(int i=0; i<N; i++){
    j*=(i+1);
    j=j%10**9+7
  }
  cout<<j<<endl;
 
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: invalid type argument of unary '*' (have 'int')
    9 |     j=j%10**9+7
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef vector<char> vc;
typedef queue<ll> ql;
typedef deque<ll> dql;
typedef priority_queue<ll, vl/*, greater<ll>*/> pql; //降順(/*昇順*/)
typedef set<ll> sl;
typedef pair<ll, ll> pl;
typedef vector<vl> vvl;
typedef vector<pl> vpl;
#define rep(i, n) for(ll i = 0; i < ll(n); ++i)
#define rep2(i, n) for(ll i = 1; i <= ll(n); ++i)
//#define rep(i, k, n) for(ll i = k-1; i < ll(n); ++i)
//#define rep2(i, k, n) for(ll i = k; i <= ll(n); ++i)
#define all(v) (v).begin(), (v).end()
bool chmin(ll &a, ll b) {if(b < a) {a = b; return 1;} return 0;}
bool chmax(ll &a, ll b) {if(b > a) {a = b; return 1;} return 0;}
const ll INF = 1LL << 60;
const ll MOD = 1e9 + 7;
//const ll MOD = 998244353;
const ll MAX = 1e9;
const char newl = '\n';

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

  ll n ans=1;
  cin >> n;
  rep2(i, n) (ans*=i)%=MOD;
  cout << ans << newl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:8: error: expected initializer before 'ans'
   32 |   ll n ans=1;
      |        ^~~
a.cc:33:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   33 |   cin >> n;
      |          ^
      |          yn
a.cc:34:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |   rep2(i, n) (ans*=i)%=MOD;
      |               ^~~
      |               abs
a.cc:35:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   35 |   cout << ans << newl;
      |           ^~~
      |           abs
Language: C++

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

int main(){

  ll n;
  cin >> n;
  ll power = 1;


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

    power *= i + 1;
    power %= 1e9+7;

  }

  cout << power << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   15 |     power %= 1e9+7;
      |     ~~~~~~^~~~~~~~
a.cc:15:11: note:   in evaluation of 'operator%=(ll {aka long long int}, double)'
Language: C++

#include <iostream>
using namespace std;

int main(){
  long long int a,b;
  b=1;
  cin>>a;
  for(int i=0;i<a;i++){
    b*=i;
  }
  cout<<(b%(1000000000+7))
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ';' before '}' token
   11 |   cout<<(b%(1000000000+7))
      |                           ^
      |                           ;
   12 | }
      | ~
Language: C++

#include<cstdio>
long long s=1,n,t=1;
int main()
{
	scanf("%lld",&n);
	for(;t<n;t++)
	{
		s*=t,s%=1ll*(1e9+7);
	}
	printf("%lld",s);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
    8 |                 s*=t,s%=1ll*(1e9+7);
      |                      ~^~~~~~~~~~~~~
a.cc:8:23: note:   in evaluation of 'operator%=(long long int, double)'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  ll n;
  cin>>n;
  ll ans=1;
  for(int i=1;i<=n;i++)ans=(ans*i)%1000000007;
  cout<<ans<<endl;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long n;
  cin>>n;
  long long ans=1;
  for(int i=1;i<=n;i++)ans=(ans*i)%1000000007;
  cour<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cour' was not declared in this scope
    9 |   cour<<ans<<endl;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  ll n;
  cin>>n;
  ll ans=1;
  for(int i=1;i<=n;i++)ans=(ans*i)%1000000007;
  cour<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll n;
      |   ^~
a.cc:6:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>n;
      |        ^
      |        yn
a.cc:7:5: error: expected ';' before 'ans'
    7 |   ll ans=1;
      |     ^~~~
      |     ;
a.cc:8:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   for(int i=1;i<=n;i++)ans=(ans*i)%1000000007;
      |                        ^~~
      |                        abs
a.cc:9:3: error: 'cour' was not declared in this scope
    9 |   cour<<ans<<endl;
      |   ^~~~
a.cc:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cour<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  int power = 1;
  for(int i = 0; i < N; i++){
    power *= i
  }
  
  int ans;
  ans = power % 1000000007;
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before '}' token
   10 |     power *= i
      |               ^
      |               ;
   11 |   }
      |   ~
Language: C

#include<stdio.h>
int main(void)
{
	double  N,i,p;

	p=1;
	scanf("%lf",&N);

	for(i=1;i<=N;i++)
            p=p*i;

	printf("%lf\n",p%1000000007);

	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:25: error: invalid operands to binary % (have 'double' and 'int')
   12 |         printf("%lf\n",p%1000000007);
      |                         ^
Language: C++

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

int cal(int N, int X){
  if(N <= 0) return 1;
  return N % X * cal(N - 1);
}

int main(){
  int N;
  cin >> N;
  cout << cal(N, 1000000007) << endl;
}


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

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

int cal(int N, int X){
  if(N <= 0) return 1;
  return N % X * cal(N - 1);
}

int main(){
  int N;
  cin >> N;
  cout << cal(N, 1000000007) << endl;
}

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

 #include <iostream>
 #include <math.h>
using namespace std;
int main() {
  int ans=1;
  int n;
  cin >> n;
  int div = pow(10,9) + 9;
  for(int 1 = n;i == n+1;i++){ 
    ans = ((ans) * i % div) % div;
  }
  std::cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected unqualified-id before numeric constant
    9 |   for(int 1 = n;i == n+1;i++){
      |           ^
a.cc:9:10: error: expected ';' before numeric constant
    9 |   for(int 1 = n;i == n+1;i++){
      |          ^~
      |          ;
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |   for(int 1 = n;i == n+1;i++){
      |           ^
a.cc:9:17: error: 'i' was not declared in this scope
    9 |   for(int 1 = n;i == n+1;i++){
      |                 ^
a.cc:9:25: error: expected ')' before ';' token
    9 |   for(int 1 = n;i == n+1;i++){
      |      ~                  ^
      |                         )
a.cc:9:26: error: 'i' was not declared in this scope
    9 |   for(int 1 = n;i == n+1;i++){
      |                          ^
Language: C++

# frozen_string_literal: true

n = gets.to_i
tmp = 1

1.upto(n) do |i|
  tmp *= i
  tmp %= (10**9 + 7)
end

puts tmp

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #frozen_string_literal
    1 | # frozen_string_literal: true
      |   ^~~~~~~~~~~~~~~~~~~~~
a.cc:3:1: error: 'n' does not name a type
    3 | n = gets.to_i
      | ^
Language: C++

import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque
from decimal import *


def lcm(x, y):
    return (x * y) // math.gcd(x, y)


if __name__ == '__main__':
    n =int(input())
    ans =1
    for i in range(1,n):
        ans = ans *i
        ans = ans % (10**9 +7)
    print(ans)



Compiler output:
a.cc:17:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   17 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> p_ll;
typedef vector<pair<ll, ll>> vec_p; //vector<pair<ll, ll>> pairs(n) ,pairs.at(i) = make_pair(i*i, i)

const ll MOD = pow(10, 9) + 7;
const ll LLINF = pow(2, 61) - 1;
const int INF = pow(2, 30) - 1;


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

  ll N,ans=1;
  cin >> N;

  for (ll i = 0; i < N; i++) {
    ans*=(i+1);
    ans=ans%MOD
  }

  cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: expected ';' before '}' token
   22 |     ans=ans%MOD
      |                ^
      |                ;
   23 |   }
      |   ~
Language: C++

#include <iostream>
#include <sstream>
#include <iterator>
#include <string>
#include <vector>
#include <algorithm>
#include <list>

#define YESNO(x) x ? printf("YES") : printf("NO")
#define YesNo(x) x ? printf("Yes") : printf("No")

using namespace std;

//ABC055B - Training Camp
//give up
int Main() {
	static const char EMPTY = '.';
	static const char BLACK = '#';
	int N;
	long ans = 1;
	long div = (int)pow(10, 9) + 7;

	cin >> N;
	int i;
	for (i = 1;i <= N;i++) {
		ans *= i;
		ans %= div;
	}
	ans %= div;


	cout << ans;

	return 0;
}


int main()
{
	Main();
	return 0;
}

Compiler output:
a.cc: In function 'int Main()':
a.cc:21:25: error: 'pow' was not declared in this scope
   21 |         long div = (int)pow(10, 9) + 7;
      |                         ^~~
Language: C++

#include <iostream>
#include <sstream>
#include <iterator>
#include <string>
#include <vector>
#include <algorithm>
#include <list>

#define YESNO(x) x ? printf("YES") : printf("NO")
#define YesNo(x) x ? printf("Yes") : printf("No")

using namespace std;

//ABC055B - Training Camp
int Main() {
	static const char EMPTY = '.';
	static const char BLACK = '#';
	int N;
	long long ans = 1;
	long long div = (int)pow(10, 9) + 7;

	cin >> N;
	int i;
	for (i = 1;i <= N;i++) {
		ans *= i;
		ans %= div;
	}
	ans %= div;


	cout << ans;

	return 0;
}


int main()
{
	Main();
	return 0;
}

Compiler output:
a.cc: In function 'int Main()':
a.cc:20:30: error: 'pow' was not declared in this scope
   20 |         long long div = (int)pow(10, 9) + 7;
      |                              ^~~
Language: C++

#include<bits/stdc++.h>
const int MOD=1e9+7;
using namespace std;
int main(){
  int n;
  cin >> n;
  ll ans=1;
  for(int i=1;i<=n;i++){
    ans*=i;
    ans%=MOD;
  }
  cout << ans << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
typedef long long ll;
//isPrime
//modpow modinv
long long modpow(long long a, long long n, long long mod) {
  long long res = 1;
  while (n > 0) {
    if (n & 1) res = res * a % mod;
      a = a * a % mod;
      n >>= 1;
    }
        return res;
}

long long modinv(long long a,long long mod){
  return modpow(a,mod-2,mod);
}

long long int modfact(long long int n,long long int mod){
  if(n){
    return n*modfact(n-1,mod)%mod;
    }else{
      return 1;
    }
}
int main() {
  cout << fixed << setprecision(10);
  ll n;
  cin >> n;
  cout << modfact(n,mod) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:21: error: 'mod' was not declared in this scope; did you mean 'modf'?
   36 |   cout << modfact(n,mod) << endl;
      |                     ^~~
      |                     modf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:33: error: expected ';' before '}' token
    6 |     ans=(ans * i)%(1000000000+7)
      |                                 ^
      |                                 ;
    7 |   }
      |   ~