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

#include<iostream>
using namespace std;
int main(){
	int sa[3], sb[3];
	cin >> sa[0] >> sa[1] >> sa[2] >> sa[3];
	cin >> sb[0] >> sb[1] >> sb[2] >> sb[3];
	if ((sa[0] + sa[1] + sa[2] + sa[3]) > (sb[0] + sb[1] + sb[2] + sb[3]){
		cout << sa[0] + sa[1] + sa[2] + sa[3] << endl;
	}
	else{
		cout << sb[0] + sb[1] + sb[2] + sb[3] << endl;
	}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:78: error: expected ';' before '{' token
    7 |         if ((sa[0] + sa[1] + sa[2] + sa[3]) > (sb[0] + sb[1] + sb[2] + sb[3]){
      |                                                                              ^
      |                                                                              ;
a.cc:10:9: error: expected primary-expression before 'else'
   10 |         else{
      |         ^~~~
a.cc:9:10: error: expected ')' before 'else'
    9 |         }
      |          ^
      |          )
   10 |         else{
      |         ~~~~
a.cc:7:12: note: to match this '('
    7 |         if ((sa[0] + sa[1] + sa[2] + sa[3]) > (sb[0] + sb[1] + sb[2] + sb[3]){
      |            ^
Language: C++

include <iostream>
using namespace std;

int main(void)
{
        int a1, a2, a3, a4, a;
        int b1, b2, b3, b4, b;
        cin >> a1 >> a2 >> a3 >> a4;
        cin >> b1 >> b2 >> b3 >> b4;
        a = a1 + a2 + a3 + a4;
        b = b1 + b2 + b3 + b4;

        if(a < b)
                cout << b << endl;
        else if(a > b)
                cout << a << endl;
        else
                cout << a << endl;

        return (0);
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a1 >> a2 >> a3 >> a4;
      |         ^~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << b << endl;
      |                 ^~~~
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |                 cout << b << endl;
      |                              ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << a << endl;
      |                 ^~~~
a.cc:16:30: error: 'endl' was not declared in this scope
   16 |                 cout << a << endl;
      |                              ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << a << endl;
      |                 ^~~~
a.cc:18:30: error: 'endl' was not declared in this scope
   18 |                 cout << a << endl;
      |                              ^~~~
Language: C++

#include <cstdio>
using namespace std;
int main()
{
int a,b,x;
for(int i=0;i<8;i++){scanf("%d",&x); if(i<=3) a+=x; else b+=x;}
printf("&d",max(a,b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'max' was not declared in this scope
    7 | printf("&d",max(a,b));
      |             ^~~
Language: C++

#include <cstdio>
using namespace std;
int main()
{
int a,b,x;
for(int i=0;i<8;i++){scanf("%d",&x); if(i<=3) a+=x; else b+=x;}
printf("%d\n",max(a,b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'max' was not declared in this scope
    7 | printf("%d\n",max(a,b));
      |               ^~~
Language: C++

#include<iostream>
using namespace std;

int score[2][4];
int T[2]
int main()
{
	for(int i=0;i<2;i++)
	{
		for(int j=0;j<4;j++)
		{
			cin >>score[i][j];
			T[i]+=score[i][j];
		}
	}
	if(T[1]>T[2])
	{
		cout<<T[1];
	}
	else 
	{
	cout<<T[2];
	}
}

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main()
      | ^~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include<iomanip>

using namespace std;

int main() {
	int S = 0, T = 0, a;
	for (int i = 0; i < 4; i++)
	{
		scanf_s("%d", &a); 
		S += a;
	}
	for (int i = 0; i < 4; i++)
	{
		scanf_s("%d", &a);
		T += a;
	}
	printf_s("%d", max(S, T));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   11 |                 scanf_s("%d", &a);
      |                 ^~~~~~~
      |                 scanf
a.cc:16:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   16 |                 scanf_s("%d", &a);
      |                 ^~~~~~~
      |                 scanf
a.cc:19:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   19 |         printf_s("%d", max(S, T));
      |         ^~~~~~~~
      |         printf
Language: C++

#include <stdio.h>
#include <algorithm>
#include<iomanip>

using namespace std;

int main() {
	int S = 0, T = 0, a;
	for (int i = 0; i < 4; i++)
	{
		scanf_s("%d", &a); 
		S += a;
	}
	for (int i = 0; i < 4; i++)
	{
		scanf_s("%d", &a);
		T += a;
	}
	printf_s("%d\n", max(S, T));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   11 |                 scanf_s("%d", &a);
      |                 ^~~~~~~
      |                 scanf
a.cc:16:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   16 |                 scanf_s("%d", &a);
      |                 ^~~~~~~
      |                 scanf
a.cc:19:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   19 |         printf_s("%d\n", max(S, T));
      |         ^~~~~~~~
      |         printf
Language: C++


#include<iostream>
#include<vector>
#include <map>
#include <utility>
#include <algorithm>
#include <functional>
#include<string>

using namespace std;

int main() {
	int a, s, d, f, g, h, , j, k;
	cin >> a, s, d, f, g, h, j, k;
	if (a + s + d + f > g + h + j + k) {
		cout << a + s + d + f << endl;
	}
	else {
		cout << g + h + j + k << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: expected unqualified-id before ',' token
   13 |         int a, s, d, f, g, h, , j, k;
      |                               ^
Language: C++

#include <iostream>
#include <algorithm>
#define for(int i=0;i<n;i++) loop(i,n)
using namespace std;

int main(){
  int a=0, b=0, temp;
  loop(i,4){
    cin>>temp;
    a+=temp;
  }
  loop(i,4){
    cin>>temp;
    b+=temp;
  }
  cout<<max(a,b)<<endl;
  return 0;
}

Compiler output:
a.cc:3:17: error: expected ',' or ')', found "i"
    3 | #define for(int i=0;i<n;i++) loop(i,n)
      |                 ^
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   loop(i,4){
      |        ^
a.cc:8:3: error: 'loop' was not declared in this scope
    8 |   loop(i,4){
      |   ^~~~
Language: C++

#include <iostream>
#define MAX ((a)>(b)?(a):(b))
using namespace std;

int main(void){
	int a,b,c,d,e,f,g,h;
	cin>>a>>b>>c>>d>>e>>f>>g>>h;
	cout<<MAX(a+b+c+d,e+f+g+h)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expression cannot be used as a function
    8 |         cout<<MAX(a+b+c+d,e+f+g+h)<<endl;
      |                  ^
Language: C++

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

int main()
{
	int sum=0, summ=0;
	for (int i = 0; i < 4; i++)
	{
		int s; cin >> s; sum += s;
	}
	for (size_t i = 0; i < 4; i++)
	{
		int s; cin >> s; summ += s;
	}
	if (sum >= summ) { cout << sum<<endl; }
	else { cout << summ<<endl; }
}

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

include<iostream>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int gotiusa=a+b+c+d;
  cin>>a>>b>>c>>d;
  int ujimatu=a+b+c+d;
  cout<<(gotiusa>ujimatu ?gotiusa:ujimatu )<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b>>c>>d;
      |   ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<(gotiusa>ujimatu ?gotiusa:ujimatu )<<endl;
      |   ^~~~
a.cc:9:46: error: 'endl' was not declared in this scope
    9 |   cout<<(gotiusa>ujimatu ?gotiusa:ujimatu )<<endl;
      |                                              ^~~~
Language: C++


#include <stdio.h>
#include <string.h>
#include <functional>
#include <algorithm>
#include <string>
#include <vector>
#include <algorithm>
#include <time.h>

using namespace std;

int main (void)
{
	int a[3],b[3],A,B;

	for (int i = 0; i < 4; i++)
	{
		cin >> a[i];
		A += a[i];
	}

	for (int i = 0; i < 4; i++)
	{
		cin >> b[i];
		B += b[i];
	}

	if (A <= B)
	{
		cout << B << endl;
	}
	else if (A > B)
	{
		cout << A << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'cin' was not declared in this scope
   19 |                 cin >> a[i];
      |                 ^~~
a.cc:10:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    9 | #include <time.h>
  +++ |+#include <iostream>
   10 | 
a.cc:25:17: error: 'cin' was not declared in this scope
   25 |                 cin >> b[i];
      |                 ^~~
a.cc:25:17: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:17: error: 'cout' was not declared in this scope
   31 |                 cout << B << endl;
      |                 ^~~~
a.cc:31:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:30: error: 'endl' was not declared in this scope
   31 |                 cout << B << endl;
      |                              ^~~~
a.cc:10:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    9 | #include <time.h>
  +++ |+#include <ostream>
   10 | 
a.cc:35:17: error: 'cout' was not declared in this scope
   35 |                 cout << A << endl;
      |                 ^~~~
a.cc:35:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:30: error: 'endl' was not declared in this scope
   35 |                 cout << A << endl;
      |                              ^~~~
a.cc:35:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
	int i,j,n,s=0,t=0;
	for(i=1;i<=4;i++)
	{
		cin>>n;
		s+=n;
	}
	for(i=1;i<=4;i++)
	{
		cin>>n;
		t+=n;
	}
	if(s>=t)cout<<s;
	else cout<<t;
}vvvvvvvvvvvvvvv

Compiler output:
a.cc:19:2: error: 'vvvvvvvvvvvvvvv' does not name a type
   19 | }vvvvvvvvvvvvvvv
      |  ^~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namaspace std;
int main(void)
{
	int a,b=0;
	for (int c=0;c<4;c++){
		cin>>a;
		b=b+a;
	}
	c=0;
	for (int d=0;d<4;d++){
		cin>>a;
		c=c+a;
	}
	if (a>b) cout<<a<<endl;
	else cout<<b<<endl;
	return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaspace'
    2 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |                 cin>>a;
      |                 ^~~
      |                 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:10:9: error: 'c' was not declared in this scope
   10 |         c=0;
      |         ^
a.cc:12:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |                 cin>>a;
      |                 ^~~
      |                 std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         if (a>b) cout<<a<<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:15:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         if (a>b) cout<<a<<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)
      |     ^~~~
a.cc:16:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         else cout<<b<<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:16:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |         else cout<<b<<endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namaspace std;
int main(void)
{
	int a,b=0;
	for (int c=0;c<4;c++){
		cin>>a;
		b=b+a;
	}
	c=0;
	for (int d=0;d<4;d++){
		cin>>a;
		c=c+a;
	}
	if (c>b) cout<<c<<endl;
	else cout<<b<<endl;
	return 0;
}
		

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaspace'
    2 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |                 cin>>a;
      |                 ^~~
      |                 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:10:9: error: 'c' was not declared in this scope
   10 |         c=0;
      |         ^
a.cc:12:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |                 cin>>a;
      |                 ^~~
      |                 std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         if (c>b) cout<<c<<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:15:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         if (c>b) cout<<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)
      |     ^~~~
a.cc:16:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         else cout<<b<<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:16:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |         else cout<<b<<endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'c' was not declared in this scope
   10 |         c=0;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int i, p, sumA=0, sumB=0;
int main () {
    for (i=1; i<=4; i++) {
        cin >> p;
        sumA += p;
    }
    for (i=1; i<=4; i++) {
         cin >> p;
         sumB += p;
    }
    cout < max(sumA,sumB) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     cout < max(sumA,sumB) << endl;
      |            ~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <stdio.h>

int main(void){

int a,b,c,d;
int e,f,g,h;

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

scanf("%d %d %d %d",&e,&f,&g,&h);

if((a+b+c+d)>(e+f+g+h)){
printf("%d\n",a+b+c+d);
}else if((a+b+c+d)<(e+f+g+h)){
printf("%d\n",e+f+g+h);
}else if((a+b+c+d)==(e+f+g+h)){
printf("%d\n",a+b+c+d);
return 0;
}


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

#include<iostream>
#using namespase std;

int main(
	int a, b, c, d, e, f, g, h, s, t;
cin >> a >> b >> c >> d >> e >> f >> g >> h;

s = a + b + c + d;
t = e + f + g + h;

if (s > t) {
	cout << s << endl;
}
else {
	cout << t << endl;
}

	return 0;
)


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespase std;
      |  ^~~~~
a.cc:5:16: error: 'b' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                ^
a.cc:5:19: error: 'c' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                   ^
a.cc:5:22: error: 'd' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                      ^
a.cc:5:25: error: 'e' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                         ^
a.cc:5:28: error: 'f' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                            ^
a.cc:5:31: error: 'g' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                               ^
a.cc:5:34: error: 'h' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                  ^
a.cc:5:37: error: 's' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                     ^
a.cc:5:40: error: 't' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                        ^
a.cc:5:41: error: expected ')' before ';' token
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                         ^
      |                                         )
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:4:5: warning: second argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should be 'char **' [-Wmain]
    4 | int main(
      |     ^~~~
a.cc:4:5: warning: third argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should probably be 'char **' [-Wmain]
a.cc:4:5: warning: 'int main(int, int, int, int, int, int, int, int, int, int)' takes only zero or two arguments [-Wmain]
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a >> b >> c >> d >> e >> f >> g >> h;
      | ^~~
a.cc:8:1: error: 's' does not name a type
    8 | s = a + b + c + d;
      | ^
a.cc:9:1: error: 't' does not name a type; did you mean 'tm'?
    9 | t = e + f + g + h;
      | ^
      | tm
a.cc:11:1: error: expected unqualified-id before 'if'
   11 | if (s > t) {
      | ^~
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else {
      | ^~~~
a.cc:18:9: error: expected unqualified-id before 'return'
   18 |         return 0;
      |         ^~~~~~
a.cc:19:1: error: expected unqualified-id before ')' token
   19 | )
      | ^
Language: C++

#include<iostream>
#using namespase std;

int main(
	int a, b, c, d, e, f, g, h, s, t;
cin >> a >> b >> c >> d;
cin >> e >> f >> g >> h;

s = a + b + c + d;
t = e + f + g + h;

if (s > t) {
	cout << s << endl;
}
else {
	cout << t << endl;
}

	return 0;
)


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespase std;
      |  ^~~~~
a.cc:5:16: error: 'b' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                ^
a.cc:5:19: error: 'c' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                   ^
a.cc:5:22: error: 'd' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                      ^
a.cc:5:25: error: 'e' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                         ^
a.cc:5:28: error: 'f' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                            ^
a.cc:5:31: error: 'g' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                               ^
a.cc:5:34: error: 'h' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                  ^
a.cc:5:37: error: 's' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                     ^
a.cc:5:40: error: 't' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                        ^
a.cc:5:41: error: expected ')' before ';' token
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                         ^
      |                                         )
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:4:5: warning: second argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should be 'char **' [-Wmain]
    4 | int main(
      |     ^~~~
a.cc:4:5: warning: third argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should probably be 'char **' [-Wmain]
a.cc:4:5: warning: 'int main(int, int, int, int, int, int, int, int, int, int)' takes only zero or two arguments [-Wmain]
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a >> b >> c >> d;
      | ^~~
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> e >> f >> g >> h;
      | ^~~
a.cc:9:1: error: 's' does not name a type
    9 | s = a + b + c + d;
      | ^
a.cc:10:1: error: 't' does not name a type; did you mean 'tm'?
   10 | t = e + f + g + h;
      | ^
      | tm
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if (s > t) {
      | ^~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else {
      | ^~~~
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected unqualified-id before ')' token
   20 | )
      | ^
Language: C++

#include<iostream>
using namespase std;

int main(
	int a, b, c, d, e, f, g, h, s, t;
cin >> a >> b >> c >> d;
cin >> e >> f >> g >> h;

s = a + b + c + d;
t = e + f + g + h;

if (s > t) {
	cout << s << endl;
}
else {
	cout << t << endl;
}

	return 0;
)


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc:5:16: error: 'b' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                ^
a.cc:5:19: error: 'c' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                   ^
a.cc:5:22: error: 'd' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                      ^
a.cc:5:25: error: 'e' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                         ^
a.cc:5:28: error: 'f' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                            ^
a.cc:5:31: error: 'g' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                               ^
a.cc:5:34: error: 'h' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                  ^
a.cc:5:37: error: 's' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                     ^
a.cc:5:40: error: 't' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                        ^
a.cc:5:41: error: expected ')' before ';' token
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                         ^
      |                                         )
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:4:5: warning: second argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should be 'char **' [-Wmain]
    4 | int main(
      |     ^~~~
a.cc:4:5: warning: third argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should probably be 'char **' [-Wmain]
a.cc:4:5: warning: 'int main(int, int, int, int, int, int, int, int, int, int)' takes only zero or two arguments [-Wmain]
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a >> b >> c >> d;
      | ^~~
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> e >> f >> g >> h;
      | ^~~
a.cc:9:1: error: 's' does not name a type
    9 | s = a + b + c + d;
      | ^
a.cc:10:1: error: 't' does not name a type; did you mean 'tm'?
   10 | t = e + f + g + h;
      | ^
      | tm
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if (s > t) {
      | ^~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else {
      | ^~~~
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected unqualified-id before ')' token
   20 | )
      | ^
Language: C++

#include<iostream>
usingnamespase std;

int main(
	int a, b, c, d, e, f, g, h, s, t;
cin >> a >> b >> c >> d;
cin >> e >> f >> g >> h;

s = a + b + c + d;
t = e + f + g + h;

if (s > t) {
	cout << s << endl;
}
else {
	cout << t << endl;
}

	return 0;
)


Compiler output:
a.cc:2:1: error: 'usingnamespase' does not name a type
    2 | usingnamespase std;
      | ^~~~~~~~~~~~~~
a.cc:5:16: error: 'b' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                ^
a.cc:5:19: error: 'c' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                   ^
a.cc:5:22: error: 'd' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                      ^
a.cc:5:25: error: 'e' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                         ^
a.cc:5:28: error: 'f' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                            ^
a.cc:5:31: error: 'g' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                               ^
a.cc:5:34: error: 'h' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                  ^
a.cc:5:37: error: 's' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                     ^
a.cc:5:40: error: 't' has not been declared
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                        ^
a.cc:5:41: error: expected ')' before ';' token
    5 |         int a, b, c, d, e, f, g, h, s, t;
      |                                         ^
      |                                         )
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:4:5: warning: second argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should be 'char **' [-Wmain]
    4 | int main(
      |     ^~~~
a.cc:4:5: warning: third argument of 'int main(int, int, int, int, int, int, int, int, int, int)' should probably be 'char **' [-Wmain]
a.cc:4:5: warning: 'int main(int, int, int, int, int, int, int, int, int, int)' takes only zero or two arguments [-Wmain]
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a >> b >> c >> d;
      | ^~~
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> e >> f >> g >> h;
      | ^~~
a.cc:9:1: error: 's' does not name a type
    9 | s = a + b + c + d;
      | ^
a.cc:10:1: error: 't' does not name a type; did you mean 'tm'?
   10 | t = e + f + g + h;
      | ^
      | tm
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if (s > t) {
      | ^~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else {
      | ^~~~
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected unqualified-id before ')' token
   20 | )
      | ^
Language: C++

#include<iostream>
using namespase std;

int main() {
	int a, b, c, d, e, f, g, h, s, t;
	cin >> a >> b >> c >> d;
	cin >> e >> f >> g >> h;

	s = a + b + c + d;
	t = e + f + g + h;

	if (s > t) {
		cout << s << endl;
	}
	else {
		cout << t << endl;
	}

	return 0;
        }



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a >> b >> c >> d;
      |         ^~~
      |         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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |                 cout << s << 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:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |                 cout << s << 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)
      |     ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |                 cout << t << 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:16:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |                 cout << t << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespase std;

int main() {
	int a, b, c, d, e, f, g, h, s, t;
	cin >> a >> b >> c >> d >> e >> f >> g >> h;

	s = a + b + c + d;
	t = e + f + g + h;

	if (s > t) {
		cout << s << endl;
	}
	else {
		cout << t << endl;
	}

	return 0;
}



Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a >> b >> c >> d >> e >> f >> g >> h;
      |         ^~~
      |         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:12:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 cout << s << 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:12:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |                 cout << s << 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)
      |     ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |                 cout << t << 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:15:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |                 cout << t << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

using namespace std;
int p[7];
int main(){
	for(int i=0;i<8;i++)cin>>p[i],p[i]+=(i>1&&i%4?p[i-1]:0);
	cout<<(p[3]>?p[7])<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:29: error: 'cin' was not declared in this scope
    4 |         for(int i=0;i<8;i++)cin>>p[i],p[i]+=(i>1&&i%4?p[i-1]:0);
      |                             ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout<<(p[3]>?p[7])<<endl;
      |         ^~~~
a.cc:5:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:21: error: expected primary-expression before '?' token
    5 |         cout<<(p[3]>?p[7])<<endl;
      |                     ^
a.cc:5:26: error: expected ':' before ')' token
    5 |         cout<<(p[3]>?p[7])<<endl;
      |                          ^
      |                          :
a.cc:5:26: error: expected primary-expression before ')' token
a.cc:5:29: error: 'endl' was not declared in this scope
    5 |         cout<<(p[3]>?p[7])<<endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<iostream>
int main() {
  int a[4],b[4];
  std::cin>>a[0]>>a[1]>>a[2]>>a[3];
  std::cin>>b[0]>>b[1]>>b[2]>>b[3];
  int i,j;
  if((i=a[0]+a[1]+a[2]+a[3]) >= (j=b[0]+b[1]+b[2]+b[3])) {
    std::cout<<i;
  }else{
    std::cout<<j<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     std::cout<<j<<endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c;main(i)
      | ^
a.cc:1:11: error: expected constructor, destructor, or type conversion before '(' token
    1 | a,b,c;main(i)
      |           ^
Language: C++

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

int main(){
int a[2][4];
for(int i=0;i<2;i++)for(int j=0;j<4;j++)
scanf("%d",&a[i][j]);

for(int i=1;i<4;i++){
a[0][0]+=a[0][i];
a[1][0]+=a[1][i];
}

printf("%d\n",max(a[0][0],a[1][0]));
}

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

#include<iostream>
using std::cout;
using std::cin;

int main(){
	int tmp,S=0,T=0;
	for(int i9; i<4; i++){
		cin >> tmp;
		S+=tmp;
	}
	for(int i9; i<4; i++){
		cin >> tmp;
		T+=tmp;
	}
	if(S>T)
		cout << S << endl;
	else
		cout << T << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'i' was not declared in this scope; did you mean 'i9'?
    7 |         for(int i9; i<4; i++){
      |                     ^
      |                     i9
a.cc:11:21: error: 'i' was not declared in this scope; did you mean 'i9'?
   11 |         for(int i9; i<4; i++){
      |                     ^
      |                     i9
a.cc:16:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |                 cout << S << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |                 cout << T << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using std::cout;
using std::cin;
using std::endl;

int main(){
	int tmp,S=0,T=0;
	for(int i9; i<4; i++){
		cin >> tmp;
		S+=tmp;
	}
	for(int i9; i<4; i++){
		cin >> tmp;
		T+=tmp;
	}
	if(S>T)
		cout << S << endl;
	else
		cout << T << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'i' was not declared in this scope; did you mean 'i9'?
    8 |         for(int i9; i<4; i++){
      |                     ^
      |                     i9
a.cc:12:21: error: 'i' was not declared in this scope; did you mean 'i9'?
   12 |         for(int i9; i<4; i++){
      |                     ^
      |                     i9
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>

using namespace std;

int main() {
	int a, b, c, d;
	int max = 0;
	for (int i = 0; i < 2; ++i) {
		cin >> a >> b >> c >> d;
		int sum = a + b + c + d;
		if (sum > max) sum = max;
	}
	cout << sum << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'sum' was not declared in this scope
   15 |         cout << sum << endl;
      |                 ^~~
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:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a1' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |          ^~
a.cc:5:16: error: 'a2' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                ^~
a.cc:5:22: error: 'a3' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                      ^~
a.cc:5:28: error: 'a4' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                            ^~
a.cc:5:34: error: 'b1' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                                  ^~
a.cc:5:40: error: 'b2' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                                        ^~
a.cc:5:46: error: 'b3' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                                              ^~
a.cc:5:52: error: 'b4' was not declared in this scope
    5 |   cin >> a1 >> a2 >> a3 >> a4 >> b1 >> b2 >> b3 >> b4;
      |                                                    ^~
a.cc:6:3: error: 'atot' was not declared in this scope; did you mean 'atol'?
    6 |   atot = a1 + a2 + a3 + a4;
      |   ^~~~
      |   atol
a.cc:7:3: error: 'btot' was not declared in this scope
    7 |   btot = b1 + b2 + b3 + b4;
      |   ^~~~
Language: C++

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

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

include<cstdio>
using namespace std;

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:
a.cc:14:1: error: 'include' does not name a type
   14 | include<cstdio>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:22:9: error: 'scanf' was not declared in this scope
   22 |         scanf("%d %d %d %d",&aa,&ab,&ac,&ad);
      |         ^~~~~
a.cc:33:9: error: 'printf' was not declared in this scope
   33 |         printf("%d",abmax);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | ////////////////////////////
Language: C++

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

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

#include<cstdio>
using namespace std;

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:
a.cc: In function 'int main()':
a.cc:27:18: error: expected primary-expression before '>' token
   27 |         if(asum => bsum){
      |                  ^
Language: C++

#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <complex>
#include <ctime>
#include <cstdlib>

using namespace std;

inline int to_int(string s) {int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string to_str(T x) {ostringstream sout; sout << x; return sout.str();}

typedef pair<int, int> P;
typedef long long ll;

const int INF = 1 << 30;
const int dx[] = {0, 1, 0, -1};
const int dy[] = {1, 0, -1, 0};
const int month[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

bool leap(int y)
{
	return ((y%4==0&&y%100!=0)||y%400==0);
}

#define debug(a, b, c) for(int i = 0; i < b; i++){for(int j = 0; j < c; j++){printf("%3d", a[i][j]);}puts("");}puts("-----------------------------------------");

int main()
{
	int a = 0, b = 0, wk;

	while(cin >> wk)
	{
		a += wk;

		for(int i = 0; i < 4; i++)
		{
			cin >> wk;
			a += wk;
		}
		for(int j = 0; j < 4; j++)
		{
			cin >> wk;
			b += wk;
		}
		if(a == b)
			printf("S");
		else
			printf("%d", (a > b)? a: b);
                        wk = 0
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:62:31: error: expected ';' before '}' token
   62 |                         wk = 0
      |                               ^
      |                               ;
   63 |         }
      |         ~
Language: C++

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

int point,a,b;

int main (){
  a=0;
  b=0;
  for(int i=0;i<4;i++){
  scanf("%d"&point);
  a = a + point;
  }

  for(int i=0;i<4;i++){
    scanf("%d"&point);  
    b = b + point;
  }

  if(a>b){
    printf("%d",a)
  }
  else{
    printf("%d",b)
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
   13 |   scanf("%d"&point);
      |         ~~~~^~~~~~
      |         |    |
      |         |    int
      |         const char [3]
a.cc:18:15: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
   18 |     scanf("%d"&point);
      |           ~~~~^~~~~~
      |           |    |
      |           |    int
      |           const char [3]
a.cc:23:19: error: expected ';' before '}' token
   23 |     printf("%d",a)
      |                   ^
      |                   ;
   24 |   }
      |   ~                
a.cc:26:19: error: expected ';' before '}' token
   26 |     printf("%d",b)
      |                   ^
      |                   ;
   27 |   }
      |   ~
Language: C++

/*
	AOJ 0510 JOI yo 2005 2006 1 Score
*/

//ミスを防ぐためにまずは基本のIncludeをすべて格納する

#include<fstream>
#include<string>
#include<queue>
#include<algorithm>
#include<set>
#include<map>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<cstdio>
#include<vector>
#define INF (1<<21)
using namespace std;
typedef paair<int,int> P;

//ここまで基本型、多少の変更はあるけどまあいける

int main()
{
	int a[4],b[4];
	int asum,bsum;


	cin >>a[0]>>a[1]>>a[2]>>a[3];
	cin >>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];

	int high=asum;
	if (bsum>asum) high = bsum;
	
	cout<<high<<\n;

	return 0;
}

Compiler output:
a.cc:39:21: error: stray '\' in program
   39 |         cout<<high<<\n;
      |                     ^
a.cc:20:9: error: 'paair' does not name a type
   20 | typedef paair<int,int> P;
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:30:9: error: 'cin' was not declared in this scope
   30 |         cin >>a[0]>>a[1]>>a[2]>>a[3];
      |         ^~~
a.cc:17:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   16 | #include<cstdio>
  +++ |+#include <iostream>
   17 | #include<vector>
a.cc:39:9: error: 'cout' was not declared in this scope
   39 |         cout<<high<<\n;
      |         ^~~~
a.cc:39:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:39:22: error: 'n' was not declared in this scope
   39 |         cout<<high<<\n;
      |                      ^