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

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<vector>
#include<map>
using namespace std;
typedef vector<int> PP;
typedef vector<PP> P;
int n,r;
int x1[10001],x2[10001],y1[10001],y2[10001];
short int[3000][3000];
vector<int> vx;
vector<int> vy;

void zatu(){
	for(int i=0;i<n;i++){
		for(int j=-1;j<=1;j++){
			vx.push_back(x1[i]+j);
			vx.push_back(x2[i]+j);
			vy.push_back(y1[i]+j);
			vy.push_back(y2[i]+j);
		}
	}
	vx.push_back(0);
	vx.push_back(10000);
	vy.push_back(0);
	vy.push_back(10000);
	sort(vx.begin(),vx.end());
	sort(vy.begin(),vy.end());
	vx.erase(unique(vx.begin(),vx.end()),vx.end());
	vy.erase(unique(vy.begin(),vy.end()),vy.end());
	for(int i=0;i<n;i++){
		x1[i]=find(vx.begin(),vx.end(),x1[i])-vx.begin();
		x2[i]=find(vx.begin(),vx.end(),x2[i])-vx.begin();
		y1[i]=find(vy.begin(),vy.end(),y1[i])-vy.begin();
		y2[i]=find(vy.begin(),vy.end(),y2[i])-vy.begin();
	}
}

int main(void){
	while(1){
		scanf("%d%d",&n,&r);
		if(n==0 && r==0)break;
		vx.clear();
		vy.clear();
		memset(fie,0,sizeof(fie));
		for(int i=0;i<n;i++)scanf("%d%d%d%d",&x1[i],&y1[i],&x2[i],&y2[i]);
		zatu();
		for(int i=0;i<n;i++){
			fie[x1[i]][y1[i]]++;
			fie[x1[i]][y2[i]]--;
			fie[x2[i]][y1[i]]--;
			fie[x2[i]][y2[i]]++;
		}
		for(int i=0;i<=vy.size();i++){
			for(int j=1;j<=vx.size();j++){
				fie[j][i]+=fie[j-1][i];
			}
		}
		for(int i=0;i<=vx.size();i++){
			for(int j=1;j<=vy.size();j++){
				fie[j][i]+=fie[j][i-1];
			}
		}
		long long res=0;
		for(int i=0;i<vx.size();i++){
			for(int j=0;j<vy.size();j++){
				if(fie[j][i]>0)res+=(long long)(vx[i+1]-vx[i])*(vy[j+1]-vy[j]);
			}
		}
		
		cout << res << endl;
		if(r==2)cout << res << endl;
	}
    return 0;
}

Compiler output:
a.cc:11:25: warning: built-in function 'y1' declared as non-function [-Wbuiltin-declaration-mismatch]
   11 | int x1[10001],x2[10001],y1[10001],y2[10001];
      |                         ^~
a.cc:12:11: error: expected identifier before numeric constant
   12 | short int[3000][3000];
      |           ^~~~
a.cc:12:11: error: expected ']' before numeric constant
   12 | short int[3000][3000];
      |           ^~~~
      |           ]
a.cc:12:10: error: structured binding declaration cannot have type 'short int'
   12 | short int[3000][3000];
      |          ^
a.cc:12:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:10: error: empty structured binding declaration
a.cc:12:16: error: expected initializer before '[' token
   12 | short int[3000][3000];
      |                ^
a.cc: In function 'int main()':
a.cc:47:24: error: 'fie' was not declared in this scope
   47 |                 memset(fie,0,sizeof(fie));
      |                        ^~~
Language: C++

#include <iostream>
int main()
{
int p[10010][10010]={0};
while(1)
{
int n;
cin >> n;
break;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | 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
      |                  ^~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
int n,r;
while(1)
{
cin >> n >> r;
int m[10010][10010];
memset(m,0,sizeof(m));
int j=0;
for(int i=0;i<n;i++)
{
int a,b,c,d;
cin >> a >> b >> c>>d;
m[i][j];
j++;
}
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'memset' was not declared in this scope
   10 | memset(m,0,sizeof(m));
      | ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int n,r;
while(1)
{
cin >> n >> r;
int m[10010][10010];
memset(m,0,sizeof(m));
return 0;
}

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

#include <algorithm>
#include <iostream>
#include <map>
using namespace std;
typedef pair<int,int> P;
#define fi first
#define sec second
int a,b,c,d,n,r;
int le,ri,up,down;
int area,len;
map<P,int> m;
map<P,int>::iterator it;
int imos[2][10004];
int main()
{
    while(1)
    {
        memset(imos,0,sizeof(imos));
        area=0;len=0;
        le=down=INF;
        ri=up=1;
        m.clear();
        cin >> n >> r;
        if(n==0&&r==0)break;
        for(int i=0;i<n;i++)
        {
            cin >> a >> b >> c >> d;
            a++;b++;c++;d++;
            ri=max(ri,c);
            le=min(le,a);
            up=max(up,d);
            down=min(down,b);
            m[P(a,b)]++;
            m[P(a,d)]--;
            m[P(c,b)]--;
            m[P(c,d)]++;
        }
        for(int i=le;i<=ri+1;i++)
        {
            for(int j=down;j<=up+1;j++)
            {
                imos[i%2][j]=imos[i%2][j-1];
                it=m.find(P(i,j));
                if(it!=m.end())imos[i%2][j]+=(*it).sec;
            }
            for(int j=down;j<=up+1;j++)
            {
                imos[i%2][j]+=imos[(i-1)%2][j];
                if(imos[i%2][j]>0)area++;
                if(!!imos[i%2][j-1]!=!!imos[i%2][j])len++;
                if(!!imos[(i-1)%2][j]!=!!imos[i%2][j])len++;
                cout << imos[i%2][j];
            }
            cout << endl;
        }
        cout << area << endl;
        if(r==2)cout << len << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'memset' was not declared in this scope
   18 |         memset(imos,0,sizeof(imos));
      |         ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <map>
  +++ |+#include <cstring>
    4 | using namespace std;
a.cc:20:17: error: 'INF' was not declared in this scope
   20 |         le=down=INF;
      |                 ^~~
Language: C++

#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <map>
using namespace std;
typedef pair<int,int> P;
#define INF 1000000000
#define fi first
#define sec second
int a,b,c,d,n,r;
int le,ri,up,down;
int area,len;
map<P,int> *m;
map<P,int>::iterator it;
int imos[2][10004];
int main()
{
    while(1)
    {
        memset(imos,0,sizeof(imos));
        area=0;len=0;
        le=down=INF;
        ri=up=1;
        m=new map<P,int>();
        scanf("%d %d",&n,&r);
        if(n==0&&r==0)break;
        for(int i=0;i<n;i++)
        {
            scanf("%d %d %d %d",&a,&b,&c,&d);
            a++;b++;c++;d++;
            ri=max(ri,c);
            le=min(le,a);
            up=max(up,d);
            down=min(down,b);
            m[P(a,b)]++;
            m[P(a,d)]--;
            m[P(c,b)]--;
            m[P(c,d)]++;
        }
        for(int i=le;i<=ri+1;i++)
        {
            for(int j=down;j<=up+1;j++)
            {
                imos[i%2][j]=imos[i%2][j-1];
                it=m.find(P(i,j));
                if(it!=m.end())imos[i%2][j]+=(*it).sec;
            }
            for(int j=down;j<=up+1;j++)
            {
                imos[i%2][j]+=imos[(i-1)%2][j];
                if(imos[i%2][j]>0)area++;
                if(!!imos[i%2][j-1]!=!!imos[i%2][j])len++;
                if(!!imos[(i-1)%2][j]!=!!imos[i%2][j])len++;
            }
        }
        cout << area << endl;
        if(r==2)cout << len << endl;
        delete m;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:14: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>*' and 'P' {aka 'std::pair<int, int>'})
   36 |             m[P(a,b)]++;
      |              ^
a.cc:37:14: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>*' and 'P' {aka 'std::pair<int, int>'})
   37 |             m[P(a,d)]--;
      |              ^
a.cc:38:14: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>*' and 'P' {aka 'std::pair<int, int>'})
   38 |             m[P(c,b)]--;
      |              ^
a.cc:39:14: error: no match for 'operator[]' (operand types are 'std::map<std::pair<int, int>, int>*' and 'P' {aka 'std::pair<int, int>'})
   39 |             m[P(c,d)]++;
      |              ^
a.cc:46:22: error: request for member 'find' in 'm', which is of pointer type 'std::map<std::pair<int, int>, int>*' (maybe you meant to use '->' ?)
   46 |                 it=m.find(P(i,j));
      |                      ^~~~
a.cc:47:26: error: request for member 'end' in 'm', which is of pointer type 'std::map<std::pair<int, int>, int>*' (maybe you meant to use '->' ?)
   47 |                 if(it!=m.end())imos[i%2][j]+=(*it).sec;
      |                          ^~~
Language: Java

import java.util.Scanner;
public class Score {

	public static void main(String[] args) {
		int ans = 0;
		for(int i=0;i<2;i++){
			int sum=0;
			for(int j=0;j<4;j++){
				Scanner stdIn = new Scanner(System.in);
				int p = stdIn.nextInt();
				sum += p;
			}
			ans = Math.max(sum, ans);
		}
		System.out.println(ans);
	}

}

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

import java.until.Scanner;
public class Main {

	public static void main(String[] args) {
		int a = 0;
		int b = 0;
		java.util.Scanner stdIn = new Scanner(System.in);
		for(int i=0;i<4;i++){
			int p = stdIn.nextInt();
			a += p;
		}
		for(int i=0;i<4;i++){
			int p = stdIn.nextInt();
			b += p;
		}
		System.out.println(Math,max(a,b));
	}

}

Compiler output:
Main.java:1: error: package java.until does not exist
import java.until.Scanner;
                 ^
Main.java:7: error: cannot find symbol
		java.util.Scanner stdIn = new Scanner(System.in);
		                              ^
  symbol:   class Scanner
  location: class Main
Main.java:16: error: cannot find symbol
		System.out.println(Math,max(a,b));
		                   ^
  symbol:   variable Math
  location: class Main
Main.java:16: error: cannot find symbol
		System.out.println(Math,max(a,b));
		                        ^
  symbol:   method max(int,int)
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class q0510 {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		
		int[] a = new int[4];
		int[] b = new int[4];
		
		int sumA = 0, sumB = 0;
		
		for(int i = 0; i < 4; i++){
			a[i] = in.nextInt();
			sumA += a[i];
		}
		
		for(int i = 0; i < 4; i++){
			b[i] = in.nextInt();
			sumB += b[i];
		}
		
		if(sumA < sumB){
			System.out.println(sumB);
		}
		else{
			System.out.println(sumA);
		}
		
	}
}

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

import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int sumA, sumB;
		while((n = sc.nextInt()) != 0){
			sumA = sumB = 0;
			for(int i = 0; i < 4; i++){
				sumA += sc.nextInt();
			}
			
			for(int i = 0; i < 4; i++){
				sumB += sc.nextInt();
			}
			System.out.println(Math.max(sumA, sumB));
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		while((n = sc.nextInt()) != 0){
		       ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		int sumA = 0;
		int sumB = 0;
		for(int i=0;i<4;i++)sumA += stdIn.nextInt();
		for(int j=0;j<4;j++)sumB += stdIn.nextInt();
		if(sumA >= sumB)System.out.println(sumA);
		else if(sumA < sumB)System.out.println(sumB);
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		for(int i=0;i<4;i++)sumA += stdIn.nextInt();
		                            ^
  symbol:   variable stdIn
  location: class Main
Main.java:8: error: cannot find symbol
		for(int j=0;j<4;j++)sumB += stdIn.nextInt();
		                            ^
  symbol:   variable stdIn
  location: class Main
2 errors
Language: C

#include<stdio.h>
int main(void)
{
	int　a1,a2,a3,a4,b1,b2,b3,b4,s,t;
	scanf("%d %d %d %d %d %d %d %d",&a1,&a2,&a3,&a4,&b1,&b2,&b3,&b4);
	s=a1+a2+a3+a4;
	t=b1+b2+b3+b4;
	if(s<=t){
		printf("%d\n",t);
	}
	else if(t<=s){
		printf("%d\n",s);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:12: error: stray '\343' in program
    4 |         int<U+3000>a1,a2,a3,a4,b1,b2,b3,b4,s,t;
      |            ^~~~~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int　a1,a2,a3,a4,b1,b2,b3,b4,s,t;
	scanf("%d %d %d %d %d %d %d %d",&a1,&a2,&a3,&a4,&b1,&b2,&b3,&b4);
	s=a1+a2+a3+a4;
	t=b1+b2+b3+b4;
	if(s<t){
		printf("%d\n",t);
	}
	else if(t<s){
		printf("%d\n",s);
	}
	else if(s==t){
		printf("%d\n",s);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:12: error: stray '\343' in program
    4 |         int<U+3000>a1,a2,a3,a4,b1,b2,b3,b4,s,t;
      |            ^~~~~~~~
Language: C

#include<stdio.h>
int a,b,i,x;
int main(){
for(i=0;i<4;i++){
scanf("%d",&x);
a+=n;
}
for(i=0;i<4;i++){
scanf("%d",&x);
b+=n;
}
if(a>b) printf("%d\n",a);
else printf("%d\n",b);
return 0;
}

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

#include<stdio.h>
int main(){
  int a[4],i,at=0,bt=0;
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    at++=a[i];
  }
  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
    bt++=a[i];
  }
  if(at<bt){
    printf("%d\n",bt);
  }
  else{
    printf("%d\n",at);
  }
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: lvalue required as left operand of assignment
    6 |     at++=a[i];
      |         ^
main.c:10:9: error: lvalue required as left operand of assignment
   10 |     bt++=a[i];
      |         ^
Language: C

#include <stdio.h>

int main(){
	int a,b,c,d,e,f,g
	while(1){
		scanf("%d %d %d %d",&a,&b,&c,&d);
		scanf("%d %d %d %d",&e,&f,&g,&h);
		i=a+b+c+d;
		j=e+f+g+h;
		if(i==j){
			printf("%d\n",i);
		}else if(i<j){
			printf("%d\n",j);
		}else if(i>j){
			printf("%d\n",i);
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
    5 |         while(1){
      |         ^~~~~
Language: C

include<stdio.h>
int main(void){
	int a,b,c,d,a1,b1,c1,d1;
	scanf("%d%d%d%d%d%d%d%d",&a,&b,&c,&d,&a1,&b1,&c1,&d1);
	if(a+b+c+d>=a1+b1+c1+d1){printf("%d\n",a+b+c+d);}
	else{printf("%d\n",a1+b1+c1+d1);}
	return 0;
}

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

include<stdio.h>
int main(void){
	int a,b,c,d,a1,b1,c1,d1;
	scanf("%d%d%d%d",&a,&b,&c,&d);
	scanf("%d%d%d%d",&a1,&b1,&c1,&d1);
	if(a+b+c+d>=a1+b1+c1+d1){printf("%d\n",a+b+c+d);}
	else{printf("%d\n",a1+b1+c1+d1);}
	return 0;
}

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

include<stdio.h>
int main(void){
	int a,b,c,d,a1,b1,c1,d1,an,bn;
	scanf("%d%d%d%d",&a,&b,&c,&d);
	scanf("%d%d%d%d",&a1,&b1,&c1,&d1);
	an=a+b+c+d;
	bn=a1+b1+c1+d1;
	if(an>=bn){printf("%d\n",an);}
	else{printf("%d\n",bn);}
	return 0;
}

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

#include<stdio.h>
int main(){]
int a[4],b[4],asum,bsum;
scanf("%d %d %d %d\n%d %d %d %d",&a[0],&a[1],&a[2],&a[3],&b[0],&b[1],&b[2],&b[3]);
asum = a[0]+a[1]+a[2]+a[3];
bsum = b[0]+b[1]+b[2]+b[3];
if(asum>bsum)printf("%d\n",asum);else printf("%d\n",bsum);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:12: error: expected statement before ']' token
    2 | int main(){]
      |            ^
Language: C

#include<stdio.h>

int main(void){

int a[4]={0};
int b[4]={0};
int t1=0,t2=0;

//for(int j=0;j<2;j++){   if (i=1) scanf a[]
//for(int i=0;i<4;i++){

scanf("%d %d %d %d",&a[0],&a[1],&a[2],&a[3]);
scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3]);


//}
//}

for(int k=0;i<4;k++){
t1+=a[k];
t2+=b[k];
}

if(t1>=t2) printf("%d",t1);

else printf("%d",t2);

return 0;

}

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

#include<stdio.h>

int main(void){int a[4]={0};
int b[4]={0};
int t1=0,t2=0;
int k;

scanf("%d %d %d %d",&a[0],&a[1],&a[2],&a[3]);
scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3]);


for( k=0;i<4;k++){
t1+=a[k];
t2+=b[k];
}

if(t1>=t2) printf("%d",t1);

else printf("%d",t2);

return 0;

}

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

#include<stdio.h>

int main(void){int a[4]={0};
int b[4]={0};
int t1=0,t2=0;
int k;

scanf("%d %d %d %d",&a[0],&a[1],&a[2],&a[3]);
scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3]);


for( k=0;i<4;k++){
t1+=a[k];
t2+=b[k];
}

if(t1>=t2) printf("%d\n",t1);

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

return 0;

}

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

#include <stdio.h>

int main(void){

int aj,as,ar,ae,bj,bs,br,be,S,T;

scanf("%d %d %d %d", &ai,&as,&ar,&ae);
scanf("%d %d %d %d", &bi,&bs,&br,&be);

S=ai+as+ar+ae;
T=bi+bs+br+be;

if(S>=T) printf("%d",S);
else printf("%d",T);

retrun 0;




}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: 'ai' undeclared (first use in this function); did you mean 'ae'?
    7 | scanf("%d %d %d %d", &ai,&as,&ar,&ae);
      |                       ^~
      |                       ae
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'bi' undeclared (first use in this function); did you mean 'be'?
    8 | scanf("%d %d %d %d", &bi,&bs,&br,&be);
      |                       ^~
      |                       be
main.c:16:1: error: 'retrun' undeclared (first use in this function)
   16 | retrun 0;
      | ^~~~~~
main.c:16:7: error: expected ';' before numeric constant
   16 | retrun 0;
      |       ^~
      |       ;
Language: C

#include <stdio.h>

int main(void){

int aj,as,ar,ae,bj,bs,br,be,S,T;

scanf("%d %d %d %d", &ai,&as,&ar,&ae);
scanf("%d %d %d %d", &bi,&bs,&br,&be);

S=ai+as+ar+ae;
T=bi+bs+br+be;

if(S>=T) printf("%d\n",S);
else printf("%d\n",T);

return 0;




}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: 'ai' undeclared (first use in this function); did you mean 'ae'?
    7 | scanf("%d %d %d %d", &ai,&as,&ar,&ae);
      |                       ^~
      |                       ae
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:23: error: 'bi' undeclared (first use in this function); did you mean 'be'?
    8 | scanf("%d %d %d %d", &bi,&bs,&br,&be);
      |                       ^~
      |                       be
Language: C

#include <stdio.h>

int main(void){
	int j1, s1, r1, e1;
	int j2, s2, r2, e2;
	int sum1 = 0, sum2 = 0;
	
	scanf("%d %d %d %d %d %d %d %d", &j1, &s1, &r1, &e1, &j2, &s2, &r2, &e2);
	
	sum1 = j1+s1+r1+e1;
	sum2 = l2+s2+r2+e2;
	
	if (sum1 > sum2) printf("%d\n", sum1);
	else printf("%d\n", sum2);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'l2' undeclared (first use in this function); did you mean 'e2'?
   11 |         sum2 = l2+s2+r2+e2;
      |                ^~
      |                e2
main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include "stdlib.h"
#include "stdafx.h"

typedef struct {
	int math;
	int information;
	int science;
	int English;
}StudentScore;

int main(void)
{
	int sum1 = 0, sum2 = 0;
	StudentScore StudentScore1;
	StudentScore StudentScore2;
	scanf("%d", &StudentScore1.math);
	printf(" ");
	scanf("%d", &StudentScore1.information);
	printf(" ");
	scanf("%d", &StudentScore1.science);
	printf(" ");
	scanf("%d", &StudentScore1.English);
	sum1 += (StudentScore1.math + StudentScore1.information + StudentScore1.science + StudentScore1.English);
	printf("\n");
	scanf("%d", &StudentScore2.math);
	printf(" ");
	scanf("%d", &StudentScore2.information);
	printf(" ");
	scanf("%d", &StudentScore2.science);
	printf(" ");
	scanf("%d", &StudentScore2.English);
	sum2 += (StudentScore2.math + StudentScore2.information + StudentScore2.science + StudentScore2.English);
	if (sum1 > sum2) { return sum1;}
	else { return sum2; }
}

Compiler output:
main.c:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 
 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 
 a=[0].to_i
b=[1].to_i
c=[2].to_i
d=[3].to_i
e=[4].to_i
f=[5].to_i
g=[6].to_i
h=[7].to_i
i=[8].to_i

k=a+b+c+d
l=e+f+g+h

if (l>k) { 
	puts l
}	
   (l<k){ 
    puts k
}    
 if (l=k) {
 	puts l
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:15:2: error: 'a' undeclared (first use in this function)
   15 |  a=[0].to_i
      |  ^
main.c:15:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:4: error: expected expression before '[' token
   15 |  a=[0].to_i
      |    ^
main.c:37:2: error: expected declaration or statement at end of input
   37 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	int a,b,c,d
 a=[0].to_i
b=[1].to_i
c=[2].to_i
d=[3].to_i
 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 int e,f,g,h
e=[4].to_i
f=[5].to_i
g=[6].to_i
h=[7].to_i	
 	
int k,l

k=a+b+c+d
l=e+f+g+h

if (l>k) { 
	puts l
}	
   (l<k){ 
    puts k
}    
 if (l=k) {
 	puts l
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:10:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
   10 |  a=[0].to_i
      |  ^
main.c:15:21: error: expected ';' before ')' token
   15 |      for(i=0;i<4;i++){
      |                     ^
      |                     ;
main.c:15:21: error: expected statement before ')' token
main.c:19:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'e'
   19 | e=[4].to_i
      | ^
main.c:32:5: error: 'l' undeclared (first use in this function)
   32 |    (l<k){
      |     ^
main.c:32:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:32:7: error: 'k' undeclared (first use in this function)
   32 |    (l<k){
      |       ^
main.c:32:9: error: expected ';' before '{' token
   32 |    (l<k){
      |         ^
      |         ;
main.c:38:2: error: expected declaration or statement at end of input
   38 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	int a,b,c,d;
 a=[0].to_i;
b=[1].to_i;
c=[2].to_i;
d=[3].to_i;
 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 int e,f,g,h;
e=[4].to_i;
f=[5].to_i;
g=[6].to_i;
h=[7].to_i;	
 	
int k,l;

k=a+b+c+d;
l=e+f+g+h;

if (l>k) { 
	puts l;
}	
   (l<k){ 
    puts k;
}    
 if (l=k) {
 	puts l;
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:10:4: error: expected expression before '[' token
   10 |  a=[0].to_i;
      |    ^
main.c:11:3: error: expected expression before '[' token
   11 | b=[1].to_i;
      |   ^
main.c:12:3: error: expected expression before '[' token
   12 | c=[2].to_i;
      |   ^
main.c:13:3: error: expected expression before '[' token
   13 | d=[3].to_i;
      |   ^
main.c:19:3: error: expected expression before '[' token
   19 | e=[4].to_i;
      |   ^
main.c:20:3: error: expected expression before '[' token
   20 | f=[5].to_i;
      |   ^
main.c:21:3: error: expected expression before '[' token
   21 | g=[6].to_i;
      |   ^
main.c:22:3: error: expected expression before '[' token
   22 | h=[7].to_i;
      |   ^
main.c:30:13: error: expected ';' before 'l'
   30 |         puts l;
      |             ^~
      |             ;
main.c:32:9: error: expected ';' before '{' token
   32 |    (l<k){
      |         ^
      |         ;
main.c:38:2: error: expected declaration or statement at end of input
   38 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b){
 		puts b;
 	}
 	if (a>b){
 		puts a;
 		if (a=b) {
 			puts a;
 		}
 	
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:13:1: error: 'a' undeclared (first use in this function)
   13 | a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
      | ^
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:1: error: 'b' undeclared (first use in this function)
   14 | b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
      | ^
main.c:16:21: error: expected ';' before 'b'
   16 |                 puts b;
      |                     ^~
      |                     ;
main.c:19:21: error: expected ';' before 'a'
   19 |                 puts a;
      |                     ^~
      |                     ;
main.c:21:29: error: expected ';' before 'a'
   21 |                         puts a;
      |                             ^~
      |                             ;
main.c:25:2: error: expected declaration or statement at end of input
   25 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 	int a,b;
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b){
 		puts b;
 	}
 	if (a>b){
 		puts a;
 		if (a=b) {
 			puts a;
 		}
 	
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:17:21: error: expected ';' before 'b'
   17 |                 puts b;
      |                     ^~
      |                     ;
main.c:20:21: error: expected ';' before 'a'
   20 |                 puts a;
      |                     ^~
      |                     ;
main.c:22:29: error: expected ';' before 'a'
   22 |                         puts a;
      |                             ^~
      |                             ;
main.c:26:2: error: expected declaration or statement at end of input
   26 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 	int a,b;
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b;){
 		puts b;
 	}
 	if (a>b;){
 		puts a;
 		if (a=b;) {
 			puts a;
 		}
 	
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:16:16: error: expected ')' before ';' token
   16 |         if (a<b;){
      |            ~   ^
      |                )
main.c:17:21: error: expected ';' before 'b'
   17 |                 puts b;
      |                     ^~
      |                     ;
main.c:19:16: error: expected ')' before ';' token
   19 |         if (a>b;){
      |            ~   ^
      |                )
main.c:20:21: error: expected ';' before 'a'
   20 |                 puts a;
      |                     ^~
      |                     ;
main.c:21:24: error: expected ')' before ';' token
   21 |                 if (a=b;) {
      |                    ~   ^
      |                        )
main.c:22:29: error: expected ';' before 'a'
   22 |                         puts a;
      |                             ^~
      |                             ;
main.c:26:2: error: expected declaration or statement at end of input
   26 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 	int a,b;
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b){
 		;puts b;
 	}
 	if (a>b){
 		;puts a;
 		if (a=b) {
 			;puts a;
 		}
 	
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:17:22: error: expected ';' before 'b'
   17 |                 ;puts b;
      |                      ^~
      |                      ;
main.c:20:22: error: expected ';' before 'a'
   20 |                 ;puts a;
      |                      ^~
      |                      ;
main.c:22:30: error: expected ';' before 'a'
   22 |                         ;puts a;
      |                              ^~
      |                              ;
main.c:26:2: error: expected declaration or statement at end of input
   26 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 	int a,b;
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b){
 		puts "b";
 	}
 	if (a>b){
 		puts "a";
 		if (a=b) {
 			puts "a";
 		}
 	
     return 0; 
 } 

Compiler output:
main.c: In function 'main':
main.c:17:21: error: expected ';' before string constant
   17 |                 puts "b";
      |                     ^~~~
      |                     ;
main.c:20:21: error: expected ';' before string constant
   20 |                 puts "a";
      |                     ^~~~
      |                     ;
main.c:22:29: error: expected ';' before string constant
   22 |                         puts "a";
      |                             ^~~~
      |                             ;
main.c:26:2: error: expected declaration or statement at end of input
   26 |  }
      |  ^
Language: C

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 	int a,b;
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b){
 		puts ("b");
 	}
 	if (a>b){
 		puts ("a");
 		if (a=b) {
 			puts ("a");
 		}
 	
     return 0; 
 

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

#include <stdio.h> 
 int main(){ 
    int i;
     int student_A[4], student_B[4]; 
      
     for(i=0;i<4;i++){ 
         scanf("%d", &student_A[i]); 
     } 
 	 
     for(i=0;i<4;i++){ 
         scanf("%d", &student_B[i]); 
     } 
 	int a,b;
a=student_A[0]+student_A[1]+student_A[2]+student_A[3];
b=student_B[0]+student_B[1]+student_B[2]+student_B[3];
 	if (a<b){
 		puts ("b");
 	}
 	if (a>b){
 		puts ("a");
 		if (a=b) {
 			puts ("a");
 		}
 	
     return 0; 
 	}

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

a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:39: error: lvalue required as left operand of assignment
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |                                       ^~
main.c:1:57: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a,b,c;main(i){scanf("%d",&c);(i<5?a:b)+=c;i-8?main(i+1):printf("%d\n",a>b?a:b);}
      |                                                         ^~~~~~
main.c:1:57: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:57: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:57: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
main(){
  int a[4],b[4],s,t;
  scanf("%d#include <stdio.h>
main(){
  int a[4],b[4],s,t;
  scanf("%d%d%d%d",&a[0],&a[1],&a[2],a[3]);
  scanf("%d%d%d%d",&b[0],&b[1],&b[2],b[3]);
  s=a[0]+a[1]+a[2]+a[3];
  t=b[0]+b[1]+b[2]+b[3];
  if(s>t) printf("%d\n",s);
  else printf("%d\n",t);
}
%d%d%d",&a[0],&a[1],&a[2],a[3]);
  scanf("%d%d%d%d",&b[0],&b[1],&b[2],b[3]);
  s=a[0]+a[1]+a[2]+a[3];
  t=b[0]+b[1]+b[2]+b[3];
  if(s>t) printf("%d\n",s);
  else printf("%d\n",t);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:9: warning: missing terminating " character
    4 |   scanf("%d#include <stdio.h>
      |         ^
main.c:4:9: error: missing terminating " character
    4 |   scanf("%d#include <stdio.h>
      |         ^~~~~~~~~~~~~~~~~~~~~
main.c:5:7: error: expected ')' before '{' token
    5 | main(){
      |       ^
      |       )
main.c:4:8: note: to match this '('
    4 |   scanf("%d#include <stdio.h>
      |        ^
main.c:14:7: warning: missing terminating " character
   14 | %d%d%d",&a[0],&a[1],&a[2],a[3]);
      |       ^
main.c:14:7: error: missing terminating " character
   14 | %d%d%d",&a[0],&a[1],&a[2],a[3]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:5:1: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 | main(){
      | ^~~~~~
      | |
      | int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:19:25: error: expected ';' before '}' token
   19 |   else printf("%d\n",t);
      |                         ^
      |                         ;
   20 | }
      | ~
Language: C

main(){
	int i,a,b,c;
	for(a=b=i=0;i<8;i++)
		scanf("%d",&c),i<4?a+=c:b+=c;
	printf("%d\n",(a>b)?a:b);
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |                 scanf("%d",&c),i<4?a+=c:b+=c;
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){
main.c:4:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |                 scanf("%d",&c),i<4?a+=c:b+=c;
      |                 ^~~~~
main.c:4:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:42: error: lvalue required as left operand of assignment
    4 |                 scanf("%d",&c),i<4?a+=c:b+=c;
      |                                          ^~
main.c:5:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |         printf("%d\n",(a>b)?a:b);
      |         ^~~~~~
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'
Language: C

main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:35: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}
      |                                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}
main.c:1:35: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}
      |                                   ^~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:60: error: lvalue required as left operand of assignment
    1 | main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}
      |                                                            ^~
main.c:1:64: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(i,a,b,c){for(a=b=i=0;i<8;i++)scanf("%d",&c),i<4?a+=c:b+=c;printf("%d\n",(a>b)?a:b);}
      |                                                                ^~~~~~
main.c:1:64: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:64: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:64: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main() {
	int i , j , in , sum[2] = {0};
	
	for ( i = 0; i < 2; i++ ) {
		for ( j = 0; j < 4; j++ ) {
			scanf("%d",&in);
			sum[i] += in;
		}
	}
	if ( sum[0] => sum[1] )
		printf("%d\n",sum[0]);
	else
		printf("%d\n",sum[1]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |                         scanf("%d",&in);
      |                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:6:25: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |                         scanf("%d",&in);
      |                         ^~~~~
main.c:6:25: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:22: error: expected expression before '>' token
   10 |         if ( sum[0] => sum[1] )
      |                      ^
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("%d\n",sum[0]);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |                 printf("%d\n",sum[1]);
      |                 ^~~~~~
main.c:13:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main() {
	int i=0 , j=0 , in , sum[2]={0};
	while ( i < 2 ) {
		while ( j < 4 ) {
			scanf("%d",&in);
			sum[i]+=in;
		}
	}
	if ( sum[0] >= sum[1] )
		printf("%d\n",sum[0);
	else
		printf("%d\n",sum[1]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:36: error: expected ']' before ')' token
   12 |                 printf("%d\n",sum[0);
      |                                    ^
      |                                    ]
Language: C

#include <stdio.h>

int main() {
	int i=0 , j=0 , in , sum[2]={0};
	while ( i < 2 ) {
		while ( j < 4 ) {
			scanf("%d",&in);
			sum[i]+=in;
			j++;
		}
		i++;
	}
	if ( sum[0] >= sum[1] )
		printf("%d\n",sum[0);
	else
		printf("%d\n",sum[1]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:36: error: expected ']' before ')' token
   14 |                 printf("%d\n",sum[0);
      |                                    ^
      |                                    ]
Language: C

#include <stdio.h>

int main() {
	int i=0 , j=0 , in , sum[2]={0};
	while ( i < 2 ) {
		while ( j < 4 ) {
			scanf("%d",&in);
			sum[i]+=in;
			j++;
		}
		i++;
	}
	if ( sum[0] >= sum[1] ) {
		printf("%d\n",sum[0);
	} else {
		printf("%d\n",sum[1]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:36: error: expected ']' before ')' token
   14 |                 printf("%d\n",sum[0);
      |                                    ^
      |                                    ]
Language: C

#include <stdio.h>

int main(void) {
	int aone,bone;
	int asum,bsum;
	int i;
	asum=bsum=0;
	for(i=0;i<4;i++) {
		scanf("%d"&aone);
		asum+=aone;
	}
	for(i=0;i<4;i++) {
		scanf("%d",&bone);
		bsum+=bone;
	}
	printf("%d\n",asum>bsum?asum:bsum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:27: error: invalid operands to binary & (have 'char *' and 'int')
    9 |                 scanf("%d"&aone);
      |                       ~~~~^
      |                       |
      |                       char *
Language: C

#include <iostream>
using namespace std;

int main() {
  cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
  atot = a1 + a2 + a3 + a4;
  btot = b1 + b2 + b3 + b4;
  if( atot > btot)
    cout << atot << endl;
  else
    cout << btot << endl;
}

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

////////////////////////////
//情報オリンピック過去問////
//Score				 ////
//AOJ 0510			  ////
////////////////////////////

/*
 *設問解説
 *情報・数学・理科・英語のAさんBさんの合計得点
 *のうち大きい方を出力
 *同点の場合は、どちらか片方を出力
*/

include<stdio.h>

int main(){
	int aa,ab,ac,ad;
	int ba,bb,bc,bd;
	int asum,bsum,abmax;

	scanf("%d %d %d %d",&aa,&ab,&ac,&ad);
	scanf("%d %d %d %d",&ba,&bb,&bc,&bd);

	asum=aa+ab+ac+ad; bsum=ba+bb+bc+bd;	

	if(asum>=bsum){
		abmax=asum;
	}else{
		abmax=bsum;
	}
	
	printf("%d",abmax);

	return 0;

}

//end

/////////////////////////////////////////////
//解き方								   //
//	intで四科目おく					  //
//	intでaとbの得点を置く				//
//	intで最高点を置く					//
//	ifでabの大小を考えて				 //
//	最高点に代入						 //
//	最高点をprintfで出力				 //
//	簡単！							   //
/////////////////////////////////////////////

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

////////////////////////////
//情報オリンピック過去問////
//Score				 ////
//AOJ 0510			  ////
////////////////////////////

/*
 *設問解説
 *情報・数学・理科・英語のAさんBさんの合計得点
 *のうち大きい方を出力
 *同点の場合は、どちらか片方を出力
*/

include<stdio.h>

int main(){
	int aa,ab,ac,ad;
	int ba,bb,bc,bd;
	int asum,bsum,abmax;

	scanf("%d %d %d %d",&aa,&ab,&ac,&ad);
	scanf("%d %d %d %d",&ba,&bb,&bc,&bd);

	asum=aa+ab+ac+ad; bsum=ba+bb+bc+bd;	

	if(asum => bsum){
		abmax=asum;
	}else{
		abmax=bsum;
	}
	
	printf("%d",abmax);

	return 0;

}

//end

/////////////////////////////////////////////
//解き方								   //
//	intで四科目おく					  //
//	intでaとbの得点を置く				//
//	intで最高点を置く					//
//	ifでabの大小を考えて				 //
//	最高点に代入						 //
//	最高点をprintfで出力				 //
//	簡単！							   //
/////////////////////////////////////////////

Compiler output:
main.c:14:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   14 | include<stdio.h>
      |        ^