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

// template
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<long long, long long> LP;
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REP_AB(i, a, b) for (ll i = ll(a); i <= ll(b); ++i)
#define ALL(v) v.begin(), v.end()
#define SORT(v) sort(ALL(v))
#define UNIQUE(v) sort(ALL(v));v.erase(unique(ALL(v)), v.end());
#define SIZE(x) ((ll)(x).size())
#define REVERSE(v) reverse(ALL(v))
// true / false
#define BIN_SEARCH(v, a) binary_search(ALL(v), a)
// index
#define BIN_LEFT(v, a) (lower_bound(ALL(v), a) - v.begin())
#define BIN_RIGHT(v, a) (upper_bound(ALL(v), a) - v.begin())
#define BIN_INSERT(v, a) (v.insert(v.begin() + BIN_LEFT(v, a), a))
#define DEL(v, i) v.erase(v.begin() + i)
#define INSERT(v, i, a) v.insert(v.begin() + i, a)
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return (a / gcd(a, b)) * b;}
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
#define out cout
#define in cin
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
// template end

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    ll n, ans = 1;
    in >> n;
    REP(i, n){
        ans = ans * (i + 1) % MOD
    }

    out << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:5: error: expected ';' before '}' token
   41 |     }
      |     ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>

using namespace std;

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

    int power = 0;
    for (int i = 1; i < N + 1; ++i)
    {
        power = (power * i) % int(pow(10.0, 9.0)) + 7;
    }
    cout << power
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected ';' before '}' token
   18 |     cout << power
      |                  ^
      |                  ;
   19 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

int main(void){
  SPEEDUP
  cout << setprecision(15);
  int N;cin >> N;
  ll ans = 1;
  repp(i,1,N+1){
    ans *= (ll)i;
    ans %= 1e9+7;
  }
  return 0;
}


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

#include<bits/stdc++.h>
#define rep(i,n) for(int (i) = 0;(i) < (n);(i)++)
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1000000007
//S.size()

using namespace std;

typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
typedef vector<bool> VB;
typedef unsigned long long ll;



int main(void){
  ll N; cin>>N;
  ll num = 1;
  for(ll i = 1; i <= N; i++)num = (num*i) % INF
  cout<<num<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: expected ';' before 'cout'
   21 |   cout<<num<<endl;
      |   ^~~~
Language: C

#include <stdio.h>
int main(){
  int n,r=1;
  for(scanf("%d",&n);n;n--)r=(r*n)%(1e9+7);
  printf("%d",r);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:35: error: invalid operands to binary % (have 'int' and 'double')
    4 |   for(scanf("%d",&n);n;n--)r=(r*n)%(1e9+7);
      |                              ~~~~~^~~~~~~~
      |                                |       |
      |                                int     double
Language: C++

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

int main(){
  int n; cin>>n;
  double power=1;
  for(int i=1;i<=n;i++){
    power*=i;
  }
  cout<<power%(10e9+7)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |   cout<<power%(10e9+7)<<endl;
      |         ~~~~~^~~~~~~~~
      |         |          |
      |         double     double
Language: C++

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

int main(){
  int n; cin>>n;
  long long power=1;
  for(int i=1;i<=n;i++){
    power*=i;
  }
  cout<<power%(10e9+7)<<endl;
}

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

#include<stdio.h>

int main(){
  long long int ans=1,k;
  
  scanf("%d",&k);
  
  for(i=1;i<=k;i++){
    ans*=i;
  }
  
  k%=((10e9)+7);
  
  printf("%lld\n",k);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=1;i<=k;i++){
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:4: error: invalid operands to binary % (have 'long long int' and 'double')
   12 |   k%=((10e9)+7);
      |    ^~~~~~~~~~~~
      |             |
      |             double
Language: C++

iostream>
using namespace std;

int main(){
    int N;
    long long ans=1;
    double res;
    cin >> N;

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

    cout << ans << endl;
}


Compiler output:
a.cc:1:1: error: 'iostream' does not name a type
    1 | iostream>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> N;
      |     ^~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << ans << endl;
      |     ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |     cout << ans << endl;
      |                    ^~~~
Language: C++

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

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

#define INF 2e9
#define ll long long

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected ')' before ';' token
   16 |     if(i=1; i<=n; i++){
      |       ~         ^
      |                 )
a.cc:16:22: error: expected ';' before ')' token
   16 |     if(i=1; i<=n; i++){
      |                      ^
      |                      ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;cin>>n;
  long long ret = 1;
  for(int i = 1; n >= i; i++){
	ret = (ret * i)%1000000007;
  }
  cout << ret << endl;

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

#include <iostream>
using namespace std;
int main(){
  int n;cin>>n;
  long long ret = 1;
  for(int i = 1; n >= i; i++){
	ret = (ret * i)%1000000007;
  }
  cout << endl;

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

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

/* #pragma */
/*
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
*/

/*alias*/
#define F first
#define S second

#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
#define next asdnext
#define prev asdprev
#define itn int

/*template*/
template<class T>inline bool amax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>inline bool amin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }

/* func */
int GCD(int a,int b){return b?GCD(b,a%b):a;}
long long GCD(long long a, long long b){return b ? GCD(b, a%b) : a;}
int LCM(int a, int b){return a * b / GCD(a, b);}
long long LCM(long long a, long long b){return a * b / GCD(a, b);}

/*struct*/
struct aaa {
	aaa() {
		cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(20);
	};
}aaaaaaa;

/* const */
const int INF = 1001001001;
const long long LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7; //10^9
const double EPS = 1e-9;
const int dx[] = { 1, 1, 0, -1, -1, -1, 0, 1 }, dy[] = { 0, 1, 1, 1, 0, -1, -1, -1 };
//const int dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};
//Counterclockwise from the 6o'clock direction
//Take the x-axis downward and the y-axis right

#define int long long

//g++ -std=c++14 -Wall --pedantic-errors -o template template.cpp
//chcp 65001

signed main()
{
	int n; cin >> n;
	for(int i = 0, i_len = (int)n; i < i_len; ++i){
		n*=i;
		n%=1e9+7;
	}

	cout << n << endl;
	return 0;
}

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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <tuple>
#include <stack>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define print(s) cout << s << endl
typedef long long ll;
using namespace std;
int mod = 10000007;
int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}
char upper(char c){
	return c-0x20;
}
char lower(char c){
	return c+0x20;
}
int main() {
	int n; cin >> n;
	int p = 1;
	rep(i,n){
		p = (p*i)%mod
	}
	cout << p << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:30: error: expected ';' before '}' token
   33 |                 p = (p*i)%mod
      |                              ^
      |                              ;
   34 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout << power % 10 ^ 9 + 7 << endl;
      |                        ~~~~~~^~~~~~~
Language: C++

#include<iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
    9 |     ans =  a % 1000000007;}
      |            ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int X=1;
  
  for (int i=0; i<N; i++) {
    X *= (i+1);
  }
  cout << X % (pow(10,5)+7);
  
  return 0
}

  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   13 |   cout << X % (pow(10,5)+7);
      |           ~ ^ ~~~~~~~~~~~~~
      |           |             |
      |           int           __gnu_cxx::__promote<double>::__type {aka double}
a.cc:15:11: error: expected ';' before '}' token
   15 |   return 0
      |           ^
      |           ;
   16 | }
      | ~
Language: C++

import math;print(math.factorial(int(input()))%(7+1e9))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math;print(math.factorial(int(input()))%(7+1e9))
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:1:18: error: expected constructor, destructor, or type conversion before '(' token
    1 | import math;print(math.factorial(int(input()))%(7+1e9))
      |                  ^
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
int main()
{
   long long power=1;
   int tnum;
   cin>>tnum;
   for (int i = 1; i <tnum+1 ; i++)
   {
      power=(power*i)%(long long(1e9+7));
   }
   cout<<power;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected primary-expression before 'long'
   11 |       power=(power*i)%(long long(1e9+7));
      |                        ^~~~
a.cc:11:24: error: expected ')' before 'long'
   11 |       power=(power*i)%(long long(1e9+7));
      |                       ~^~~~
      |                        )
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
int main()
{
   long long power=1;
   int tnum;
   cin>>tnum;
   for (int i = 1; i <tnum+1 ; i++)
   {
      power=(power*i)%(1e9+7);
   }
   cout<<power;
}


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

#include <iostream>
#include <math.h>
using namespace std;
const unsigned int DIV_NUM = pow(10,9) + 7; 
int main() {
  int N;
  cin >> N;
  unsigned int ans = 1;
  for (int i = 1; i < N + 1; ++i) {
    ans = ans* i % DIV_NUM
  }
  cout << ans << '\n';
}

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

#include <iostream>
using namespace std;
const unsigned int DIV_NUM = pow(10,9) + 7; 
int main() {
  int N;
  cin >> N;
  unsigned int ans = 1;
  for (int i = 1; i < N + 1; ++i) {
    ans = ans* i % DIV_NUM
  }
  cout << ans << '\n';
}

Compiler output:
a.cc:3:30: error: 'pow' was not declared in this scope
    3 | const unsigned int DIV_NUM = pow(10,9) + 7;
      |                              ^~~
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before '}' token
    9 |     ans = ans* i % DIV_NUM
      |                           ^
      |                           ;
   10 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;
const unsigned int DIV_NUM = pow(10,9) + 7; 
int main() {
  int N;
  cin >> N;
  unsigned int ans = 1;
  for (i = 1; i < N + 1; ++i) {
    ans = ans* i % DIV_NUM
  }
  cout << ans << '\n';
}

Compiler output:
a.cc:3:30: error: 'pow' was not declared in this scope
    3 | const unsigned int DIV_NUM = pow(10,9) + 7;
      |                              ^~~
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 1; i < N + 1; ++i) {
      |        ^
Language: C++

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



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

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

int main(){

int N;
cin >> N;

long long ans = 1;
	for(int i = 0; i < N; i++){ 
		ans = ans * ( 1 + i );

	}
	
cout << ans % (pow(10, 9) + 7) << endl;
}

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

#include <iostream>

using namespace std;


int main()
{
	long long int N, power;
	power = 1;

	cin >> N;

	for (int i = 1; i <= N; i++)
	{
		power = (i * power) % ((int)pow(10, 9) + 7);
	}

	cout << power  << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:45: error: 'pow' was not declared in this scope; did you mean 'power'?
   15 |                 power = (i * power) % ((int)pow(10, 9) + 7);
      |                                             ^~~
      |                                             power
Language: Java

import java.util.Scanner;

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

		long n = scan.nextLong();
		long power = 1;

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


Compiler output:
Main.java:12: error: ';' expected
			power %= 1000000007
			                   ^
1 error
Language: C

#include <stdio.h>
int main(void){
int n;
  int counter;
  double ans;
  scanf("%d",&n);
  ans=n;
  for(counter=1;counter!=n;counter++){
  ans=(ans*counter)%100000007;
  }
  printf("%lf",ans);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: invalid operands to binary % (have 'double' and 'int')
    9 |   ans=(ans*counter)%100000007;
      |       ~~~~~~~~~~~~~^
      |           |
      |           double
Language: C

#include <stdio.h>
int main(void){
int n;
  int counter;
  double ans;
  scanf("%d",&n);
  ans=n;
  for(counter=1;counter!=n;counter++){
  ans=(ans*count)%100000007;
  }
  printf("%lf",ans);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: 'count' undeclared (first use in this function); did you mean 'counter'?
    9 |   ans=(ans*count)%100000007;
      |            ^~~~~
      |            counter
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
int n;
  int count;
  double ans;
  scanf("%d",&n);
  ans=n;
  for(counter=1;counter!=n;counter++){
  ans=(ans*count)%100000007;
  }
  printf("%lf",ans);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'counter' undeclared (first use in this function); did you mean 'count'?
    8 |   for(counter=1;counter!=n;counter++){
      |       ^~~~~~~
      |       count
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:18: error: invalid operands to binary % (have 'double' and 'int')
    9 |   ans=(ans*count)%100000007;
      |       ~~~~~~~~~~~^
      |           |
      |           double
Language: C++

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

long long A = 1000000007
int main() {
  int N; cin >> N;
  long long pwr = 1;
  for (int i = 1; i<=N; i++) {pwr *= i; pwr % A;}
  cout << pwr << "\n";
}
  

Compiler output:
a.cc:5:1: error: expected ',' or ';' before 'int'
    5 | int main() {
      | ^~~
Language: C++

def training_camp(N: int) -> int:
    MOD = 10 ** 9 + 7
    ret = 1
    for n in range(N):
        ret = (ret * (n + 1)) % MOD
    return ret


if __name__ == "__main__":
    N = int(input())
    ans = training_camp(N)
    print(ans)


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def training_camp(N: int) -> int:
      | ^~~
Language: C

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

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long

int main(int argc, char const *argv[])
{
	TLong n;
	TLong p = 1;
	for (int i = 2; i <= n; ++i)
	{
		p = (p * i % 10e+9) + 7;
	}
	printf("%d\n", p);
	return 0;
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:42: error: expected '}' at end of input
   12 |   cout << power % ( 10 ^ 9 + 7 ) << endl;
      |                                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before '<' token
    8 |   for (int i = 1; i =< N; i++) {
      |                      ^
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

int main(){
	int N,ans=0;
  	int count=0;
  	long long p=1,b=1;
  	cin>>N;
  	for(int i=0;i<9;++i)b*=10;
  	for(int i=1;i<=N;++i){
      p*=i;
      if(p>=b+7){
        ans+=p%(b+7);
        p=1;count=1;
      }
    }
  	if(count)cout<<ans%(b+7)<<endl;
  	else count<<p%(b+7)<<endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |         else count<<p%(b+7)<<endl;
      |              ~~~~~~~~~~~~~~^~~~~~
Language: C++

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

int main(){
  int n;
  cin>>n;
  long long mod=10e9+7;
  long long tmp=1;
  for(int i=1;i<=n;i++){
    tmp=((tmp%mon)*i)%mod;
  }
  cout<<tmp%mod<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'mon' was not declared in this scope; did you mean 'mod'?
   10 |     tmp=((tmp%mon)*i)%mod;
      |               ^~~
      |               mod
Language: C++

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

int main(){
  int n;
  cin>>n;
  long long mod=10e9+7;
   tmp=1;
  for(int i=1;i<=n;i++){
    tmp=(tmp*i)%mod;
  }
  cout<<tmp%mod<<endl;
}


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

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


int main() {
    int N, answ;
    cin >> N;

    answ = 1;


    for(int i=0;i<N;i++){
        answ*=((i+1)%(pow(10,9)+7));
    }

    cout << answ << endl;


}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: 'pow' was not declared in this scope
   15 |         answ*=((i+1)%(pow(10,9)+7));
      |                       ^~~
Language: C++

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


int main() {
    int N, answ;
    cin >> N;

    answ = 1;


    for(int i=0;i<N;i++){
        answ*=((i+1)%(10**9+7));
    }

    cout << answ;


}



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

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

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

    

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

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

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

    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '<=' token
    8 |   for (int i = 1, i <= N; i++) {
      |                    ^~~
      |                    ;
a.cc:8:21: error: expected primary-expression before '<=' token
    8 |   for (int i = 1, i <= N; i++) {
      |                     ^~
a.cc:9:25: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
    9 |     answer = answer * i % (pow(10,9) + 7));
      |              ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
      |                     |                |
      |                     int              __gnu_cxx::__promote<double>::__type {aka double}
Language: C

#include<stdio.h>
int main(){
  long long int n,ans;
  scanf("%lld",&n);
  for(long long int i = 2;i < n;i++){
    ans *= i;
  }
  prinf("%lld",ans % 1000000007);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   prinf("%lld",ans % 1000000007);
      |   ^~~~~
      |   printf
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main(){
	int n;
	cin>>n;
	int cs=pow(10,9)+7;
	__int64 sum=1;
	int i=1;
	while(n--){
		sum*=i;
		sum%=cs;
		i++;
	}
	cout<<sum%cs;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: '__int64' was not declared in this scope; did you mean '__ynf64'?
    8 |         __int64 sum=1;
      |         ^~~~~~~
      |         __ynf64
a.cc:11:17: error: 'sum' was not declared in this scope
   11 |                 sum*=i;
      |                 ^~~
a.cc:15:15: error: 'sum' was not declared in this scope
   15 |         cout<<sum%cs;
      |               ^~~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
 
int main() {
  	int a;
  	cin >>　a;
  	double product = 1.0;
  	double ans;
  	for(int i = 1; i <= a; ++i)
    {
      product *= i;
    }
  	ans = fmod(product, pow(10, 9) + 7);
  	cout << ans << endl;
}

Compiler output:
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:7:15: error: '\U00003000a' was not declared in this scope
    7 |         cin >>　a;
      |               ^~~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
 
int main() {
    int a;
  	cin >>　a;
  	double product = 1.0;
  	double ans;
  	for(int i = 1; i <= a; ++i)
    {
      product *= 1;
    }
  ans = fmod(product, pow(10, 9) + 7);
  cout << ans << endl;
}

Compiler output:
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:7:15: error: '\U00003000a' was not declared in this scope
    7 |         cin >>　a;
      |               ^~~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
 
int main() {
    int a;
  	cin >>　a;
  	int product = 1;
  	int ans;
  	for(int i = 1; i <= a; ++i)
    {
      product *= 1;
    }
  ans = product % (pow(10.0, 9.0) + 7.0);
  cout << ans << endl;
}

Compiler output:
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:7:15: error: '\U00003000a' was not declared in this scope
    7 |         cin >>　a;
      |               ^~~
a.cc:14:17: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   14 |   ans = product % (pow(10.0, 9.0) + 7.0);
      |         ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
      |         |                         |
      |         int                       double
Language: C++

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

Compiler output:
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:7:15: error: '\U00003000a' was not declared in this scope
    7 |         cin >>　a;
      |               ^~~
a.cc:14:17: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |   ans = product % (pow(10, 9) + 7);
      |         ~~~~~~~ ^ ~~~~~~~~~~~~~~~~
      |         |                     |
      |         int                   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

Compiler output:
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:7:15: error: '\U00003000a' was not declared in this scope
    7 |         cin >>　a;
      |               ^~~
a.cc:14:17: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |   ans = product % (pow(10, 9) + 7.0)
      |         ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
      |         |                     |
      |         int                   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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

Compiler output:
a.cc:7:15: error: extended character 　 is not valid in an identifier
    7 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:7:15: error: '\U00003000a' was not declared in this scope
    7 |         cin >>　a;
      |               ^~~
a.cc:14:17: error: invalid operands of types 'int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   14 |   ans = product % (pow(10, 9) + 7)
      |         ~~~~~~~ ^ ~~~~~~~~~~~~~~~~
      |         |                     |
      |         int                   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    int a;
  	cin >>　a;
  	int product = 1;
  	int ans;
  	for(int i = 1; i <= a; ++i)
    {
      product *= 1;
    }
  ans = product % (pow(10, 9) + 7)
  cout << ans << endl;
}

Compiler output:
a.cc:6:15: error: extended character 　 is not valid in an identifier
    6 |         cin >>　a;
      |               ^
a.cc: In function 'int main()':
a.cc:6:15: error: '\U00003000a' was not declared in this scope
    6 |         cin >>　a;
      |               ^~~
a.cc:13:20: error: 'pow' was not declared in this scope
   13 |   ans = product % (pow(10, 9) + 7)
      |                    ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    long long a[114514];
    a[1]=1;
    for(int i=2;i<100000;i++){
        a[i]=(a[i-1]*i))%1000000007;
    }
    cout<<a[n]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before ')' token
    9 |         a[i]=(a[i-1]*i))%1000000007;
      |                        ^
      |                        ;
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
int main()
{
    // 整数の入力
    int N;
    int result = 1;
    cin >> N;

    for (int i = 0; i < N; i++) {
        result = 2*result;
    }

  	cout << result % (pow(10, 9) + 7) << endl;
    return 0;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
int main()
{
    // 整数の入力
    int N;
    int result = 1;
    cin >> N;

    for (int i = 0; i < N; i++) {
        result = 2*resilt;
    }

  	cout << result % (double(10, 9) + 7) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: 'resilt' was not declared in this scope; did you mean 'result'?
   15 |         result = 2*resilt;
      |                    ^~~~~~
      |                    result
a.cc:18:39: error: expression list treated as compound expression in functional cast [-fpermissive]
   18 |         cout << result % (double(10, 9) + 7) << endl;
      |                                       ^
a.cc:18:24: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   18 |         cout << result % (double(10, 9) + 7) << endl;
      |                 ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
      |                 |                       |
      |                 int                     double
Language: C++

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


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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: lvalue required as left operand of assignment
    8 |     for (int i=0; i<N; ++i) X*=(i+1)%=1000000007;
      |                                ~~^~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before ':' token
    7 |     cin >> N:
      |             ^
      |             ;
a.cc:8:19: error: 'i' was not declared in this scope
    8 |     for (int i=0; i<N; ++i) X*=(i+1)%=1000000007;
      |                   ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: redeclaration of 'int X'
    6 |     int X=1;
      |         ^
a.cc:5:11: note: 'int X' previously declared here
    5 |     int N,X;
      |           ^
a.cc:7:13: error: expected ';' before ':' token
    7 |     cin >> N:
      |             ^
      |             ;
a.cc:8:19: error: 'i' was not declared in this scope
    8 |     for (int i=0; i<N; ++i) X*=(i+1)%=1000000007;
      |                   ^
Language: C

#include<stdio.h>

int main(void)
{
  int n = 0,ans = 1;
  scanf("%d",&n);
  for(int i = 1;i <= n;i++)
  {
    ans *= i;
    if(ans >= 1000000007)
    {
      ans = ans % 1000000007
    }
  }
  printf("%d",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:29: error: expected ';' before '}' token
   12 |       ans = ans % 1000000007
      |                             ^
      |                             ;
   13 |     }
      |     ~
Language: C++

#include<stdio.h>

int main(void)
{
  int n = 0,ans = 1;
  scanf("%d",&n);
  for(int i = 1;i <= n;i++)
  {
    ans *= i;
    if(ans >= 1000000007)
    {
      ans = ans % 1000000007
    }
  }
  printf("%d",ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before '}' token
   12 |       ans = ans % 1000000007
      |                             ^
      |                             ;
   13 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ';' before '}' token
   11 |   }
      |   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected identifier before '*' token
   10 |     ans = (and * i) % MOD
      |                ^
Language: C++

#include <iostream>

using namespace std;

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

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

#ifdef LOCAL
#include <cstdio>
#include <vector>
#include <algorithm>
#include <iostream>
#include <cstring>
#else
#include <bits/stdc++.h>
#endif
using namespace std ;

typedef long long ll ;
#define rep(i , n ) for ( int i =0; i < n ; i++)
#define _sort(arg) sort(begin(arg), end(arg))
#define MOD 1000000007
#define pb push_back
#define DEBUG(x) cout << #x << ": " << x << endl;

/*
__attribute__((constructor))
void initial()
{
	cin.tie(NULL);
	ios::sync_with_stdio(false);
}
*/

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

	int A;
	
	cin >> A;

	int ori = 1;
	for (int i = 1; i <= N; i++)
	{
		ori = (ori * i) % MOD;
	}

	cout << ori << endl;

	
	return 0;
}


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

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


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

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


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

#include<bits/stdc++.h>
using namespace std;
#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=int(a);i<int(b);++i)
#define rep(...) _overload3(__VA_ARGS__,repi,_rep,)(__VA_ARGS__)
#define all(x) (x).begin(),(x).end()
#define MOD (int)1e9+(int)7
#define INF 2147483647
typedef long long ll;
typedef unsigned long long ull;

//dark power
/#define int ll
//define Error、大抵は、セミコロン忘れとか、Defineは関係ない
/*
vector<int> d(100000);
vector<int> b(100000);
class UnionFind{
	public:
	UnionFind(signed n){rep(i,n){d[i]=i;b[i]=0;}}
	signed find(signed x){
		if(d[x]==x){
			return x;
		}else{
			return d[x]=find(d[x]);
		}
	}
	UnionFind(signed n){rep(i,n){d[i]=i;b[i]=0;}}
	void unite(signed x,signed y){
		x=find(x);
		y=find(y);
		if(x==y)return;
		if(b[x]<b[y]){
			d[x]=y;
		}else{
			d[y]=x;
			if(b[x]==b[y])b[x]++;
		}
	}
	bool same(signed x,signed y){return (find(x)==find(y));}
};
*/
signed main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	int n;
	cin>>n;
	int sum=0;
	rep(i,1,n+1)sum=(i*sum)%MOD;
	cout<<sum<<endl;
	return 0;
}


Compiler output:
a.cc:14:2: error: stray '#' in program
   14 | /#define int ll
      |  ^
a.cc:14:1: error: expected unqualified-id before '/' token
   14 | /#define int ll
      | ^
Language: C++

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string>
#include <tuple>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <cstdlib>
#include <algorithm>
#include <random>
#include <cassert>
using namespace std;
#define LL long long
#define MP(a, b) make_pair(a, b)
#define MMP(a, b, c) make_pair(make_pair(a, b), c)
#define MAX 1000000000
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define LL_MIN -9223372036854775808
#define LL_MAX 9223372036854775807
#define PI 3.14159265359

int main(){
    iostream::sync_with_stdio(false);

    int N;
    long long ans = 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:36:18: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   36 |     for(int i=1; i<=N: i++){
      |                  ^
a.cc:36:22: error: found ':' in nested-name-specifier, expected '::'
   36 |     for(int i=1; i<=N: i++){
      |                      ^
      |                      ::
a.cc:36:21: error: 'N' is not a class, namespace, or enumeration
   36 |     for(int i=1; i<=N: i++){
      |                     ^
a.cc:42:5: error: expected primary-expression before 'return'
   42 |     return 0;
      |     ^~~~~~
a.cc:40:25: error: expected ')' before 'return'
   40 |     cout << ans << endl;
      |                         ^
      |                         )
   41 | 
   42 |     return 0;
      |     ~~~~~~               
a.cc:36:8: note: to match this '('
   36 |     for(int i=1; i<=N: i++){
      |        ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: '_int64' was not declared in this scope
    7 |         _int64 power = 1;
      |         ^~~~~~
a.cc:9:17: error: 'power' was not declared in this scope
    9 |                 power *= i;
      |                 ^~~~~
a.cc:13:17: error: 'power' was not declared in this scope
   13 |         cout << power << endl;
      |                 ^~~~~
Language: Java

import java.util.Scanner;

public class training {

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

}


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

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <vector>
#include <stdio.h>
using namespace std;

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPL(i,f,n) for(int i=f, i##_len=(n); i<i##_len; ++i)
typedef long long ll;

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

	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:22:59: error: expected ';' before 'cout'
   22 |         for (int i = 1; i <= N;i++) ans = ans*i%1000000007
      |                                                           ^
      |                                                           ;
   23 |         cout << ans << endl;
      |         ~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:35: error: expected ';' before '}' token
    9 |                 ans=ans%1000000007
      |                                   ^
      |                                   ;
   10 |         }
      |         ~
Language: C++

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

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

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

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

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

#include <iostream>
using namespace std;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |                 p = i * p % 1000000007;
      |                     ~~~~~ ^ ~~~~~~~~~~
      |                       |     |
      |                       |     int
      |                       double