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

#include <bits/stdc++.h>

typedef long long LL;
typedef unsigned long long ULL;
1
#define debug printf("fuck %d\n", __LINE__);

inline LL read() {
	LL res = 0, bo = 1;
	char ch = getchar();
	while(ch < '0' || ch > '9') { if (ch == '-') bo = -1; ch = getchar(); }
	while(ch >= '0' && ch <= '9') { res = (res << 1) + (res << 3) + ch - '0'; ch = getchar(); }
	return bo * res;
}

template<typename T> void read(T &x) { x = read(); }
template<typename T, typename ...Argv> void read(T &a, Argv &...argv) { read(a); read(argv...); }

const int mod = 998244353;

inline int add(int a, int b) {
	a += b;
	return a >= mod ? a - mod : a;
}

inline int sub(int a, int b) {
	a -= b;
	return a < 0 ? a + mod : a;
}

inline int mul(int a, int b) { return (LL)a * b % mod; }

inline int ksm(int a, int b) {
	int res = 1;
	for (; b; b >>= 1, a = mul(a, a)) if (b & 1) res = mul(res, a);
	return res;
}	
const int inv2 = ksm(2, mod - 2);

int n, s;

inline void FWT(int *t, int n, int type) {	
	for (int step = 1; step < n; step <<= 1) {
		for (int i = 0; i < n; i += step << 1) {
			for (int j = 0; j < step; ++ j) {
				int x = t[i + j], y = t[i + j + step];
				t[i + j] = add(x, y), t[i + j + step] = sub(x, y);
				if (type == -1) {
					t[i + j] = mul(t[i + j], inv2);
					t[i + j + step] = mul(t[i + j + step], inv2);
				}
			}
		}
	}
}

const int N = 1 << 18;
int p[N], a[N];

int main() {
	read(n);
	for (int i = 0; i < 1 << n; ++ i) read(p[i]), s = add(s, p[i]);
	s = ksm(s, mod - 2);
	for (int i = 0; i < 1 << n; ++ i) p[i] = mul(p[i], s);
	for (int i = 1; i < 1 << n; ++ i) a[i] = mod - 1;
	a[0] = (1 << n) - 1;
	p[0] = sub(p[0], 1); 
	FWT(a, 1 << n, 1), FWT(p, 1 << n, 1);
	for (int i = 0; i < 1 << n; ++ i) a[i] = mul(a[i], ksm(p[i], mod - 2));
	FWT(a, 1 << n, -1);
	for (int i = 0; i < 1 << n; ++ i) {
		printf("%d\n", sub(a[i], a[0]));
	}
}

Compiler output:
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 1
      | ^
a.cc: In function 'void read(T&)':
a.cc:16:48: error: no matching function for call to 'read()'
   16 | template<typename T> void read(T &x) { x = read(); }
      |                                            ~~~~^~
a.cc:16:27: note: candidate: 'template<class T> void read(T&)'
   16 | template<typename T> void read(T &x) { x = read(); }
      |                           ^~~~
a.cc:16:27: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /usr/include/c++/14/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116,
                 from a.cc:1:
/usr/include/unistd.h:371:16: note: candidate: 'ssize_t read(int, void*, size_t)'
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
/usr/include/unistd.h:371:16: note:   candidate expects 3 arguments, 0 provided
Language: C++

clude <bits/stdc++.h>
#pragma GCC optimize("Ofast")

#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n+m; i++)
#define ALL(v) v.begin(), v.end()

using ll = long long;
using ull = unsigned long long;
using namespace std;

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


Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> N;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | clude <bits/stdc++.h>
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << 180 * (N-2) << endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:28: error: 'endl' was not declared in this scope
   15 |     cout << 180 * (N-2) << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | clude <bits/stdc++.h>
Language: C++

/*
このコード、と～おれ!
Be accepted!
∧＿∧　
（｡･ω･｡)つ━☆・*。
⊂　　 ノ 　　　・゜+.
　しーＪ　　　°。+ *´¨)
 　　　　　　　　　.· ´¸.·*´¨) ¸.·*¨)
		  　　　　　　　　　　(¸.·´ (¸.·'* ☆
					*/

#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstring>
#include <vector>
#include <numeric>
#include <iostream>
#include <random>
#include <map>
#include <unordered_map>
#include <queue>
#include <regex>

#pragma GCC optimize("Ofast")
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define rep1(i, n) for(int i = 1; i <= (n); ++i)
#define rep2(i, n) for(int i = 2; i < (n); ++i)
#define repr(i, n) for(int i = n; i >= 0; --i)
#define reprm(i, n) for(int i = n - 1; i >= 0; --i)
#define printynl(a) printf(a ? "yes\n" : "no\n")
#define printyn(a) printf(a ? "Yes\n" : "No\n")
#define printYN(a) printf(a ? "YES\n" : "NO\n")
#define printin(a) printf(a ? "possible\n" : "inposible\n")
#define printdb(a) printf("%.50lf\n", a)//少数出力
#define printdbd(a) printf("%.16lf\n", a)//少数出力(桁少なめ)
#define prints(s) printf("%s\n", s.c_str())//string出力
#define all(x) (x).begin(), (x).end()
#define allsum(a, b, c) ((a + b) * c / 2)//等差数列の和、初項,末項,項数
#define pb push_back
#define priq priority_queue
#define rpriq priq<int, vector<int>, greater<int>>
#define deg_to_rad(deg) (((deg)/360.0)*2.0*PI)
#define rad_to_deg(rad) (((rad)/2.0/PI)*360.0)
#define Please return
#define AC 0

using ll = long long;

constexpr int INF = 1073741823;
constexpr int MINF = -1073741823;
constexpr ll LINF = ll(4661686018427387903);
constexpr ll MOD = 1000000007;
const double PI = acos(-1);

using namespace std;

void scans(string& str) {
	char c;
	str = "";
	scanf("%c", &c);
	if (c == '\n')scanf("%c", &c);//最初の改行対策
	while (c != '\n' && c != -1) {
		str += c;
		scanf("%c", &c);
	}
}

void scanc(char& str) {
	char c;
	scanf("%c", &c);
	if (c == -1)return;
	while (c == '\n') {
		scanf("%c", &c);
	}
	str = c;
}

double acot(double x) {
	return PI / 2 - atan(x);
}

/*-----------------------------------------ここからコード-----------------------------------------*/


int main() {
	
	int a;
	scanf("%d", &a);
	printf("%d\n", 180 * (n - 2));
	
	Please AC;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:91:31: error: 'n' was not declared in this scope
   91 |         printf("%d\n", 180 * (n - 2));
      |                               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  cout << ((cin >> ) - 2) * 180;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: expected primary-expression before ')' token
    4 |   cout << ((cin >> ) - 2) * 180;
      |                    ^
a.cc: At global scope:
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: Java

import java.util.Scanner;

public class A{
public static void main (String [] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println((n-2)*180);
}
}

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

import java.util.Scanner;

public class HelloWorld{
public static void main (String [] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println((n-2)*180);
}
}

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

import java.util.Scanner;
 Class SumOfIAngles {
public static void main (String [] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println((n-2)*180);
}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
 Class SumOfIAngles {
 ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main (String [] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.Scanner;

public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		System.out.println((N-2)*180);
	}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Prob1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		System.out.println((N-2)*180);
	}
}

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

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

itn main(){
  int n;
  cin >> n;
  cout << 180*(n-2);
}

Compiler output:
a.cc:4:1: error: 'itn' does not name a type; did you mean 'int'?
    4 | itn main(){
      | ^~~
      | int
Language: C++

#include <iostream>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <iomanip>
#include <functional> // std::function<void(int)>
using namespace std;
#define int long long
#define All(v) (v).begin(),(v).end()
int dy[4] = {-1,0,1,0};
int dx[4] = {0,1,0,-1};
int Dy[8] = {-1,-1,0,1,1,1,0,-1};
int Dx[8] = {0,1,1,1,0,-1,-1,-1};
const int mod = 1000000007;
const int inf = mod*mod;
const int d5 = 111111;
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int a,b;
    cin>>a;
    cout<<180*(a-2)<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:31:27: error: expected '}' at end of input
   31 |     cout<<180*(a-2)<<endl;
      |                           ^
a.cc:26:14: note: to match this '{'
   26 | signed main(){
      |              ^
Language: C++

#include <bits/stdc++.h>
#define endl "\n"
#define IOS ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using ll = long long;
const int INF = 0x3f3f3f3f;
const double pi = acos(-1);
using namespace std;

int main() {
    IOS
    int n;
    cin >> n;
    cout << (n-2)*180 << endl
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected ';' before 'return'
   14 |     return 0;
      |     ^~~~~~
Language: C

#include<stdio.h>
int main(){
  int N;
  printf("%d"(N-2)*180);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:10: error: called object is not a function or function pointer
    4 |   printf("%d"(N-2)*180);
      |          ^~~~
Language: C

#include<stdio.h>
int main(){
  int N;
  scanf("%d",&N);
  printf("%d"(N-2)*180);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: called object is not a function or function pointer
    5 |   printf("%d"(N-2)*180);
      |          ^~~~
Language: C

#include<stdio.h>
int main(){
  int N;
  scanf("%d",&N);
  printf("%d"(N-2)*180);
  
  return 0
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: called object is not a function or function pointer
    5 |   printf("%d"(N-2)*180);
      |          ^~~~
main.c:7:11: error: expected ';' before '}' token
    7 |   return 0
      |           ^
      |           ;
    8 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >> a;
  cout << 180 * (n - 2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'n' was not declared in this scope
    6 |   cout << 180 * (n - 2);
      |                  ^
Language: C++

#include <cstdio>
using namespace std;
int main()
{
  int n;
  scanf("%d", &n);
  printf("%d\n", (n-2)*180)
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before 'return'
    7 |   printf("%d\n", (n-2)*180)
      |                            ^
      |                            ;
    8 |   return 0;
      |   ~~~~~~
Language: C

#intclude<stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  printf("%d\n",180*(n-2));
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #intclude; did you mean #include?
    1 | #intclude<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #intclude<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d",&n);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |   printf("%d\n",180*(n-2));
      |   ^~~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int main(void){



int n;
  
  scanf("%d",&n);
  
  printf("%d\n",((n-2)*180);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:28: error: expected ')' before ';' token
   10 |   printf("%d\n",((n-2)*180);
      |         ~                  ^
      |                            )
main.c:11:10: error: expected ';' before '}' token
   11 | return 0;
      |          ^
      |          ;
   12 | }
      | ~
Language: C

#include <stdio.h>
int main(void){



int n;
  
  scanf("%d",&n);
  
  prinrf("%d\n",180-(360/n));
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'prinrf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   prinrf("%d\n",180-(360/n));
      |   ^~~~~~
      |   printf
Language: C++

#include<bits/stdc++.h>

using namespace std;
#define ll long long 
#define pb(a) push_back(a)
#define fi first
#define se second


int main(){

    ll n;
    cin>>n;

    couta<<(n-1) * 180<<endl; 
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'couta' was not declared in this scope
   15 |     couta<<(n-1) * 180<<endl;
      |     ^~~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  cout << 180 * (N - 2) << endl;
  
}

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

#include<iostream>
int main(){
  int N;
  cin>>N;
  cout<<180*(N-2)<<endl;
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  std::ios_base::sync_wtih_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin>>n;
  cout<<(n-2)*180<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: 'sync_wtih_stdio' is not a member of 'std::ios_base'
    4 |   std::ios_base::sync_wtih_stdio(false);
      |                  ^~~~~~~~~~~~~~~
Language: C++

#include "cstdio.h"
using namespace std;
int main(){
	int n;
  	scanf("%d",&n);
  	printf("%d\n",(n-2)*180);
  	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a;
  cin>>a;
  cout<<(n-2)*180;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'n' was not declared in this scope
    7 |   cout<<(n-2)*180;
      |          ^
Language: C++

#include<bits/stdc++.h>

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

    printf("%d",(N-2)*180);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     int N; cin>>N;
      |            ^~~
      |            std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<bits/stdc++.h>
using namespaces std;
int main()
{
    int n;
    cin>>n;
    cout<<1ll*(n-2)*180<<endl;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<1ll*(n-2)*180<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<1ll*(n-2)*180<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;cin >> a;
  cout << (n-2)*180 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'a' was not declared in this scope
    4 |   int n;cin >> a;
      |                ^
Language: Java

import java.util.Scanner;
public class Main.java{
	public static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
			S= (N - 2)*180;
		if(N<=3 && N>=100){
			N=tc.nextInt();
			S = (N - 2)*180;
		}
		System.out.println(S);
	}

}


Compiler output:
Main.java:2: error: '{' expected
public class Main.java{
                 ^
1 error
Language: Java

import java.util.Scanner;
public class UMA.java {
	public static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
			S= (N - 2)*180;
		if(N<=3 && N>=100){
			N=tc.nextInt();
			S = (N - 2)*180;
		}
		System.out.println(S);
	}

}


Compiler output:
Main.java:2: error: '{' expected
public class UMA.java {
                ^
1 error
Language: Java

import java.util.Scanner;
public class UMA {
	public static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
			S= (N - 2)*180;
		if(N<=3 && N>=100){
			N=tc.nextInt();
			S = (N - 2)*180;
		}
		System.out.println(S);
	}

}


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

import java.util.Scanner;
public class vetores {
	public static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
			S= (N - 2)*180;
		if(N<=3 && N>=100){
			N=tc.nextInt();
			S = (N - 2)*180;
		}
		System.out.println(S);
	}

}

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

import java.util.Scanner;
public class vetores {
	public static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();

		if(N>=3 && N<=100){
			S= (N - 2)*180;
		}else{
			N=tc.nextInt();
			S = (N - 2)*180;

		}
		System.out.println(S);
	}

}


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

import java.util.Scanner;
public class main {
	public static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
		if(N<=3){
			S = (N - 2 )*180;
		}else{
			N=tc.nextInt();
			S = (N - 2)*180;

		}
		System.out.println(S);
	}

}


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

import java.util.Scanner;
public class main.java {
	static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
		if(N<=3){
			S = (N - 2 )*180;
		}else{
			N=tc.nextInt();
			S = (N - 2)*180;

		}
		System.out.println(S);
	}

}

Compiler output:
Main.java:2: error: '{' expected
public class main.java {
                 ^
1 error
Language: Java

import java.util.Scanner;
public class main {
	static void main (String[]args){
		Scanner tc =new Scanner(System.in);
		int N,S;
		N=tc.nextInt();
		if(N<=3){
			S = (N - 2 )*180;
		}else{
			N=tc.nextInt();
			S = (N - 2)*180;

		}
		System.out.println(S);
	}

}

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

#include <stdlib>
#include <iostream>
#include <cmath>

int main(){
  int N;
  std::cin >> N;
  int ans = 180*2*N - 360*2;
  std::cout << ans <<std::endl;
  return 0;
}
  

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

#include <bits/stdc++.h>
#define ll long long 
#define all(v) v.begin() , v.end()
#define pb push_back
#define mp make_pair
using namespace std;

int main(){
	ll n, res;
  cin >> n ;
  res = (n-2)*180;
  cout <<< res;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before '<' token
   12 |   cout <<< res;
      |          ^
Language: C

#include<stdio.h>

int main(){
char S[15];

int j = 0;


for(int i= 0; i<15; i++){
scanf("%s", &S[i]);
}
for(int k = 0; k <15; k++){
  if(S[k] == 'x'){
   j++;
   }
  if(j >= 8){
     printf("NO\n");
  }
  printf("YES\n");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int n;
char a[n][n];
int func(int num){
  int b[n];
  for(int i=0;i<n;i++){
    if(a[num][i] = 0
}
  
int main(){
  cin >> n;
  string str;
  for(int i=0;i<n;i++){
    cin >> str;
    for(int j=0;j<i;j++){
      a[i][j] = str[j];
    }
  }
  static int b[n];
  int sum = 0;
  for(int i=0;i<n;i++){
    sum += func();
  }
  cout << sum;
  return 0;
}
    

Compiler output:
a.cc:4:11: error: size of array 'a' is not an integral constant-expression
    4 | char a[n][n];
      |           ^
a.cc:4:8: error: size of array 'a' is not an integral constant-expression
    4 | char a[n][n];
      |        ^
a.cc: In function 'int func(int)':
a.cc:8:21: error: expected ')' before '}' token
    8 |     if(a[num][i] = 0
      |       ~             ^
      |                     )
    9 | }
      | ~                    
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main(){
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main(){
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:11: error: a function-definition is not allowed here before '{' token
   11 | int main(){
      |           ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:5:18: note: to match this '{'
    5 | int func(int num){
      |                  ^
a.cc:27:2: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      |  ^
Language: C

#include<stdio.h>

int main(){
char S[15];

int j = 0;
int g = 0;

for(int i= 0; i<15; i++){
scanf("%s", &S[i]);
}
for(int k = 0; k <15; k++){
  if(S[k] == x){
   j++;
   }
  if(j >= 8){
     printf("NO\n");
  }
  printf("YES\n");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:14: error: 'x' undeclared (first use in this function)
   13 |   if(S[k] == x){
      |              ^
main.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int q;cin>>q;
  int x,d,n;
  int ans=1;
  for(int i=0;i<q;i++){
    cin>>x>>d>>n;
    n=n%1000003
    for(int j=0;j<n;j++){
      ans*=x+j*d;
      ans=ans%1000003;
    }
    cout<<ans<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'for'
   10 |     n=n%1000003
      |                ^
      |                ;
   11 |     for(int j=0;j<n;j++){
      |     ~~~         
a.cc:11:17: error: 'j' was not declared in this scope
   11 |     for(int j=0;j<n;j++){
      |                 ^
Language: C

#include<stdio.h>

char S[15];

int j = 0;
int g = 0;

for(int i= 0; i<15; i++){
scanf("%s", &S[i]);
}
for(int k = 0; k <15; k++){
  if(S[k] == x){
   j++;
   }
  if(j >= 8){
     printf("NO\n");
  }
  printf("YES\n");
  
  return 0;
}


Compiler output:
main.c:8:1: error: expected identifier or '(' before 'for'
    8 | for(int i= 0; i<15; i++){
      | ^~~
main.c:8:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    8 | for(int i= 0; i<15; i++){
      |                ^
main.c:8:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    8 | for(int i= 0; i<15; i++){
      |                      ^~
main.c:11:1: error: expected identifier or '(' before 'for'
   11 | for(int k = 0; k <15; k++){
      | ^~~
main.c:11:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   11 | for(int k = 0; k <15; k++){
      |                  ^
main.c:11:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   11 | for(int k = 0; k <15; k++){
      |                        ^~
Language: C

#include<stdio.h>

char S[15]

int j = 0;
int g = 0;

for(int i= 0; i<15; i++){
scanf("%s", &S[i]);
}
for(int k = 0; k <15; k++){
  if(S[k] == x){
   j++;
   }
  if(j >= 8){
     printf("NO\n");
  }
  printf("YES\n");
  
  return 0;
}


Compiler output:
main.c:3:11: error: expected ';' before 'int'
    3 | char S[15]
      |           ^
      |           ;
    4 | 
    5 | int j = 0;
      | ~~~        
main.c:8:1: error: expected identifier or '(' before 'for'
    8 | for(int i= 0; i<15; i++){
      | ^~~
main.c:8:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    8 | for(int i= 0; i<15; i++){
      |                ^
main.c:8:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    8 | for(int i= 0; i<15; i++){
      |                      ^~
main.c:11:1: error: expected identifier or '(' before 'for'
   11 | for(int k = 0; k <15; k++){
      | ^~~
main.c:11:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   11 | for(int k = 0; k <15; k++){
      |                  ^
main.c:11:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   11 | for(int k = 0; k <15; k++){
      |                        ^~
Language: C

#include<stdio.h>

int main(){
  int N;
  scanf("%d", &N);
  printf("%d" , 180*(N-2);
  
 return 0;
         }
  

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ')' before ';' token
    6 |   printf("%d" , 180*(N-2);
      |         ~                ^
      |                          )
main.c:8:11: error: expected ';' before '}' token
    8 |  return 0;
      |           ^
      |           ;
    9 |          }
      |          ~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <stdio.h>
#include <nags.h>

using namespace std;

int main() {
   int i;
  
  cin >> i;
  for(int s=0;s<i;s++){
    int x,d,n;
  int total;
    int j;
    double k,p;
   cin >> x >> d >> n;
    
    j = std::pow(d,n);
    k = std::tgamma (x/(d+n));
    p = std::tgamma (x/d);
    
    total = j*k/n;
   
    cout <<total % 1000003 << endl;
  }
  
  
}

using namespace std;

int main() {
   int i;
  
  cin >> i;
  for(int s=0;s<i;s++){
    int x,d,n;
  int total;
    int j;
    double k,p;
   cin >> x >> d >> n;
    
    j = std::pow(d,n);
    k = std::tgamma (x/(d+n),0);
    p = std::tgamma (x/d,0);
    
    total = j*k/n;
   
    cout <<total % 1000003 << endl;
  }
  
  
}


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

#include <bits/stdc++.h>
#include <math.h>
#include <stdio.h>
#include <nag_stdlib.h>
#include <nags.h>

using namespace std;

int main() {
   int i;
  
  cin >> i;
  for(int s=0;s<i;s++){
    int x,d,n;
  int total;
    int j;
    double k,p;
   cin >> x >> d >> n;
    
    j = std::pow(d,n);
    k = std::tgamma (x/(d+n));
    p = std::tgamma (x/d);
    
    total = j*k/n;
   
    cout <<total % 1000003 << endl;
  }
  
  
}

using namespace std;

int main() {
   int i;
  
  cin >> i;
  for(int s=0;s<i;s++){
    int x,d,n;
  int total;
    int j;
    double k,p;
   cin >> x >> d >> n;
    
    j = std::pow(d,n);
    k = std::tgamma (x/(d+n),0);
    p = std::tgamma (x/d,0);
    
    total = j*k/n;
   
    cout <<total % 1000003 << endl;
  }
  
  
}


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

#include<iostream>
#include<string>
#include<typeinfo>
#include<vector>
#include<algorithm>
#include<map>
#include<iomanip>
typedef long long int ll;
using namespace std;
int main()
{
	int N;
	cin >> N;
  	cout << 180(N-2) <<endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expression cannot be used as a function
   14 |         cout << 180(N-2) <<endl;
      |                 ~~~^~~~~
Language: C

#include <stdio.h>
int main(void)
{
       int angles;
       int area = 180*(angles-2);
       scanf("%d",%angles);
       if(3<=angles<=100) printf("%d\n",area);
       
       return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before '%' token
    6 |        scanf("%d",%angles);
      |                   ^
Language: C++

#include <iostream>
using namespace std;
ios::sync_with_stdio(false);
cin.tie(nullptr);

#define MOD 1000  003;

int main() {

  int Q; cin >> Q;

  for (int i=0; i<Q; i++) {
    long long r=1;
    long long x, d, n;
    cin >> x >> d >> n;
    for (long long j=0; j<n; j++) {
      r *= (x + j*d);
      r %= MOD;
    }
    cout << r << endl;
  }
}


Compiler output:
a.cc:3:1: error: specializing member 'std::basic_ios<char>::sync_with_stdio' requires 'template<>' syntax
    3 | ios::sync_with_stdio(false);
      | ^~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin.tie(nullptr);
      | ^~~
a.cc: In function 'int main()':
a.cc:6:19: error: expected ';' before numeric constant
    6 | #define MOD 1000  003;
      |                   ^~~
a.cc:18:12: note: in expansion of macro 'MOD'
   18 |       r %= MOD;
      |            ^~~
Language: C++

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

int main() {
   int i;
  
  cin >> i;
  for(int s=0;s<i;s++){
    int x,d,n;
  int total;
    int j;
    double k,p;
   cin >> x >> d >> n;
    
    j = std::pow(d,n);
    k = std::tgamma (x/(d+n).0);
    p = std::tgamma (x/d.0);
    
    total = j*k/n;
   
    cout <<total % 1000003 << endl;
  }
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: expected ')' before numeric constant
   17 |     k = std::tgamma (x/(d+n).0);
      |                     ~       ^~
      |                             )
a.cc:18:25: error: expected ')' before numeric constant
   18 |     p = std::tgamma (x/d.0);
      |                     ~   ^~
      |                         )
Language: C++

//temprates
#include <iostream>
#include <tuple>
#include <sstream>
#include <vector>
#include <cmath>
#include <ctime>
#include <cassert>
#include <cstdio>
#include <queue>
#include <set>
#include <map>
#include <fstream>
#include <cstdlib>
#include <string>
#include <cstring>
#include <algorithm>
#include <numeric>
 
using ll = long long;
using namespace std;
 
#define FOR(i,a,b) for(int i = (int)(a); i <= (int)(b); i++)
#define LFOR(i,a,b) for(ll i = (ll)(a); i <= (ll)(b); i++)
#define FORR(i,a,b) for(int i = (int)(a); i >= (int)(b); i--)
#define LFORR(i,a,b) for(ll i = (int)(a); i >= (ll)(b); i--)
#define REP(i,n) FOR(i,0,(int)(n)-1)
#define LREP(i,n) LFOR(i,0,(ll)(n)-1)
#define REPR(i,n) FORR(i,(int)(n)-1,0)
#define LREPR(i,n) LFORR(i,(ll)(n)-1,0)
 
#define SIZ(v) int(v.size())
const int INF = 1e8;
const ll LINF = 1e15;
 
 
 
 
 
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string S;
  cin >> S;
  int k = SIZ(S);
  int los = 0;
  FOR(i,k){
    if (S[i] == 'x') los++;
  }
  if (los < 8)  cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc:47:10: error: macro "FOR" requires 3 arguments, but only 2 given
   47 |   FOR(i,k){
      |          ^
a.cc:23:9: note: macro "FOR" defined here
   23 | #define FOR(i,a,b) for(int i = (int)(a); i <= (int)(b); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:47:3: error: 'FOR' was not declared in this scope
   47 |   FOR(i,k){
      |   ^~~
Language: Java

package org.atcoder.mSolutions.procon;


import java.util.Scanner;

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

        int count = 0;
        for(char x : results.toCharArray()){
            if(x == 'x'){
                count++;
            }
        }

        if(x < 8){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }


    }
}


Compiler output:
Main.java:6: error: class Sumo is public, should be declared in a file named Sumo.java
public class Sumo {
       ^
Main.java:18: error: cannot find symbol
        if(x < 8){
           ^
  symbol:   variable x
  location: class Sumo
2 errors
Language: C++

#include <iostream>

using namespace std
  
int main(){
  cin << n;
  cout >> 180 * (n-2) >> endl;
  return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:10: error: 'n' was not declared in this scope
    6 |   cin << n;
      |          ^
Language: C++

#include<bit/stdc++.h>
using namespace std;
int main()
{
	int n;
	scanf("%d",&n);
	printf("%d",(n-2)*180);
	return 0;
}

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

#include<stdio.h>
int main(void) {
	int N;
	scanf_s("%d", &N);
	printf("%d\n", 180 * (N - 2));
	return 0;
}

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

#include<iostream>
using namespace std;
int main(){
string s;
cin >> s;
int n;
for(int i=0;i < 15;i++){
if(s[i] == 'x'){n ++ ;}
else if(s[i] != 'o'){break;}
}
if(n < 8){cout << "YES" << endl;}
else{cout << "NO" << endl;}
}


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

#include<iostream>
using namespace std;
int main(){
string s;
cin >> s;
int n=0;
for(int i=0;i < 15;i++){
if(s[i] == 'x'){n ++ ;}
else if(s[i] != 'o'){break;}
}
if(n < 8){cout << "NO" << endl;}
else{cout << "YES" << endl;}
}


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

#include<iostream>
using namespace std;
int main(){
string s;
cin >> s;
int n;
for(int i=0;i < 15;i++){
if(s[i] == 'x'){n ++ ;}
else if(s[i] != 'o'){break;}
}
if(n < 8){cout << "NO" << endl;}
else{cout << "YES" << endl;}
}


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

#include "pch.h"
#include <iostream>
#include <string>
using namespace std;

int main()
{
	string s;
	int k,p,a = 0;
	

	cin >> s;
	k = s.length();
	p = 15 - k;

	for (int i = 0; i < k; i++)
	{
		if (s[i] == 'o')
		{
			a++;
		}
	}

	if ((p + a) >= 8)
	{
		cout << "YES" << endl;
	}
	else
	{
		cout << "NO" << endl;
	}

}


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

#include <iostream>
#include<vector>
#include<string>
#include<bits/stdc++.h>
#include<stdio.h>
#include<algorithm>
#define ll long long
#define ff first
#define ss second
#define mk make_pair
#define pb push_back
using namespace std;






int main(){


int n;cin>>n;
cout<<(n-2)*180<<endl;

}


}


Compiler output:
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
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 ic;
        if(n>2 and n<101){
            ic = 180*(n-2)/2;
            System.out.println(ic);
        }
        
    }
}

Compiler output:
Main.java:8: error: ')' expected
        if(n>2 and n<101){
              ^
Main.java:8: error: ';' expected
        if(n>2 and n<101){
                    ^
Main.java:8: error: variable declaration not allowed here
        if(n>2 and n<101){
                   ^
Main.java:8: error: illegal start of type
        if(n>2 and n<101){
                     ^
4 errors
Language: C++

#include <iostream>

int main(){
int n; cin>>n; cout<<(n-2)*180<<endl;
}

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    cout << 180*(n-2)<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'n' was not declared in this scope
    5 |     cout << 180*(n-2)<< endl;
      |                  ^
Language: C++

#include <iostream>
#include <string>
#include <functional>
#include <algorithm>

using namespace std;

int main()
{
	string n;
  int sum=0;
  cin>>n;
  for(int i=1;i<=15;i++){
    if(n.at(i) == "o"){
      sum++;}
  }
  if(sum>7)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(n.at(i) == "o"){
      |        ~~~~~~~~^~~~~~
Language: C

#include "stdafx.h"
#include<iostream>


int main()
{
	using namespace std;
	int N;
	cin >> N;
	cout << 60 * N << endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
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 ic;
        if(n>2){
            ic = 180*(n-2)/2;
        }
        System.out.println(ic);
    }
}


Compiler output:
Main.java:11: error: variable ic might not have been initialized
        System.out.println(ic);
                           ^
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();
        if(n>2){
            int ic = 180*(n-2)/2;
        }
        System.out.println(ic);
    }
}



Compiler output:
Main.java:10: error: cannot find symbol
        System.out.println(ic);
                           ^
  symbol:   variable ic
  location: class Main
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
string s;
cin >> s;
int n;
for(int i=0;i < 15;i++){
if(s[i] == x){n ++ ;}
else if(s[i] != o){break;}
}
if(n < 8){cout << "YES" << endl;}
else{cout << "NO" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'x' was not declared in this scope
    8 | if(s[i] == x){n ++ ;}
      |            ^
a.cc:9:17: error: 'o' was not declared in this scope
    9 | else if(s[i] != o){break;}
      |                 ^
Language: C++

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

int main(){
  int n; cin>>n;
  cout<<(n-2)*180<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int n; cin>>n;
      |          ^~~
      |          std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<(n-2)*180<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<(n-2)*180<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s;
  cin >> s;
  int a= 0;
  for(i=0;i<=s.length()-1;i++){
    if(s[i] == o){
      a++;
    }
  }
  if(a + (15-s.length())>=8 ){
    cout << "YES"
  }else{
    cout << "NO"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<=s.length()-1;i++){
      |       ^
a.cc:9:16: error: 'o' was not declared in this scope
    9 |     if(s[i] == o){
      |                ^
a.cc:14:18: error: expected ';' before '}' token
   14 |     cout << "YES"
      |                  ^
      |                  ;
   15 |   }else{
      |   ~               
a.cc:16:17: error: expected ';' before '}' token
   16 |     cout << "NO"
      |                 ^
      |                 ;
   17 |   }
      |   ~
Language: C++

100#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;

  cout << 180*(N-2) << endl;

}


Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | 100#include <bits/stdc++.h>
      |    ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 100#include <bits/stdc++.h>
      | ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << 180*(N-2) << endl;
      |   ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |   cout << 180*(N-2) << endl;
      |                        ^~~~
Language: C

int main()
{
	int n;
    scanf("%d",&n);
 	printf((n-2))*180
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d",&n);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf((n-2))*180
      |         ^~~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:18: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    5 |         printf((n-2))*180
      |                ~~^~~
      |                  |
      |                  int
main.c:5:18: note: expected 'const char *' but argument is of type 'int'
main.c:5:26: error: expected ';' before '}' token
    5 |         printf((n-2))*180
      |                          ^
      |                          ;
    6 | }
      | ~