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

import math
N = int(input())
print(N*2*math.pi)

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'N'
    2 | N = int(input())
      | ^
Language: C

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

#define all(a) (a).begin(), (a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define MIN(a) *min_element(all(a))
#define MAX(a) *max_element(all(a))
#define SUM(a) accumulate(all(a), 0LL)
#define REP(i, n) for(int (i)=0; (i)<(n); (i)++)
#define RREP(i, n) for(int (i)=(n)-1; (i)>=0; (i)--)
#define FOR(i, m, n) for(int (i)=(m); (i)<(n); i++)
#define FORR(i, m, n) for(int (i)=(n)-1; (i)>=(m); i--)
#define debug(x) cerr << #x << " = " << x << endl
//#define int long long

typedef long long ll;
//ll const MOD = 998244353;
ll const MOD = 1e9+7;
int const inf = 1e9;
ll const INF = 1e18;

inline void ios_(){cin.tie(0); ios::sync_with_stdio(false);}
template<typename T> int size(const T& a){return (int)a.size();}
template<typename T> T Div(T a, T b){return (a + b - 1) / b;}
template<typename T> bool chmin(T& a, const T& b){if(a > b){a = b; return true;} return false;}
template<typename T> bool chmax(T& a, const T& b){if(a < b){a = b; return true;} return false;}



signed main(){
    int r;
    cin >> r;
    cout << 2 * r * M_PI << endl;
    return 0;
}


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

#include <iostream>
#include <algorithm>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <string.h>
#include <vector>
#include <queue>
#include <cmath>
#include <bitset>
#include <complex>
#include <functional>
#include <numeric>
#include <iomanip>

// output
#define SPBR(w, n) std::cout<<(w + 1 == n ? '\n' : ' ');
#define YES cout << "YES" << endl
#define Yes cout << "Yes" << endl
#define NO cout << "NO" << endl
#define No cout << "No" << endl
// utility
#define ALL(i) (i).begin(), (i).end()
#define FOR(i, a, n) for(int i=(a);i<(n);++i)
#define RFOR(i, a, n) for(int i=(n)-1;i>=(a);--i)
#define REP(i, n) for(int i=0;i<int(n);++i)
#define RREP(i, n) for(int i=int(n)-1;i>=0;--i)
#define IN(a, x, b) (a<=x && x<b)
#define OUT(a, x, b) (x<a || b<=x)
template<class T> inline T chmax(T & a, const T b) { return a = (a < b) ? b : a; }
template<class T> inline T chmin(T& a, const T b) { return a = (a > b) ? b : a; }

// type/const
#define int ll
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const int MOD = 1000000007;
/* const int MOD = 998244353; */
const int INF = 1e18;
const double PI = acos(-1);

using namespace std;
struct INIT { 
  INIT(){cin.tie(0); ios::sync_with_stdio(false);
  cout << fixed << setprecision(10);
}}INIT;


signed main() {
  double R; 
  cin >> R;

  cout << 2*R*PI << "\n";

  return 0;
}

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

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define FOR(i,n,m) for(int i=(int)(n); i<=(int)(m); i++)
#define RFOR(i,n,m) for(int i=(int)(n); i>=(int)(m); i--)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define RITR(x,c) for(__typeof(c.rbegin()) x=c.rbegin();x!=c.rend();x++)
#define setp(n) fixed << setprecision(n)

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 (a>b) { a=b; return 1; } return 0; }

#define ll long long
#define vll vector<ll>
#define vi vector<int>
#define pll pair<ll,ll>
#define pi pair<int,int>

#define all(a) (a.begin()),(a.end())
#define rall(a) (a.rbegin()),(a.rend())
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define ins insert

using namespace std;

/* Some Libraries */

//-------------------------------------------------

int main(void)
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int r; cin>>r;
    cout<<setp(12);
    cout<<(double)r*2*M_PI<<endl;
    return 0;
}


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

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

int main() {
    int N;
    cin >> N;
    cout << N*2*3.14159265 << endl;
    return 0;
}

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

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

#define rep( i, n, m ) for(int i = ( n ); i < ( m ); i++)
#define rep_d( i, n, m ) for(int i = ( n ) - 1; i >= ( m ); i--)
#define sort_asc( X ) sort(( X ).begin(), ( X ).end())
#define sort_desc( X ) sort(( X ).begin(), ( X ).end(), greater <>())
#define endl "\n"

template <class T> bool chmax( T& a, T b );
template <class T> bool chmin( T& a, T b );
int* eratosthenes( int N );
bool bit_search( int pattern, int N );
void initialize( void );

const ll INF = 1LL << 60;
const int k_mod = 1e9 + 7;
template <typename T, typename K> struct P {
	T a; K b;
};
typedef struct {
	vector <int> to;
	int cost;
} edge;

int main( void ){
	// initialize();
	int N; cin >> N;
	printf("%.10lf\n",(double)N*2*M_PI);
}

template <class T> bool chmax( T& a, T b ) {
	if (a < b){
		a = b; return true;
	}
	return false;
}
template <class T> bool chmin( T& a, T b ) {
	if (a > b){
		a = b; return true;
	}
	return false;
}
int* eratosthenes( int N ){
	int* prime_array = new int[ N + 1 ];
	int lim = N;
	prime_array[ 0 ] = 0;
	prime_array[ 1 ] = 0;
	rep( i, 2, N + 1 ){
		prime_array[ i ] = 1;
	}
	rep( i, 2, lim ){
		if (prime_array[ i ] == 0)
			continue;
		lim = N / i;
		for(int j = i * 2; j < N + 1; j += i){
			prime_array[ j ] = 0;
		}
	}
	return prime_array;
}
bool bit_search( int pattern, int N ){
	int cnt = 0;
	rep( bit, 0, N ){
		if (pattern & ( 1 << bit )){
			cnt++;
		}
	}
	return true;
}
void initialize( void ){
	cout << fixed << setprecision( 10 );
}


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

#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <deque>
#include <list>
#include <queue>
#include <stack>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <complex>
#include <cmath>
#include <limits>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <functional>
#include <bitset>

using namespace std;
using lint = long long int;
long long int INF = 1001001001001001LL;
int inf = 1000000007;
long long int MOD = 1000000007LL;
double PI = 3.1415926535897932;

template<typename T1,typename T2>inline void chmin(T1 &a,const T2 &b){if(a>b) a=b;}
template<typename T1,typename T2>inline void chmax(T1 &a,const T2 &b){if(a<b) a=b;}

#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()

/* do your best */

int main() {
  double r; cin >> r;
  printf("%.10f\n", 2.0 * r * PI);
  return 0;
}


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

#include<bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;

// #define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
#define ll long long int
#define ld long double
#define pb push_back
#define mp make_pair
#define pll pair<ll,ll>

vector <ll> v;

ll fep(ll x, ll y, ll mod)
{ll res=1;while(y>0){if(y&1)res=(res*x)%mod;
    y=y>>1;x=(x*x)%mod;}return res%mod;}

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

	ll n,i,m,j,k,x,y,a,b,c,d,t;
	string s;
	
	cin >> r;
	cout << 2*3.1415*r;

	return 0;
}


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

#include <bits/stdc++.h>
#define REP(i, m, n) for(int (i) = (m); (i) < (n); ++i)
#define rep(i, n) REP(i, 0, n)
#define all(x) (x).begin(), (x).end()
using namespace std;
using Graph = vector<vector<int>>;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = 1e9+7;
const ll LINF = 1LL<<60;

const double PI=3.14159265358979323846;

int main()
{
    cin.tie(0);
    ios_base::sync_with_stdio(0);
    double r;
    cin >> r;

    cout << fixed << setprecision(24) << r * 2 * PI << endl;

    return 0;
}

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

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

int main() {
  long double n;
  cin >> n;
  cout << fixed << setprecision(15);
  n=n*2*3.14159;
  cout << n << endl;
}

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

#include <algorithm>
#include <iostream>
#include <vector>
#include <math.h>
#include <set>
#include <map>
#include <string>
#include <stack>
#include <queue>
#include <iomanip>
#include <numeric>
#include <tuple>
#include <bitset>
#include <complex>
#include <unistd.h>
#include <cassert>
#include <cctype>
#include <random>
#include <time.h>
#define _USE_MATH_DEFINES
#define _GLIBCXX_DEBUG
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
typedef complex<double> xy_t;
typedef vector<ll> vll;
typedef vector< vector<ll> > matrix;
typedef unsigned int uint;
typedef unsigned long long ull;
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
template <class T> using VVV = V<VV<T>>;
#define REP(i, x, y) for(ll i = (ll)x; i < (ll)y; i++)
#define DREP(i, x, y, d) for(ll i = (ll)x; i < (ll)y; i += (ll)d)
#define PER(i, x, y) for(ll i = (ll)x; i > (ll)y; i--)
#define DPER(i, x, y, d) for(ll i = (ll)x; i > (ll)y; i -= (ll)d)
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
double pi = 3.141592653589793;
ll mod = 1000000007;
int intmax = 2147483647;
int intmin = -2147483648;
ll llmax = 9223372036854775807;
ll llmin = -9223372036854775807;
int iinf = intmax / 8;
ll inf = llmax / 8;
double eps = 1e-12;
void yesno(bool ok, string yes = "Yes", string no = "No") {
    if (ok) {
        cout << yes << endl;
    } else {
        cout << no << endl;
    }
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    double R;
    cin >> R;
    cout << 2 * pi * R << endl;
}


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

#include <bits/stdc++.h>

#define INF INT_MAX
#define UINF UINT_MAX
#define MOD 1000000007
#define REP(i,n) for(int i=0;i<n;i++)
#define all(x) (x).begin(),(x).end()

typedef long long ll;
typedef std::pair<int,int> pii;

using namespace std;

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

    double n;
    cin >> n;

    double ans = n*2*M_PI;

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

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

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
int main() {
	double r;
	cin >> r;
	cout << r * 2 * 3.141592 << endl;
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define rep(i, n) for(int i = 0; i < n; i++)
#define all(x) x.begin(), x.end()
#define fi first
#define se second
#define pb push_back
template<class T> inline int chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline int chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const int INF = 1<<29;
const ll LINF = 1LL<<58;
const int mod = 1000000007;

void solve() {
    double r;
    cin >> r;
    cout << fixed << setprecision(10) << 3.141592 * 2 * r << endl;
    return ;
}

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


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

/*input
73
*/
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;

#pragma GCC optimize("unroll-loops,no-stack-protector")
//order_of_key #of elements less than x
// find_by_order kth element
typedef long long int ll;
#define ld long double
#define pii pair<ll,ll>
typedef tree<pii, null_type, less<pii>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
#define f first
#define s second
#define pb push_back
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define FILL(n,x) memset(n,x,sizeof(n))
#define ALL(_a) _a.begin(),_a.end()
#define sz(x) (int)x.size()
const ll maxn=1500+5;
const ll maxlg=__lg(maxn)+2;
const ll INF64=4e18;
const int INF=0x3f3f3f3f;
const ll MOD=ll(1e9+7);
const ld PI=acos(-1);
const ld eps=1e-9;
#define lowb(x) x&(-x)
#define MNTO(x,y) x=min(x,(__typeof__(x))y)
#define MXTO(x,y) x=max(x,(__typeof__(x))y)
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()), c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
#define GET_POS(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
ll mult(ll a,ll b){
    return (a*b)%MOD;
}
ll mypow(ll a,ll b){
    if(b<=0) return 1;
    ll res=1LL;
    while(b){
        if(b&1) res=mult(res,a);
        a=mult(a,a);
        b>>=1;
    }
    return res;
}
int main(){
    ios::sync_with_stdio(false),cin.tie(0);
    double n;
    cin>>n;
    cout<<fixed<<setprecision(9)<<n*2.0*PI;
}


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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Library;
using static Library.Input;

namespace AtCoderTemplate
{
    class ProgramA
    {
        static void Main()
        {
            System.Console.WriteLine((double)NextInt * 2 * Math.PI);
        }
    }
}

namespace Library
{
    class Input
    {
        static IEnumerator<string> enumerator = new string[] { }.AsEnumerable().GetEnumerator();

        public static string Line => Console.ReadLine();

        public static string[] StrArr => Line.Split(' ');

        public static int NextInt => int.Parse(NextWord());

        public static long NextLong => long.Parse(NextWord());

        public static List<int> IntList => StrArr.Select(int.Parse).ToList();

        public static List<long> LongList => StrArr.Select(long.Parse).ToList();

        public static IEnumerable<long[]> TakeLine(int N)
        {
            return Enumerable.Repeat(0, N).Select(_ => Console.ReadLine().Split(' ').Select(long.Parse).ToArray());
        }

        public static string NextWord()
        {
            while (!enumerator.MoveNext())
            {
                enumerator = StrArr.AsEnumerable().GetEnumerator();
            }
            return enumerator.Current;
        }
    }
}


Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:2:1: error: unknown type name 'using'
    2 | using System.Collections.Generic;
      | ^~~~~
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | using System.Collections.Generic;
      |             ^
main.c:3:1: error: unknown type name 'using'
    3 | using System.Linq;
      | ^~~~~
main.c:3:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | using System.Linq;
      |             ^
main.c:4:1: error: unknown type name 'using'
    4 | using System.Text.RegularExpressions;
      | ^~~~~
main.c:4:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 | using System.Text.RegularExpressions;
      |             ^
main.c:5:1: error: unknown type name 'using'
    5 | using Library;
      | ^~~~~
main.c:6:6: error: expected ';' before 'static'
    6 | using static Library.Input;
      |      ^~~~~~~
      |      ;
main.c:6:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    6 | using static Library.Input;
      |                     ^
main.c:8:1: error: unknown type name 'namespace'
    8 | namespace AtCoderTemplate
      | ^~~~~~~~~
main.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    9 | {
      | ^
main.c:19:1: error: unknown type name 'namespace'
   19 | namespace Library
      | ^~~~~~~~~
main.c:20:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   20 | {
      | ^
Language: C

import math
import queue

def readInt():
	return int(input())

def readInts():
	return list(map(int, input().split()))

def readChars():
	return input().split()


r = readInt()

print(r*r*3.14159265)

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    2 | import queue
      | ^~~~~~
main.c:2:1: error: unknown type name 'import'
Language: C

#include<iostream>
#include<stdio.h>//printf("%.*f\n",*********);
#include<vector>//s.erase(n),vector
#include<algorithm>//next_permutation
#include<set>
#include<string>//char('a'=32+'A')
//to_string,string,substr
#include<sstream>
#include<complex>
#include<time.h>
#include<random>
#include<cmath>//min,max
#include<math.h>
#include<queue>
#include<time.h>
#include<iomanip>
#include<locale>
#include<utility>//swap

#define rt "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define rop(i,n) for(int i=1;i<=n;i++)//start==1
#define drep(i,n) for(int i=n-1;0<=i;i--)
#define drop(i,n) for(int i=n;0<i;i--)//end==1
#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;
#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;
#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;
#define Yay(ans) if(ans)cout<<"Yay!"<<rt;else cout<<":("<<rt;
#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;
#define vcin(a,n) rep(i,n)cin>>a[i];//vcin(配列名),(繰り返し回数)
#define sort(s) sort(s.begin(),s.end())//昇順
#define reve(s) reverse(s.begin(),s.end())//反転
#define please return
#define AC 0
#define rapid_pleaseAC_fast cin.tie(0);ios::sync_with_stdio(false)
#define pi 3.1415926535897932384626//pi
#define nine 1000000000//10^9

using namespace std;
typedef vector<int> vint;
typedef long double ldouble;
typedef vector<string> vstr;
typedef vector<char> vchar;
typedef vector<double> vdou;
typedef vector<double> vdouble;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<llint, llint> pllint;
typedef vector<llint> vllint;
typedef vector<pint> vpint;
typedef vector<pair<llint, llint>> vpllint;
typedef vector<vector<int>> vvint;
typedef vector<vector<char>> vvchar;
typedef vector<vector<double>> vvdouble;
typedef vector<vector<llint>> vvllint;
typedef vector<vector<string>> vvstr;
typedef vector<vector<bool>> vvbool;
typedef vector<vector<pint>> vvpint;
typedef vector<bool> vbool;

long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

long long LCM(long long a, long long b) {
	return a * b / GCD(a, b);
}

unsigned GetDigit(unsigned num) {
	return std::to_string(num).length();
}

int tow(int n) {//2のn乗
	if (n == 0)return 1;
	int x = tow(n / 2);
	x *= x;
	if (n % 2 == 1)x *= 2;
	return x;//@domino
}

int KETA(int n) { //Sum of Each Digit
	int sum = 0;
	while (n > 0) {
		sum += n % 10; n /= 10;
	}
	return sum;
}

unsigned ND(unsigned num) {//Number of Digits
	return std::to_string(num).length();//outmax=10
}

bool KIBN(string s) {
	rep(i, s.size() / 2) {
		if (s[i] != s[s.size() - 1 - i])return false;
	}
	return true;
}

/*

 (char)toupper(a[n])=文字列のn文字目を大文字で出力

  pow(a,b)=aのb乗

  */

int main(void) {

	double r;
	cin >> r;
	printf("%.15f\n", r*2*pi);

	please AC;
}
//参考：---;

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

#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define rep(i,s,e) for(i64 (i) = (s);(i) < (e);(i)++)
#define all(x) x.begin(),x.end()

template<class T>
static inline std::vector<T> ndvec(size_t&& n, T val) noexcept {
  return std::vector<T>(n, std::forward<T>(val));
}

template<class... Tail>
static inline auto ndvec(size_t&& n, Tail&&... tail) noexcept {
  return std::vector<decltype(ndvec(std::forward<Tail>(tail)...))>(n, ndvec(std::forward<Tail>(tail)...));
}

template<class T, class Cond>
struct chain {
  Cond cond; chain(Cond cond) : cond(cond) {}
  bool operator()(T& a, const T& b) const {
    if(cond(a, b)) { a = b; return true; }
    return false;
  }
};
template<class T, class Cond>
chain<T, Cond> make_chain(Cond cond) { return chain<T, Cond>(cond); }

int main() {
  double R;
  cin >> R;
  std::cout << fixed << setprecision(10) << std::endl;
  std::cout << R * 2 * std::acos(-1) << std::endl;
}


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

#include "bits/stdc++.h"
using namespace std;
#define ll long long int
#define rep(i,n) for( int i = 0; i < n; i++ )
#define rrep(i,n) for( int i = n; i >= 0; i-- )
#define REP(i,s,t) for( int i = s; i <= t; i++ )
#define RREP(i,s,t) for( int i = s; i >= t; i-- )
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define INF 2000000000
#define mod 1000000007
#define INF2 1000000000000000000
#define PI 3.14159265358979

int main(void)
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int R; cin >> R;
    cout << 2 * R * PI << endl;

    return 0;
}


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

#include <bits/stdc++.h>
#define rep(i,n) for (long long i = 0; i < (n); ++i)
const int INF = 2147483647;//int max
const long long int MOD = 1000000007;
using namespace std;
using ll = long long;
using P = pair<int,int>;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
//ミョ(-ω- ?)
int main() {
    int r;
    cin >> r;
    cout << 2*r*3.141592 << endl;
    return 0;
}

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

#include<bits/stdc++.h>

using namespace std;

#define INF 1000000007
#define LINF (1LL << 62)
#define PI 3.14159265358979

typedef long long i64;
typedef pair<i64,i64> P;

inline i64 mod(i64 a, i64 m) { return (a % m + m) % m; }

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; }



int a;
void solve(){
	cin >> a;
	
	cout << PI*a*2 << endl;
}

int main(){
	std::cin.tie(0);
	std::ios::sync_with_stdio(false);
	int t = 1;
	//cin >> t;
	while(t--){
		solve();
	}
	
	return 0;
}

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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cmath>
#include <string>
#include <iomanip>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <complex>
#include <ctime>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const ll LINF = 1e18;
const int INF = 1e9;

//マクロ定義
#define vvint(vec,n,m,l) vector<vector<int>> vec(n, vector<int>(m,l));	// lで初期化
#define vvll(vec,n,m,l) vector<vector<ll>> vec(n,vector<ll>(m,l));
#define vint vector<int>
#define pint pair<int,int>
#define rep(i,a) for(int i=0;i<(a);i++)
#define all(x) (x).begin(),(x).end()
#define debug system("pause")				//デバッグ用
#define ret return 0

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; }

using Graph = vector<vector<ll>>;

#define ketasitei setprecision(15) //15桁表示

const ll MOD = 1000000007;

int main(void)

{
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout << ketasitei;

	double r;
	cin >> r;
	cout << 2.0 * r * 3.1415926535 << endl;

	return 0;
}

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

#include<bits/stdc++.h>
using namespace std:
  int main(){
    int n,m;
    cin>>n>>m;
    int x=0;
    vector<int>vec(m);
    for(int i=0;i<m; i++){
      cin>>vec.at(i);
      x+=vec.at(i);
    }
    if(x>n){cout<<"-1"<<endl;}
    else {cout<<n-x<<endl;}
  }
    

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include <iostream>
#include <bits/stdc++.h>

int main() {
  int n, m; std::cin >> n >> m;
  long long sum = 0;
  for (int i = 0; i < m; ++i) {
    int a; std::cin >> a;
    sum += a;
  }
  std::cout << std::max(n-sum, -1) << std::endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: no matching function for call to 'max(long long int, int)'
   11 |   std::cout << std::max(n-sum, -1) << std::endl;
      |                ~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:11:24: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   11 |   std::cout << std::max(n-sum, -1) << std::endl;
      |                ~~~~~~~~^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:11:24: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   11 |   std::cout << std::max(n-sum, -1) << std::endl;
      |                ~~~~~~~~^~~~~~~~~~~
Language: C++

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

int main() {
  
  int n, m; 
  cin >> n >> m;
  //n = 日数 m = 個数
  int total = 0;
  
  for(int i = 0; i < m; i++){
    int x;
    cin >> x;
    total += x;
  }
  
  if(n < total){
    cout << -1 << endl;
  }
  else if(n >= total){
    cout << n - total << endl;
  }


}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n >> m;
      |   ^~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << -1 << endl;
      |     ^~~~
a.cc:18:19: error: 'endl' was not declared in this scope
   18 |     cout << -1 << endl;
      |                   ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << n - total << endl;
      |     ^~~~
a.cc:21:26: error: 'endl' was not declared in this scope
   21 |     cout << n - total << endl;
      |                          ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M, O = 0;
  cin >> N >> M;
  for (int i = 0; i < M; i++) {
    int P;
    cin >> P;
  　O += P;
  }
  if (N < P) {cout << -1 << endl;}
  else {cout << N - P << endl;}
}

Compiler output:
a.cc:9:3: error: extended character 　 is not valid in an identifier
    9 |   　O += P;
      |   ^
a.cc: In function 'int main()':
a.cc:9:3: error: '\U00003000O' was not declared in this scope
    9 |   　O += P;
      |   ^~~
a.cc:11:11: error: 'P' was not declared in this scope
   11 |   if (N < P) {cout << -1 << endl;}
      |           ^
Language: C++

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

int main(){
    int N, M;
    cin >> N  >> M;
    int A[M];
    rep(i, M) cin >> A[i];

    int sum=0;
    rep(i, M) sum+=A[i];

    int ans=N-sum;
    if(ans<0) ans=-1;
    cout << ans << endl;
    return 0;
}#include<bits/stdc++.h>
#define rep(i, n) for(int i=0; i<n; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(){
    int N, M;
    cin >> N  >> M;
    int A[M];
    rep(i, M) cin >> A[i];

    int sum=0;
    rep(i, M) sum+=A[i];

    int ans=N-sum;
    if(ans<0) ans=-1;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:20:2: error: stray '#' in program
   20 | }#include<bits/stdc++.h>
      |  ^
a.cc:20:3: error: 'include' does not name a type
   20 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main(){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,sum=0,f;
  cin>>f>>n;
  int a[n+1]
  for(int i=1;i<=n;i++){
  	cin>>a[i];
  }
  for(int i=1;i<=n;i++){
  	sum+=a[i];
  }
  int j=f-sum;
  if(j){
    cout<<j<<'\n';
  }
  else{
    cout<<"-1"<<'\n';
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'for'
    7 |   for(int i=1;i<=n;i++){
      |   ^~~
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int i=1;i<=n;i++){
      |               ^
a.cc:11:14: error: 'a' was not declared in this scope
   11 |         sum+=a[i];
      |              ^
Language: C

#include <stdio.h>
int main(void){
  long int n,m;
  scanf("%ld %ld",&n,&m);
 int a[m];
 int hw=0;
for(int i=0;i<m;i++){
  scanf("%d",&a[i]);
}
long int s=0;
for(i=0;i<m;i++){
  s=s+a[i];
}
if(n-s<0){
  printf("-1");
  return 0;
}

printf("%d",n-s);

  return 0;
  }

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

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int ans = 0:
    for (int i = 0; i < m; i++){
      ans = ans + scan.nextInt();
    }
    if (ans <=n){
      System.out.println(n - ans);
    }else{
      System.out.println(-1);
    }
  }
}

Compiler output:
Main.java:7: error: ';' expected
    int ans = 0:
               ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int N=sc.nextInt();
      int M=sc.nextInt();
      System.out.println();
      int A[M];
      int total=0;
      for(int i=0;i<M;i++){
         A[i]=sc.nextInt();
         total+=A[i];
      }
      if(N-total>=0){
         System.out.println(N-total);
      }else{
         System.out.println(-1);
      }
   }
}
         


Compiler output:
Main.java:8: error: ']' expected
      int A[M];
            ^
Main.java:8: error: ';' expected
      int A[M];
             ^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  cin >> n >> m;
  int a[n];
  for(int i=0;i<m;i++){
    cin >> a[i];
    sum+=a[i];
  }
  if(n-sum<0)cout << -1 << endl;
  else cout << n-sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'sum' was not declared in this scope
    9 |     sum+=a[i];
      |     ^~~
a.cc:11:8: error: 'sum' was not declared in this scope
   11 |   if(n-sum<0)cout << -1 << endl;
      |        ^~~
Language: C

#include <stdio.h>
int main()
{
    int A[1000];
    int i,M,N,sum=0;

    scanf("%d%d",&N,&M);
    for(i=0; i<M ;i++){
        scanf("%d", &A[i]);
        sum = sum + A[i];
    }
    if(sum>N){printf("-1\n");}
else {
        printf("%d\n",(N-sum);
}
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:30: error: expected ')' before ';' token
   14 |         printf("%d\n",(N-sum);
      |               ~              ^
      |                              )
main.c:14:31: error: expected ';' before '}' token
   14 |         printf("%d\n",(N-sum);
      |                               ^
      |                               ;
   15 | }
      | ~
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 M = sc.nextInt();
		int total = 0;
		for(int i = 0;i < M;i++) {
			int x = sc.nextInt();
			total += x;
		}
		total = N - total;
		if(total < -1) {
			System.out.println("-1");
		}else {
			System.oyut.println(total);
		}
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
			System.oyut.println(total);
			      ^
  symbol:   variable oyut
  location: class System
1 error
Language: C

#include <stdio.h>
int main(void){
  int n, m;
  int i;
  scanf("%d",%n);
  scanf("%d",&m);
  int a[m];
  int sum=0;
  for(i=0;i<m;i++){
    scanf("%d",&a[i]);
  }
  for(i=0;i<m;i++){
    sum+=a[i];
  }
  
  printf("%d\n",n-sum);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected expression before '%' token
    5 |   scanf("%d",%n);
      |              ^
Language: C

#include <stdio.h>
int main(void){
  int n, m;
  int i;
  scanf("%d",%n);
  scanf("%d",&m);
  int a[m];
  int sum=0;
  for(i=0;i<m;i++){
    scanf("%d",a[i]);
  }
  for(i=0;i<m;i++){
    sum+=a[i];
  }
  
  printf("%d\n",n-sum);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected expression before '%' token
    5 |   scanf("%d",%n);
      |              ^
Language: C

#include <stdio.h>
int main(void){
  int n, m;
  int i;
  scanf("%d",%n)
  scanf("%d",&m);
  int a[m];
  int sum=0;
  for(i=0;i<m;i++){
    scanf("%d",a[i]);
  }
  for(i=0;i<m;i++){
    sum+=a[i];
  }
  
  printf("%d\n",n-sum);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected expression before '%' token
    5 |   scanf("%d",%n)
      |              ^
main.c:5:17: error: expected ';' before 'scanf'
    5 |   scanf("%d",%n)
      |                 ^
      |                 ;
    6 |   scanf("%d",&m);
      |   ~~~~~
Language: C

#include <stdio.h>
int main(void){
  int n, m;
  int i;
  scanf("%d",%n)
  scanf("%d",&m);
  int a[m];
  int sum=0;
  for(i=0,i<m;i++){
    scanf("%d",a[i]);
  }
  for(i=0,i<m;i++){
    sum+=a[i];
  }
  
  printf("%d\n",n-sum);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected expression before '%' token
    5 |   scanf("%d",%n)
      |              ^
main.c:5:17: error: expected ';' before 'scanf'
    5 |   scanf("%d",%n)
      |                 ^
      |                 ;
    6 |   scanf("%d",&m);
      |   ~~~~~          
main.c:9:18: error: expected ';' before ')' token
    9 |   for(i=0,i<m;i++){
      |                  ^
      |                  ;
main.c:12:18: error: expected ';' before ')' token
   12 |   for(i=0,i<m;i++){
      |                  ^
      |                  ;
Language: C

#include<stdio.h>

int main(void){
  int n,m,sum=0;
  int a[10000];
  int out;
  
  do{
    scanf("%d %d",&n,&m);
  }while(n<1 || n>1000000 || m<1 || m>10000);
  
  for(i=0; i<m; i++){
    do{
      scanf("%d",&a[i]);
    }while(a[i]<1 || a[i]>10000);
    sum += a[i];
  }
  
  out = n-sum;
  
  if(out>=0){
    printf("%d",out);
  }
  else{
    puts("-1");
  }
  
  return 0;
}

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

#include<stdio.h>
 
int main(void){
  int N,M,a=-1;
  int A[10000];
  int sum=0;
  scanf("%d%d",&N&M);
  for(int i=0;i<M;i++){
    scanf("%d",&A[i]);
    sum=sum+A[i];
  }
  if(sum<=N){
    printf("%d",N-sum);
  }
  else{
    printf("%d",a);
  }
  return 0;
}

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

#include<stdio.h>

int main(void){
  int N,M,a=-1;
  int A[10000];
  int sum=0;
  scanf("%d%d",&N,&M);
  for(int i=0;i<M,i++){
    scanf("%d",&A[i]);
    sum=sum+A[i];
  }
  if(sum<=N){
    printf("%d",N-sum);
  }
  else{
    printf("%d",a);
  }
  return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before ')' token
    8 |   for(int i=0;i<M,i++){
      |                      ^
      |                      ;
Language: C

#include <stdio.h>

int main(void)
{
  int n,m,i;
  
  scanf("%d,&n);
  scanf("%d,&m);
  
  int a[m];
  
  for(i=0;i<m;i++){
    scanf("%d",&a[m]);
    n-=a[m];
  }
  
  if(n>0)
    printf("%d\n",n);
  else
    printf("-1\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: warning: missing terminating " character
    7 |   scanf("%d,&n);
      |         ^
main.c:7:9: error: missing terminating " character
    7 |   scanf("%d,&n);
      |         ^~~~~~~~
main.c:8:9: warning: missing terminating " character
    8 |   scanf("%d,&m);
      |         ^
main.c:8:9: error: missing terminating " character
    8 |   scanf("%d,&m);
      |         ^~~~~~~~
main.c:10:3: error: expected expression before 'int'
   10 |   int a[m];
      |   ^~~
main.c:22:12: error: expected ')' before '}' token
   22 |   return 0;
      |            ^
      |            )
   23 | }
      | ~           
main.c:7:8: note: to match this '('
    7 |   scanf("%d,&n);
      |        ^
main.c:22:12: error: expected ';' before '}' token
   22 |   return 0;
      |            ^
      |            ;
   23 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
  int n,m,i;
  int count=0;
  
  scanf("%d,&n);
  scanf("%d,&m);
  
  int a[m];
  
  for(i=0;i<m;i++){
    scanf("%d",&a[m]);
    n-=a[m];
  }
  
  if(n>0)
    printf("%d\n",n);
  else
    printf("-1\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: warning: missing terminating " character
    8 |   scanf("%d,&n);
      |         ^
main.c:8:9: error: missing terminating " character
    8 |   scanf("%d,&n);
      |         ^~~~~~~~
main.c:9:9: warning: missing terminating " character
    9 |   scanf("%d,&m);
      |         ^
main.c:9:9: error: missing terminating " character
    9 |   scanf("%d,&m);
      |         ^~~~~~~~
main.c:11:3: error: expected expression before 'int'
   11 |   int a[m];
      |   ^~~
main.c:23:12: error: expected ')' before '}' token
   23 |   return 0;
      |            ^
      |            )
   24 | }
      | ~           
main.c:8:8: note: to match this '('
    8 |   scanf("%d,&n);
      |        ^
main.c:23:12: error: expected ';' before '}' token
   23 |   return 0;
      |            ^
      |            ;
   24 | }
      | ~
Language: C

#include <stdio.h>
void main()
{
int n,i,m;
scanf("%d",&n);
scanf("%d",&m);
  int a[];
  int t=0;
for(i=0;i<m;i++)
{
scanf("%d",&a[i]);
}
  for(i=0;i<t;i++)
    t=t+a[i];
  if(n>=t)
  printf("%d",n-t);
  else
  printf("-1");  
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: array size missing in 'a'
    7 |   int a[];
      |       ^
Language: C

#include<stdio.h>
int main(void)
{
  int n,m;
  scanf("%d%d", &n, &m);
  int a[m],i,sum = 0;
  for(i = 0; i < m; i++)
  {
    scanf("%d", &a[i]);
    sum = sum + a[i];
  }
  if(n >= sum)
    printf("%d", n - sum);
  else
    printf("-1");
  
  return 0
}
  

Compiler output:
main.c: In function 'main':
main.c:17:11: error: expected ';' before '}' token
   17 |   return 0
      |           ^
      |           ;
   18 | }
      | ~
Language: C

#include <stdio.h>
void main()
{
int n,i,m;
scanf("%d",&n);
scanf("%d",&m);
  int a[];
  int t=0;
for(i=0;i<m;i++)
{
scanf("%d",a[i]);
}
  for(i=0;i<t;i++)
    t=t+a[i];
  if(n>=t)
  printf("%d",n-t);
  else
  printf("-1");  
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: array size missing in 'a'
    7 |   int a[];
      |       ^
Language: C

#include <stdio.h>
void main()
{
int n,i,m;
scanf("%d",&n);
scanf("%d",&m);
int a[];
  int t=0;
for(i=0;i<m;i++)
{
scanf("%d",a[i]);
  t=t+a[i];
}
  if(n>=t)
  printf("%d",n-t);
  else
  printf("-1");  
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: array size missing in 'a'
    7 | int a[];
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:9:17: error: 'c' undeclared (first use in this function)
    9 |     scanf("%d",&c[i]);
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
  int n,m,sum=0;
  int cost[100]={0};
  scanf("%d %d",&n,&m);
  for(i=0; i<m; i++){
    scanf("%d",cost[i]);
    sum += cost[i];
  }
  if(n-sum >= 0)
    printf("%d",n-sum);
  else
    printf("-1");
}

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

#include <stdio.h>
int main(void){
  int n,m;
  int a[99];
  int sum=0;
  scanf("%d", &n); scanf("%d", &m);
  for (i=1; i<=m; i++){
  scanf("%d", &a[i]);
  }
  for (i=1; i<=m; i++){
    sum=sum+a[i];
  }
  if (sum>n){
    printf("%d", -1);
  }
 else if(sum<=n){
    printf("%d", n-sum);
  }
 return 0;
}
  
  

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

#include <stdio.h>
#include <stdlib.h>
int main(){
  int n,m;
  int i;
  int a[10000]
  scanf("%d%d",&n,&m);
  for(i=0;i<m;i++){
    scanf("%d",&a[i]);
    n=n-a[i];
  }
  if(n>=0)printf("%d",n);
  else printf("-1");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |   scanf("%d%d",&n,&m);
      |   ^~~~~
main.c:9:17: error: 'a' undeclared (first use in this function)
    9 |     scanf("%d",&a[i]);
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int a[10010];

int main(){
  int n,m;
  scanf("%d%d",&n,&m);
  for(int i=0;i<m;i++){
    scanf("%d",&a[i]);
  }
  int s=0;
  for(int i<m;i++)s+=a[i];
  if(s>n){
    printf("-1\n");
  }
  else{
    printf("%d\n",n-s);
  }
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   11 |   for(int i<m;i++)s+=a[i];
      |            ^
main.c:11:15: error: 'i' undeclared (first use in this function)
   11 |   for(int i<m;i++)s+=a[i];
      |               ^
main.c:11:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
  int m, n;
  scanf("%d %d", &m, &n);
  int a, sum=0;
  for(int i=0; i<n; i++){
    scanf("%d", &a);
    sum+=a;
  } 
  if(sum>m)printf("-1\n");
  else prinf("%d\n", m-sum);
}

Compiler output:
main.c: In function 'main':
main.c:12:8: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   else prinf("%d\n", m-sum);
      |        ^~~~~
      |        printf
Language: C++

using namespace std;

int main() {
  int N, M;
  cin >> N >> M;
  int A;
  int S = 0;
  for (int i = 0; i < M; i++) {
    cin >> A;
    S += A;
  }
  if (N - S < 0)
    cout << -1 << endl;
  else if (N - S >= 0)
    cout << N-A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N >> M;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << -1 << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:19: error: 'endl' was not declared in this scope
   13 |     cout << -1 << endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << N-A << endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:20: error: 'endl' was not declared in this scope
   15 |     cout << N-A << endl;
      |                    ^~~~
a.cc:15:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'