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

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

int main(){
  int a,b,c; cin >> a >> b >> c;
  if(b/a >= c) cout << c << endl;
  else cout << b/a << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' was not declared in this scope
    5 |   int a,b,c; cin >> a >> b >> c;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<bits/stdc++.h>
a.cc:6:16: error: 'cout' was not declared in this scope
    6 |   if(b/a >= c) cout << c << endl;
      |                ^~~~
a.cc:6:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:29: error: 'endl' was not declared in this scope
    6 |   if(b/a >= c) cout << c << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<bits/stdc++.h>
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout << b/a << endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |   else cout << b/a << endl;
      |                       ^~~~
a.cc:7:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if(b/a >= c) cout << c << endl;
  else cout << b/a << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<bits/stdc++.h>
a.cc:7:16: error: 'cout' was not declared in this scope
    7 |   if(b/a >= c) cout << c << endl;
      |                ^~~~
a.cc:7:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:29: error: 'endl' was not declared in this scope
    7 |   if(b/a >= c) cout << c << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<bits/stdc++.h>
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << b/a << endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |   else cout << b/a << endl;
      |                       ^~~~
a.cc:8:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
  int a,b,c,ans;
  cin >> a >> b >> c;
  if(b/a >= c) cout << c << endl;
  else cout << b/a << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<bits/stdc++.h>
a.cc:7:16: error: 'cout' was not declared in this scope
    7 |   if(b/a >= c) cout << c << endl;
      |                ^~~~
a.cc:7:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:29: error: 'endl' was not declared in this scope
    7 |   if(b/a >= c) cout << c << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<bits/stdc++.h>
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << b/a << endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |   else cout << b/a << endl;
      |                       ^~~~
a.cc:8:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>

using nemaspece std;

int main(){
  int A=0;
  int B=0;
  int C=0;
  int d=0;
  cin>>A>>B>>C;
  d=B/A;
  if(d>C){
    cout<<C;
  }
  else{
    cout<<d;
  }

}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'nemaspece'
    3 | using nemaspece std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   cin>>A>>B>>C;
      |   ^~~
      |   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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<C;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout<<d;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include <stdio.h>
int main(void){
	int A,B,C;
	scanf("%d",&A);
	scanf("%d",&B);
	scanf("%d",&C);
	int i = 1;
	if(A*C < B || A*C == B){
	printf("%d",C);}
	else if(A > B){
	printf("%d",0);}
	else{
		while(B => A){
			B = B-A;
			i = i+1;
		}
		printf("%d",i);
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:26: error: expected expression before '>' token
   13 |                 while(B => A){
      |                          ^
Language: C++

#include <stdio.h>
int main(void){
	int A,B,C;
	int i = 0;
	if(A*C < B || A*C = B){
	printf(C);}
	else{
		while(A > 0){
			A = A-B*i;
			i = i+1;
		}
		printf(i);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: lvalue required as left operand of assignment
    5 |         if(A*C < B || A*C = B){
      |            ~~~~~~~~^~~~~~
a.cc:6:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    6 |         printf(C);}
      |                ^
      |                |
      |                int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:12:24: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |                 printf(i);
      |                        ^
      |                        |
      |                        int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<stdio.h>
#include<algorithm>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    cout<<max(b/a,c);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<max(b/a,c);
      |     ^~~~
a.cc:6:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout<<max(b/a,c);
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include <iostream>
int main(){

  using namespace std;
  
  cin >> A >> B >> C;
  int i;
  for(i = 0;i<C  ;i++){
    if(B-A<0)
      break;
  B-=A;
  }
  
  cout << i;
  

return 0;
}

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

#include <bits/sdtc++.h>
usinh namespace std;
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    int pd=b/a;
    if (pd>=c}
{ cout<<c; }
else cout<<pd;
}

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

#include <iostream>
using namespace std;
 
int main() {
  int A, B, C, s=0;
  cin >> A >> B >> C;
  for (i = B; i>=A; i-=A) {
    s++;
    if (s == C) 
      break;
  }
  cout << s << endl;
  return 0;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i = B; i>=A; i-=A) {
      |        ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int A, B, C, s=1;
  cin >> A >> B >> C;
  for (i = B; i>=A; i-=A) {
    s++;
    if (s == C) 
      break;
  }
  cout << s << endl;
  return 0;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i = B; i>=A; i-=A) {
      |        ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int A, B, C, s=1;
  cin >> A >> B >> C;
  for (i = B; i>=A; i-=A) {
    s++;
    if (s == T) 
      break;
  }
  cout << s << endl;
  return 0;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |   for (i = B; i>=A; i-=A) {
      |        ^
a.cc:9:14: error: 'T' was not declared in this scope
    9 |     if (s == T)
      |              ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int A, B, C, s=1;
  cin >> A >> B >> C;
  while (s <= C) {
    if (B >= A) {
      B -= A;
      s++;
    {
    else {
      break;
    }
  }
  cout << s << endl;
  return 0;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:11:5: note: to match this '{'
   11 |     {
      |     ^
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:8:17: note: to match this '{'
    8 |     if (B >= A) {
      |                 ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int A, B, C, s=0;
  cin >> A >> B >> C;
  while (s <= C) {
    if (B >= A) {
      B -= A;
      s++;
    {
    else {
      break;
    }
  }
  cout << s << endl;
  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:11:5: note: to match this '{'
   11 |     {
      |     ^
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:8:17: note: to match this '{'
    8 |     if (B >= A) {
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int A, B, C, s=0;
  cin >> A >> B >> C;
  while (s <= C) {
    if (B >= A) {
      B -= A;
      sound++;
      {
    else {
      break;
    }
  }
  cout << sound << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'sound' was not declared in this scope
   10 |       sound++;
      |       ^~~~~
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:11:7: note: to match this '{'
   11 |       {
      |       ^
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:8:17: note: to match this '{'
    8 |     if (B >= A) {
      |                 ^
a.cc:16:11: error: 'sound' was not declared in this scope
   16 |   cout << sound << endl;
      |           ^~~~~
Language: C++

typedef long long ll;
const int mod=1e9+7;
#include <bits/stdc++.h>
using namespace std;

string s;
int main () {
    cin >> s ;
    int a,b;
    a=b=0;
    int k=s.length();
    lol(i,k){
        if(s[i]=='0')a++;
        if(s[i]=='1')b++;
    }
    cout << min(a,b)*2<< endl;
}
 
 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     lol(i,k){
      |         ^
a.cc:12:5: error: 'lol' was not declared in this scope; did you mean 'logl'?
   12 |     lol(i,k){
      |     ^~~
      |     logl
Language: C++

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

string s;
int main () {
    cin >> s ;
    int a,b;
    a=b=0;
    int k=s.length();
    lol(i,k){
        if(s[i]=='0')a++;
        if(s[i]=='1')b++;
    }
    cout << min(a,b)*2<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'i' was not declared in this scope
   10 |     lol(i,k){
      |         ^
a.cc:10:5: error: 'lol' was not declared in this scope; did you mean 'logl'?
   10 |     lol(i,k){
      |     ^~~
      |     logl
Language: C++

#include<iostream>
  
using namespace std;

int main(){
        int a,b,c,n=0;
        cin a >> b >> c;
        if(b/a>=C){
                n=c;
        }else{
                n=b/a;
        }
        cout << n;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'a'
    7 |         cin a >> b >> c;
      |            ^~
      |            ;
a.cc:8:17: error: 'C' was not declared in this scope
    8 |         if(b/a>=C){
      |                 ^
Language: C++

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

int main(){
    int H,W h,w;
    cin >> H >> W >> h >> w;
    cout << (H-h)*(W-w) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected initializer before 'h'
    5 |     int H,W h,w;
      |             ^
a.cc:6:17: error: 'W' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |                 ^
a.cc:6:22: error: 'h' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |                      ^
a.cc:6:27: error: 'w' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |                           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c,i=0;
  cin>>a>>b>>c;
  for(;;){
    b -=a*i;
    if(b <=0){
      cout<<i<<endl;
      return 0;
    }
    i++
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before '}' token
   12 |     i++
      |        ^
      |        ;
   13 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
  ll a,b,c;
  cin>>a>>b>>c;
  if(b/a>=C) cout<<C<<endl;
  else cout<<b/a<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'C' was not declared in this scope
    8 |   if(b/a>=C) cout<<C<<endl;
      |           ^
Language: C++

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

using namespace std;
typedef long long ll;

int main() {
    int a,b,c;
    cin >> a >> b >> c;
    cout << min(C,B/A) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'C' was not declared in this scope
   13 |     cout << min(C,B/A) << endl;
      |                 ^
a.cc:13:19: error: 'B' was not declared in this scope
   13 |     cout << min(C,B/A) << endl;
      |                   ^
a.cc:13:21: error: 'A' was not declared in this scope
   13 |     cout << min(C,B/A) << endl;
      |                     ^
Language: C++

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

int main(){
	int A, B, C;
	cin >> A >> B >> C;
  cout < B / A << endl;
  cout <<	min(C, (B - (B % A))/A);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout < B / A << endl;
      |          ~~~~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  int N = S.size();
  int a,b=0;
  for(int i=0;i<N;i++){
    if(S.at(i)=='1'){
      a++;
    }
    else{
      b++;
    }
  }
  cout>>ans=min(a,b)*2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |   cout>>ans=min(a,b)*2;
      |         ^~~
      |         abs
Language: C++

#include <iostream>

#include <vector>
using namespace std;
using ll = long long;

template <class T = long long>
class Union_Find {
  using size_type = std::size_t;
  using _Tp = T;
public:

  vector<_Tp> par;

  const _Tp & operator[] (size_type child) {
    return -par[root(child)];
  }

  Union_Find(size_type n) : par(n, -1) {}
  void init(int n) {
    par.assign(n, -1);
  }

  _Tp root(size_type x) {
    if (par[x] < 0) return x;
    else return par[x] = root(par[x]);
  }

  bool issame(size_type x, size_type y) {
    return root(x) == root(y);
  }

  bool merge(size_type x, size_type y) {
    x = root(x);
    y = root(y);
    if (x == y) return false;
    if (par[x] > par[y]) swap(x,y);
    par[x] += par[y];
    par[y] = x;
    return true;
  }

  _Tp size(int x) {
    return -par[root(x)];
  }
};
 
int main() {
  ll n, m, ans = 0;
  cin >> n >> m;
  Union_Find<long long> uf(n);
 
  vector<int> a(m), b(m);
  rep(i, m) {
    cin >> a[i] >> b[i];
    a[i] -= 1; b[i] -= 1;
  }
  ll con = (n * (n-1)) / 2;
  vector<ll> comf;
  // comf.push_back(con);
 
  for (int i = m - 1; i >= 0; --i) {
    comf.push_back(con);
    if (uf.issame(a[i], b[i])) {
      continue;
    }
    ll ta = uf.size(a[i]), tb = uf.size(b[i]);
    con -= ta * tb;
    uf.merge(a[i], b[i]);
  }
 
  for (int i = m - 1; i >= 0; --i) {
    cout << comf[i] << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:54:7: error: 'i' was not declared in this scope
   54 |   rep(i, m) {
      |       ^
a.cc:54:3: error: 'rep' was not declared in this scope
   54 |   rep(i, m) {
      |   ^~~
Language: C

#include<stdio.h>
int main(void){
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  
  int cnt;
  cnt = b / a;
  
  if(i > c){
    printf("%d\n", c);
  }
  else{
    printf("%d\n", cnt);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: 'i' undeclared (first use in this function)
    9 |   if(i > c){
      |      ^
main.c:9:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main (){
  int A,B,C;
  cin>>A>>B>>C;
  
  int a=B/A;
  
  if(a>C){
    cout<<C<<endl;
  }
  else{cout<<a<<endl;
      }
}


    
    

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

#include<iostream>
#include<algrithm>
using namespace std;
int main(){
  int a,b,c;
  cin >> a>> b>> c;
  cout<<min(b/a,c);
}

Compiler output:
a.cc:2:9: fatal error: algrithm: No such file or directory
    2 | #include<algrithm>
      |         ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class Main(){
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    r=a>b?0:a/b;
    System.out.println(r);
  }
}

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

import java.util.*;

public class Main(){
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int c=sc.nextInt();
    System.out.println(a>b?0:a/b);
  }
}

Compiler output:
Main.java:3: error: '{' expected
public class Main(){
                 ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
int A, B, C; cin >> A >> B >> C;
if(A < B){cout << "0" << endl;}
else if((B/A) <= C);{cout << (B/A) << endl;}
  else{cout << C <<endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else{cout << C <<endl;}
      |   ^~~~
Language: C

 #include <stdio.h>
  2 
  3 int main(void)
  4 {
  5         int A,B,C,x,y;
  6         scanf("%d %d %d",&A,&B,&C);
  7 
  8         if(A < 1 || 100 < C){
  9                 return 1;
 10         }
 11 
 12         x = B / A;
 13         y = C * A;
 14 
 15 
 16         printf("%d\n",x);
 17 
 18         return 0;
 19 }


Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2
      |   ^
Language: C++

 #include <stdio.h>
  2 
  3 int main(void)
  4 {
  5         int A,B,C,x,y;
  6         scanf("%d %d %d",&A,&B,&C);
  7 
  8         if(A < 1 || 100 < C){
  9                 return 1;
 10         }
 11 
 12         x = B / A;
 13         y = C * A;
 14 
 15 
 16         printf("%d\n",x);
 17 
 18         return 0;
 19 }


Compiler output:
a.cc:2:3: error: expected unqualified-id before numeric constant
    2 |   2
      |   ^
Language: Java

public class Main {

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

		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();

		int count = 0;

		if( B - A * C >= 0) {
			count = C;
			System.out.println(count);
		}
		if(B - A * C < 0 && B >= A) {
			count = B / A;
			System.out.println(count);
		}
		if(B - A * C < 0 && B < A) {
			count = 0;
			System.out.println(count);
		}
	}

}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  int lis_max = B / A;
　cout << max(C,lis_max) <<endl;
}

Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　cout << max(C,lis_max) <<endl;
      | ^
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000cout' was not declared in this scope
    9 | 　cout << max(C,lis_max) <<endl;
      | ^~~~~~
Language: C++

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

int main(){
  int A,B,C; cin >> A >> B >> C;
  int lis_max = B / A;
　cout << max(C,lis_max) <<endl;
}

Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　cout << max(C,lis_max) <<endl;
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000cout' was not declared in this scope
    8 | 　cout << max(C,lis_max) <<endl;
      | ^~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  cout<<min(b/a,c)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'b' was not declared in this scope
    5 |   cout<<min(b/a,c)<<endl;
      |             ^
a.cc:5:15: error: 'a' was not declared in this scope
    5 |   cout<<min(b/a,c)<<endl;
      |               ^
a.cc:5:17: error: 'c' was not declared in this scope
    5 |   cout<<min(b/a,c)<<endl;
      |                 ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace sdt;
int main(){
  int a,b,c;
  cout<<min(b/a,c)<<endl;
}

Compiler output:
a.cc:3:17: error: 'sdt' is not a namespace-name
    3 | using namespace sdt;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<min(b/a,c)<<endl;
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   cout<<min(b/a,c)<<endl;
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<min(b/a,c)<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdio.h>

int main (void)
{
int A,B,C,o;

        scanf("%d%d%d",&A,&B,&C);

        o = B/A;

        if(o>C) printf("%d\n",C);
        else    printf("%d\n",o);

        return 0;
}
~   

Compiler output:
a.cc:16:2: error: expected class-name at end of input
   16 | ~
      |  ^
Language: C++

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

int main(){
  int a.b.c;
  cin>>a>>b>>c;
  cout<<min(c,b/a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '.' token
    5 |   int a.b.c;
      |        ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |           ^
a.cc:6:14: error: 'c' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |              ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int a, b, k;
  sin >> a >> b >> k;
  
  for(int i = min(a, b); i >= 1; --i){
    if(a % i == 0 && b % i == 0){
      k--;
      if(k == 0){
        cout << i << endl;
      }
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'sin' was not declared in this scope
    7 |   sin >> a >> b >> k;
      |   ^~~
Language: C++

#include<iostream>

using namespace std;

int main(){
  int a, b, c;
  sin >> a >> b >> c;
  
  if(c <= b/a){
    cout << c << endl;
  }
  else{
    cout << b/a << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'sin' was not declared in this scope
    7 |   sin >> a >> b >> c;
      |   ^~~
Language: C++

#include <stdio.h>

 int main(void)
{

 int a,b,k,i,n=0;

 scanf("%d%d%d" ,&a, &b, &k);

 for(i=100; i>=1; i--){

     if(a%i==0 && b%i==0){
         n++;

        if(n==k)
          printf("%d",i);

      }
  }

 return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: expected '}' at end of input
   21 |  return 0;
      |           ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>

 int main(void)
{

 int a,b,k,i,n=0;

 scanf("%d%d%d" ,&a, &b, &k);

 for(i=100; i>=1; i--){

     if(a%i==0 && b%i==0){
         n++;

        if(n==k)
          printf("%d",i);

      }
  }

 return 0;

   

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

#include <stdio.h>

 int main(void)
{

 int a,b,k,i,n=0;

 scanf("%d%d%d" ,&a, &b, &k);

 for(i=100; i>=1; i--){

     if(a%i==0 && b%i==0){
         n++;

        if(n==k)
          printf("%d",i);

      }
  }

 return 0;


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

#include<stdio.h>



int main(void)
{

   int a,b,c,d;

   scanf("%d%d%d",&a,&b,&c);

   d = b / a;

   printf("%d\n",d);

   if (d < c){
      printf("%d\n",d);
      }

   else{
         printf("%d\n",c);
        }
   return 0;


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


#include<stdio.h>

int main(void)
{
        int A, B, C, s;

        scanf("%d%d%d", &A, &B, &C);
        if(A>B) printf("0\n");

        s = B / A;
        if(C>s) printf("%d\n", s);

        else printf("%d\n", C);

        return 0;
}
~                        

Compiler output:
main.c:18:1: error: expected identifier or '(' before '~' token
   18 | ~
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
   int a, b ,c,i;
   scanf("%d%d%d", &a,&b,&c);
   i=b/a;
   if (i>c)
     printf("%d", c);
   else
   printf("%d",i); 
     
   return 0;


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

#include <bits/stdc++.h>
using namespace std;
 
 
typedef long long ll;
 
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<ii> vii;
typedef vector<vector<ii>> vvii;
typedef vector<ll> vll;


struct UnionFind {
  vector<int> data;
  int count;
  UnionFind(int size) : data(size, -1), count(size) { }
  bool unite(int x, int y) {
    x = root(x); y = root(y);
    if (x != y) {
      if (data[y] < data[x]) swap(x, y);
      data[x] += data[y]; data[y] = x;
      --count;
    }
    return x != y;
  }
  bool same(int x, int y) { return root(x) == root(y); }
  int root(int x) { return data[x] < 0 ? x : data[x] = root(data[x]); }
  int size(int x) { return -data[root(x)]; }
};
 
inline ll n_pairs(int s){
    return (ll)s * (s-1)/2;
}
 
void solve(int N,int M,vi& a,vi& b) {
    UnionFind uf(N);
    vll ans(M);
    ll curr = n_pairs(N);
    for (int i=M-1; i>=0; --i){
        ans[i] = curr;
        int ra=uf.root(a[i]), rb=uf.root(b[i]);
        if (ra != rb) {
            int sa=uf.size(a[i]), sb=uf.size(b[i]);
            curr += n_pairs(sa) + n_pairs(sb);
            uf.unite(a[i], b[i]);
            int s=uf.size(a[i]); 
            curr -= n_pairs(s);
        }
    }
    for (int i=0;i<M;++i){
        printf("%lld\n", ans[i]);
    }
}
 
int main() {
    int N, M; scanf("%d%d", &N, &M);
    vi a(M), b(M);
    for (int i=0;i<M;++i){
        scanf("%d%d", &a[i], &b[i]);
        --a[i]; --b[i];
    }
    solve(N,M,a,b);
    return 0;
}

Compiler output:
a.cc:9:16: error: 'ii' was not declared in this scope; did you mean 'vi'?
    9 | typedef vector<ii> vii;
      |                ^~
      |                vi
a.cc:9:18: error: template argument 1 is invalid
    9 | typedef vector<ii> vii;
      |                  ^
a.cc:9:18: error: template argument 2 is invalid
a.cc:10:23: error: 'ii' was not declared in this scope; did you mean 'vii'?
   10 | typedef vector<vector<ii>> vvii;
      |                       ^~
      |                       vii
a.cc:10:23: error: template argument 1 is invalid
a.cc:10:23: error: template argument 2 is invalid
a.cc:10:25: error: template argument 1 is invalid
   10 | typedef vector<vector<ii>> vvii;
      |                         ^~
a.cc:10:25: error: template argument 2 is invalid
Language: C

#include<stdio.h>

int main(void)
{ scanf("%d%d%d",&a,&b,&c);

   int a,b,c;
   double d;

   scanf("%d%d%d",&a,&b,&c);

   d = b/a;

   if(c<d){
      printf("%d\n",c);
   }

   else if(d<c){
      printf("%.0lf",d);
   }

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:19: error: 'a' undeclared (first use in this function)
    4 | { scanf("%d%d%d",&a,&b,&c);
      |                   ^
main.c:4:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:22: error: 'b' undeclared (first use in this function)
    4 | { scanf("%d%d%d",&a,&b,&c);
      |                      ^
main.c:4:25: error: 'c' undeclared (first use in this function)
    4 | { scanf("%d%d%d",&a,&b,&c);
      |                         ^
Language: C

#include<stdio.h>
int main(void)
{
  	int a,b,c:
  	
  	scanf("%d%d%d",&a,&b,&c);

  	if(b/a>c){
      	printf("%d",c);
    }else if(b/a<c && b/a>0){
      	printf("%d",b/a);
    }else if(b/a<0){
      	printf("0");
	}
return 0;
}
  	

Compiler output:
main.c: In function 'main':
main.c:4:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |         int a,b,c:
      |                  ^
main.c:8:16: error: 'c' undeclared (first use in this function)
    8 |         if(b/a>c){
      |                ^
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
  	int a,b,c:
  	
  	scanf("%d%d%d",a,b,c);

  	if(b/a>c){
      	printf("%d",c);
    }else if(b/a<c && b/a>0){
      	printf("%d",b/a);
    }else if(b/a<0){
      	printf("0");
	}
return 0;
}
  	

Compiler output:
main.c: In function 'main':
main.c:4:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 |         int a,b,c:
      |                  ^
main.c:8:16: error: 'c' undeclared (first use in this function)
    8 |         if(b/a>c){
      |                ^
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main (void)
{
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  if(0<=A,B,C<=100){
  	printf("%lf",B/A);{
      }
  else{
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected '}' before 'else'
    9 |   else{
      |   ^~~~
Language: C

#include <stdio.h>
int main (void)
{
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  if(0<=A,B,C<=100){
  	printf("%lf",B/A);[
      }
  else{
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:27: error: expected expression before '[' token
    7 |         printf("%lf",B/A);[
      |                           ^
main.c:7:28: error: expected ';' before '}' token
    7 |         printf("%lf",B/A);[
      |                            ^
      |                            ;
    8 |       }
      |       ~
Language: C

#include <stdio.h>
int main(void)
{
  int a,b,c,d;
  scanf("%d%d%d",&a,&b,&c);
  if((0<=a)&&(a<=100)&&(0<=b)&&(b<=100)&&(0<=c)&&(c<=100))
    {
      d = b/a;
      if(d>=c) printf("高橋君は%d円以上持っているので%d回音を聞けます\n",c*2,c);

      else {printf("%d\n",d);
            printf(" 満足できないこともあります\n");}
    }

return 0;
}
~                                                 

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

#include <stdio.h>
int main (void)
{
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  printf("%d",B/A);
  return0;
}

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

#include<iostream>
using namespace std;

int main(){
  int A, B, C;
  cin >> A >> B >> C;
  
  for (i = 0; i <= C; i++){
    if(A*i + A > B){
      break;
    }
  }
  
  cout << i << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i <= C; i++){
      |        ^
a.cc:14:11: error: 'i' was not declared in this scope
   14 |   cout << i << endl;
      |           ^
Language: C++

#include<iostream>

int main(){
  int A, B, C;
  cin >> A >> B >> C;
  
  for (i = 0; i <= C; i++){
    if(A*i + A > B){
      break;
    }
  }
  
  cout << i << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> A >> B >> C;
      |   ^~~
      |   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:7:8: error: 'i' was not declared in this scope
    7 |   for (i = 0; i <= C; i++){
      |        ^
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << i << 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:13:11: error: 'i' was not declared in this scope
   13 |   cout << i << endl;
      |           ^
a.cc:13:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout << i << endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main(){
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if(a*c<=b)	//お金がある場合
		printf("%d",c);
	else
		printf("%d",b/a);
	return 0;

Compiler output:
main.c: In function 'main':
main.c:10:9: error: expected declaration or statement at end of input
   10 |         return 0;
      |         ^~~~~~
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        public static void start(){
            Scanner sc = new Scanner(System.in);
            int A = sc.nextInt(),
            B = sc.nextInt(),
            C = sc.nextInt();
            System.out.println(Math.min(C, B/A));
        } 
    }
}

Compiler output:
Main.java:4: error: illegal start of expression
        public static void start(){
        ^
Main.java:12: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <iostream>

using namespace std;

int main()[
	int a, b, c, ans;
  	cin >> a;
  	cin >> b;
  	cin >> c;
  	ans = b/a < c ? b/a : c;
  	cout << ans << endl;
}

Compiler output:
a.cc:6:9: error: expected primary-expression before 'int'
    6 |         int a, b, c, ans;
      |         ^~~
a.cc:5:12: error: expected ']' before 'int'
    5 | int main()[
      |            ^
      |            ]
    6 |         int a, b, c, ans;
      |         ~~~ 
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> a;
      |         ^~~
a.cc:8:9: error: 'cin' does not name a type
    8 |         cin >> b;
      |         ^~~
a.cc:9:9: error: 'cin' does not name a type
    9 |         cin >> c;
      |         ^~~
a.cc:10:9: error: 'ans' does not name a type
   10 |         ans = b/a < c ? b/a : c;
      |         ^~~
a.cc:11:9: error: 'cout' does not name a type
   11 |         cout << ans << endl;
      |         ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

int main()
{
	int a,b,c;
	cin >> a;
	cin >> b;
	cin >> c;
	
	if(b/a>c)
	{
		cout << c << endl;
	}
	else
	{
		cout << b/a << 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(stdio.h)
int main(void)
{
  int A,B,C,k;
  
  scanf("%d%d%d",&A,&B,&C);
  
  if(A*C<B)
    printf("%d\n",C);
  
  else if((A*C>B)||(A<B)){
    k=B/A;
    printf("%d\n",k);
  }
  else
    printf("0\n");
  
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d%d%d",&A,&B,&C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d%d%d",&A,&B,&C);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("%d\n",C);
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf("%d\n",k);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |     printf("0\n");
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void)
{
    int a,b,c,s;
    scanf("%d%d%d",&a,&b,&c);

    s=b/a;

    if(s>c)
    s=c;

    printf("%d\n",s);
    return 0;
}
~            

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

#include<stdio.h>

int main(void)
{
        int a,b,c;
        double d;

scanf("%d%d%d",a,b,c);

b/a = d;
if(d<c){
printf("%ls",d);
}
elseif(c<d){
printf("%d",c)
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: lvalue required as left operand of assignment
   10 | b/a = d;
      |     ^
main.c:14:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   14 | elseif(c<d){
      | ^~~~~~
main.c:14:12: error: expected ';' before '{' token
   14 | elseif(c<d){
      |            ^
      |            ;
Language: C++

#include<stdio.h>
int main(void)
{
  int a,b,c,x,y;
  
  scanf("%d%d%d,&a,&b,&c");
  
  x=b/a;
  
  if(x>c) y=c;
  else if y=x;
  
  printf
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected '(' before 'y'
   11 |   else if y=x;
      |           ^
      |           (
a.cc:13:9: error: expected ';' before 'return'
   13 |   printf
      |         ^
      |         ;
   14 | 
   15 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>

int main(void)
{  
  int a, b, c, d, x;
     1 <= a <= 100;
     1 <= b <= 100;
     1 <= c <= 100;
     scanf("%d%d%d", &a, &b, &c);

     x = b / a;
     x <= c;

     printf("%d\n", x);

     d = a * c;
        
          if(x = c)
          printf("高橋くんは%d円以上持っているのでお気に入りの音を%d回聞いて満足します。\n", d, c);

        if(x < c)
          printf("高橋くんが満足できないこともあります。\n")
          
}

return 0;

Compiler output:
main.c: In function 'main':
main.c:22:61: error: expected ';' before '}' token
   22 |           printf("高橋くんが満足できないこともあります。\n")
      |                                                             ^
      |                                                             ;
   23 | 
   24 | }
      | ~                                                            
main.c: At top level:
main.c:26:1: error: expected identifier or '(' before 'return'
   26 | return 0;
      | ^~~~~~
Language: C

#include(stdio.h)
int main(void)
{
  int A,B,C,D;
  scanf("%d %d %d",&A,&B,&c);
  if(1<=A && A<=100)
    printf("正しい値を入力してください");
  else(1<=B && B<=100)
    printf("正しい値を入力してください");
  else(1<=C && C<=100)
     printf("正しい値を入力してください");
  
  D = B % A;
  		
  if(D==C)
    printf("%d",D);
  else(D>C)
    printf("%d",C);
  else(D<C)
    printf("%d",D);
  
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d %d %d",&A,&B,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d %d %d",&A,&B,&c);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:27: error: 'c' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&A,&B,&c);
      |                           ^
main.c:5:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("正しい値を入力してください");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:23: error: expected ';' before 'printf'
    8 |   else(1<=B && B<=100)
      |                       ^
      |                       ;
    9 |     printf("正しい値を入力してください");
      |     ~~~~~~             
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else(1<=C && C<=100)
      |   ^~~~
main.c:10:23: error: expected ';' before 'printf'
   10 |   else(1<=C && C<=100)
      |                       ^
      |                       ;
   11 |      printf("正しい値を入力してください");
      |      ~~~~~~            
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |     printf("%d",D);
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:12: error: expected ';' before 'printf'
   17 |   else(D>C)
      |            ^
      |            ;
   18 |     printf("%d",C);
      |     ~~~~~~  
main.c:19:3: error: 'else' without a previous 'if'
   19 |   else(D<C)
      |   ^~~~
main.c:19:12: error: expected ';' before 'printf'
   19 |   else(D<C)
      |            ^
      |            ;
   20 |     printf("%d",D);
      |     ~~~~~~
Language: C

#include<stdio.h>

int main (void)
{
  int A, B, C, s;
  scanf("%d%d%d", &A, &B, &C);
  if(B>A*C) s=C;
  else {
    for(s=0;B<0;s++)
      B=B-A;
  }
  printf("%d\n",s);
  return 0;

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

#include<stdio.h>
 
int main(void)
{  
  int a,b,c,d;

  scanf("%d %d %d\n",&a &b &c);
 
a/b=d;
 
printf("%d\n",d);
 
if(d < c){
  printf("not mannzoku...\n");

  else if(d > c)
  printf("mannzoku!\n");}
 
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:25: error: invalid operands to binary & (have 'int *' and 'int')
    7 |   scanf("%d %d %d\n",&a &b &c);
      |                      ~~ ^
      |                      |
      |                      int *
main.c:9:4: error: lvalue required as left operand of assignment
    9 | a/b=d;
      |    ^
main.c:16:3: error: expected '}' before 'else'
   16 |   else if(d > c)
      |   ^~~~
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

 #include<stdio.h>
  2 int main(void)
  3 {
  4    int A,B,C,D;
  5    scanf("%d %d %d",&A,&B,&C);
  6    D=B/A;
  7    if(D<C){
  8             printf("%d\n",D);                                    
  9    }
 10    else{
 11             printf("%d\n",C);
 12    }
 13    return 0;
 14 }


Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2 int main(void)
      |   ^