submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s621275413 | p00433 | C++ | #include<iostream>
using namespace std;
int main {
int S,T,a,b,i;
for(i=0;i<4;i++) {
cin >> a;
S += a;
}
for(i=0;i<4;i++) {
cin >> b;
T += b;
}
S>T ? cout << S : cout << T;
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
5 | int S,T,a,b,i;
| ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.... |
s258123276 | p00433 | C++ | #include<iostream>
using namespace std;
int main {
int S=0,T=0,a,b,i;
for(i=0;i<4;i++) {
cin >> a;
S += a;
}
for(i=0;i<4;i++) {
cin >> b;
T += b;
}
S>T ? cout << S : cout << T;
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
5 | int S=0,T=0,a,b,i;
| ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ... |
s069896081 | p00433 | C++ | #include<iostream>
using namespace std;
int main {
int S=0,T=0,a,b,i;
for(i=0;i<4;i++) {
cin >> a;
S += a;
}
for(i=0;i<4;i++) {
cin >> b;
T += b;
}
S>T ? (cout << S : cout << T);
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
5 | int S=0,T=0,a,b,i;
| ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6... |
s331003487 | p00433 | C++ | #include<iostream>
using namespace std;
int main {
int S=0,T=0,a,b,i;
for(i=0;i<4;i++) {
cin >> a;
S += a;
}
for(i=0;i<4;i++) {
cin >> b;
T += b;
}
cout << S>T?S:T;
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
5 | int S=0,T=0,a,b,i;
| ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6... |
s500676178 | p00433 | C++ | #include <iostream>
using namespace std;
int main {
int S=0,T=0,a,b,i;
for(i=0;i<4;i++) {
cin >> a;
S += a;
}
for(i=0;i<4;i++) {
cin >> b;
T += b;
}
cout << S>T?S:T;
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
5 | int S=0,T=0,a,b,i;
| ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ^
a.cc:6... |
s347491267 | p00433 | C++ | #include <iostream>
using namespace std;
int main {
int S=0,T=0,a,b,i;
for(i=0;i<4;i++) {
cin >> a;
S += a;
}
for(i=0;i<4;i++) {
cin >> b;
T += b;
}
cout << S>T?S:T;
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
5 | int S=0,T=0,a,b,i;
| ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ... |
s645624417 | p00433 | C++ | #include <iostream>
using namespace std;
int main {
int S=0, T=0, a, b, i;
for(i=0; i<4; i++) {
cin >> a;
S += a;
}
for(i=0; i<4; i++) {
cin >> b;
T += b;
}
cout << S > T ? S : T;
} | a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main {
| ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
5 | int S=0, T=0, a, b, i;
| ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
4 | int main {
| ... |
s514820853 | p00433 | C++ | #include <iostream>
using namespace std;
int main () {
int S=0, T=0, a, b, i;
for(i=0; i<4; i++) {
cin >> a;
S += a;
}
for(i=0; i<4; i++) {
cin >> b;
T += b;
}
cout << S > T ? S : T;
} | a.cc: In function 'int main()':
a.cc:14:16: error: no match for 'operator>' (operand types are 'std::basic_ostream<char>' and 'int')
14 | cout << S > T ? S : T;
| ~~~~~~~~~ ^ ~
| | |
| | int
| std::basic_ostream<char>
a.cc:14:16: note: candida... |
s374636926 | p00433 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<iomanip>
using namespace std;
#define pi 3.141592653589793283462
int main(){
int Aa,Ab,Ac,Ab;
int ba,bb,bc,bd;
int p,q;
cin>> Aa>>Ab>>Ac>>Ab;
cin>> ba>>bb>>bc>>bd;
p=Aa+Ab+Ac+Ab;
q=ba+bb+bc+bd;
if(p<q)
cout<<q<<endl;
else if(p>q)
cout<<p<<... | a.cc: In function 'int main()':
a.cc:8:22: error: redeclaration of 'int Ab'
8 | int Aa,Ab,Ac,Ab;
| ^~
a.cc:8:16: note: 'int Ab' previously declared here
8 | int Aa,Ab,Ac,Ab;
| ^~
|
s763937622 | p00433 | C++ | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <windows.h>
#include <iostream>
#include <algorithm>
#include <set>
#include <queue>
#include <functional>
using namespace std;
typedef unsigned int uint;
typedef long long int llint;
typedef pair<llint,llint> pii;... | a.cc:6:10: fatal error: windows.h: No such file or directory
6 | #include <windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s841523139 | p00433 | C++ | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
//#include <windows.h>
#include <iostream>
#include <algorithm>
#include <set>
#include <queue>
#include <functional>
using namespace std;
typedef unsigned int uint;
typedef long long int llint;
typedef pair<llint,llint> pi... | a.cc: In member function 'void zpress::syori2(int)':
a.cc:201:29: error: 'LLONG_MIN' was not declared in this scope
201 | llint mae = LLONG_MIN;
| ^~~~~~~~~
a.cc:12:1: note: 'LLONG_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <cl... |
s880856682 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int sum1 = 0, sum2 = 0;
int n;
for(int i = 0; i< 4; i++){
cin >> n;
sum1 += n;
}
for(int i = 0; i< 4; i++){
cin >> n;
sum2 += n;
}
if(sum1 > sum2) coout << sum1;
else cout << sum2;
return 0;
}
| a.cc: In function 'int main()':
a.cc:17:19: error: 'coout' was not declared in this scope
17 | if(sum1 > sum2) coout << sum1;
| ^~~~~
|
s218926649 | p00433 | C++ | import java.util.Scanner;
public class Main {
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++){
... | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s370642051 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int a;int b;
int i = 1;
int s;int d;int j;int k;
cin >> s >> d >> j >> k;
a = s+d+j+k;
int w;int ww;int www;int wwww;
cin >>w >> ww >> www >> wwww;
b = w + ww + www + wwww;
if(a >= b){
cout >> a >>endl;
}
else{
cout >> b >> endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:14:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
14 | cout >> a >>endl;
| ~~~~ ^~ ~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
a.cc:14:6: note: candidate: 'ope... |
s021853755 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int a;int b;
int i = 1;
int s;int d;int j;int k;
cin >> s >> d >> j >> k;
a = s+d+j+k;
int w;int ww;int www;int wwww;
cin >>w >> ww >> www >> wwww;
b = w + ww + www + wwww;
if(a >= b){
cout >> a >>endl;
}
else{
cout >> b >> endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:14:6: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
14 | cout >> a >>endl;
| ~~~~ ^~ ~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
a.cc:14:6: note: candidate: 'ope... |
s027566085 | p00433 | C++ | #include <iostream.h>
using namespace std;
int main (){
int A,B,ma,i,s,e;
cin>>ma>>i>>s>>e;
A=ma+i+s+e;
cin>>ma>>i>>s>>e;
B=ma+i+s+e;
if(A>B){
return A;
}
else if(A<B){
return B;
}
else {return A;
}
return m;
}
int main(){
int n;
cin >> n;
cout << solve(n) << endl;
return 0;
} | a.cc:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s295093939 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int W,X,Y,Z,w,x,y,z;
cin W,X,Y,Z,w,x,y,z;
if( (W + X + Y + Z) > (w + x + y + z)){
cout << W + X + Y + Z << endl;
}
else if( W + X + Y + Z) < (w + x + y + z)){
cout << w + x + y + z << endl;
}
else{
cout << w + x + y + z << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'W'
6 | cin W,X,Y,Z,w,x,y,z;
| ^~
| ;
a.cc:11:25: error: expected primary-expression before '<' token
11 | else if( W + X + Y + Z) < (w + x + y + z)){
| ^
|
s058506666 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int W,X,Y,Z,w,x,y,z;
cin >> W >>X >> Y >> Z >> w >> x >>y >> z;
if( (W + X + Y + Z) > (w + x + y + z)){
cout << W + X + Y + Z << endl;
}
else if( W + X + Y + Z) < (w + x + y + z)){
cout << w + x + y + z << endl;
}
else{
cout << w + x + y + z << endl;
}
... | a.cc: In function 'int main()':
a.cc:11:25: error: expected primary-expression before '<' token
11 | else if( W + X + Y + Z) < (w + x + y + z)){
| ^
|
s247253409 | p00433 | C++ | 111 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 111
| ^~~
|
s210583190 | p00433 | C++ | import java.util.*;
class Score {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int res = 0;
for(int i = 0; i < 2; i++) {
int sum = 0;
for(int j = 0; j < 4; j++) {
int tmp;
tmp = sc.nextInt();
sum = sum + tmp;
}
if(res < sum)
res = sum;
}
System.ou... | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
4 | public static void main(String args[]) {
| ^~~~~~~
| :
a.cc:4... |
s459295294 | p00433 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <list>
#include <map>
#include <string>
#include <functional>
#include <math.h>
#include <utility>
using namespace System;
using namespace std;
int main()
{
int a=0,b=0,t;
for(int i=0;i<4;i++){cin>>t;a+=t;}
for(int i=0;i<4;i++){cin>>t;b+=t;}
cout<<... | a.cc:10:17: error: 'System' is not a namespace-name
10 | using namespace System;
| ^~~~~~
|
s070932493 | p00433 | C++ | int main()
{
int i,a[4],b[4],a_total=0,b_total=0,put;
for(i=0;i<4;i++)
{
scanf("%d",&a[i]);
a_total+=a[i];
}
for(i=0;i<4;i++)
{
scanf("%d",&b[i]);
b_total+=b[i];
}
put=a_total<b_total?b_total:a_total;
printf("%d\n",put);
//Sleep(1000);
} | a.cc: In function 'int main()':
a.cc:6:17: error: 'scanf' was not declared in this scope
6 | scanf("%d",&a[i]);
| ^~~~~
a.cc:11:17: error: 'scanf' was not declared in this scope
11 | scanf("%d",&b[i]);
| ^~~~~
a.cc:15:9: error: 'printf' ... |
s897719383 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int aa,ab,ac,ad,ba,bb,bc,bd,sum_a,sum_b;
cin>>aa>ab>>ac>>ad;
cin>>ba>>bb>bc>>bd;
sum_a=aa+ab+ac+ad;
sum_b=ba+bb+bc+bd;
if(sum_a>=sum_b){
cout<<sum_a<<endl;
}else{
cout<<sum_b<<endl
}
} | a.cc: In function 'int main()':
a.cc:5:8: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
5 | cin>>aa>ab>>ac>>ad;
| ~~~~~~~^~~~~~~~~~~
| | |
| | int
| std::basic_istream<char>... |
s047362386 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int aa,ab,ac,ad,ba,bb,bc,bd,sum_a,sum_b;
cin>>aa>ab>>ac>>ad;
cin>>ba>>bb>bc>>bd;
sum_a=aa+ab+ac+ad;
sum_b=ba+bb+bc+bd;
if(sum_a>=sum_b){
cout<<sum_a<<endl;
}else{
cout<<sum_b<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:8: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
5 | cin>>aa>ab>>ac>>ad;
| ~~~~~~~^~~~~~~~~~~
| | |
| | int
| std::basic_istream<char>... |
s198912643 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int aa,ab,ac,ad,ba,bb,bc,bd,sum_a,sum_b;
cin>>aa>ab>>ac>>ad;
cin>>ba>>bb>bc>>bd;
sum_a=aa+ab+ac+ad;
sum_b=ba+bb+bc+bd;
if(sum_a>=sum_b){
cout<<sum_a<<endl;
}else{
cout<<sum_b<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:8: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
5 | cin>>aa>ab>>ac>>ad;
| ~~~~~~~^~~~~~~~~~~
| | |
| | int
| std::basic_istream<char>... |
s882956230 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int aa,ab,ac,ad,ba,bb,bc,bd,sum_a,sum_b;
cin>>aa>ab>>ac>>ad>>endl;
cin>>ba>>bb>bc>>bd>>endl;
sum_a=aa+ab+ac+ad;
sum_b=ba+bb+bc+bd;
if(sum_a>=sum_b){
cout<<sum_a<<endl;
}else{
cout<<sum_b<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
6 | cin>>aa>ab>>ac>>ad>>endl;
| ~~~~~~~~~~^~~~~~
a.cc:7:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary ... |
s386720840 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int aa,ab,ac,ad,ba,bb,bc,bd,sum_a,sum_b;
cin>>aa>ab>>ac>>ad;
cin>>ba>>bb>bc>>bd;
sum_a=aa+ab+ac+ad;
sum_b=ba+bb+bc+bd;
if(sum_a>=sum_b){
cout<<sum_a<<endl;
}else{
cout<<sum_b<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:8: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | cin>>aa>ab>>ac>>ad;
| ~~~~~~~^~~~~~~~~~~
| | |
| | int
| std::basic_istream<char>... |
s624037034 | p00433 | C++ | // Example program
#include <iostream>
#include <string>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int s=(a+b+c+d);
int t=(e+f+g+h);
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> f;
cin >> g;
cin >> h;
if(s>t){
cout... | a.cc: In function 'int main()':
a.cc:11:8: error: 'a' was not declared in this scope
11 | int s=(a+b+c+d);
| ^
a.cc:11:10: error: 'b' was not declared in this scope
11 | int s=(a+b+c+d);
| ^
a.cc:11:12: error: 'c' was not declared in this scope
11 | int s=(a+b+c+d);
| ... |
s660123972 | p00433 | C++ | // Example program
#include <iostream>
#include <vector>
#include<algorithm>
using namespace std;
int main()
{
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> f;
cin >> g;
cin >> h;
int s;
int t;
s=a+b+c+d;
t=e+f+g+h;
if(s<t){cou... | a.cc: In function 'int main()':
a.cc:30:27: error: expected ';' before '}' token
30 | if(s<t){cout << t << endl};
| ^
| ;
a.cc:31:27: error: expected ';' before '}' token
31 | if(t<s){cout << s << endl};
| ^
| ... |
s850542109 | p00433 | C++ | // Example program
#include <iostream>
#include <vector>
#include<algorithm>
using namespace std;
int main()
{
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> f;
cin >> g;
cin >> h;
int s;
int t;
s=a+b+c+d;
t=e+f+g+h;
if(s<t){cou... | a.cc: In function 'int main()':
a.cc:30:27: error: expected ';' before '}' token
30 | if(s<t){cout << t << endl};
| ^
| ;
a.cc:31:27: error: expected ';' before '}' token
31 | if(t<s){cout << s << endl};
| ^
| ... |
s116168561 | p00433 | C++ | // Example program
#include <iostream>
#include <vector>
#include<algorithm>
using namespace std;
int main()
{
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> f;
cin >> g;
cin >> h;
int s;
int t;
s=a+b+c+d;
t=e+f+g+h;
if(s<t){cou... | a.cc: In function 'int main()':
a.cc:30:27: error: expected ';' before '}' token
30 | if(s<t){cout << t << endl};
| ^
| ;
a.cc:31:27: error: expected ';' before '}' token
31 | if(t<s){cout << s << endl};
| ^
| ... |
s015305261 | p00433 | C++ | // Example program
#include <iostream>
#include <vector>
#include<algorithm>
using namespace std;
int main()
{
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> f;
cin >> g;
cin >> h;
int s;
int t;
s=(a+b+c+d);
t=(e+f+g+h);
if(s<t)... | a.cc: In function 'int main()':
a.cc:30:29: error: expected ';' before '}' token
30 | if(s<t){cout << "t" << endl};
| ^
| ;
a.cc:31:29: error: expected ';' before '}' token
31 | if(t<s){cout << "s" << endl};
| ... |
s826783038 | p00433 | 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] + ... | 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]){
| ^
| ... |
s225399752 | p00433 | 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;
el... | 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 | ... |
s856572670 | p00433 | 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));
} | a.cc: In function 'int main()':
a.cc:7:13: error: 'max' was not declared in this scope
7 | printf("&d",max(a,b));
| ^~~
|
s754370462 | p00433 | 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));
} | 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));
| ^~~
|
s523788123 | p00433 | 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];
}
} | a.cc:6:1: error: expected initializer before 'int'
6 | int main()
| ^~~
|
s986273202 | p00433 | 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];
}
} | a.cc:6:1: error: expected initializer before 'int'
6 | int main()
| ^~~
|
s526966135 | p00433 | 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;
} | 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 | ... |
s889232968 | p00433 | 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;
} | 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 | ... |
s091192268 | p00433 | 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 <... | 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;
| ^
|
s050908620 | p00433 | 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;
} | 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){
... |
s384704923 | p00433 | 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;
} | 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;
| ^
|
s619405170 | p00433 | 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; }
} | a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s304150897 | p00433 | C++ | #include<iostream>
using namespace std;
int main(){
int a[8];
for(int i=0;i<8;i++){
cin >> a[1][i];
}
for(int i=0;i=0;i++){
cin >> a[2][i];
}
if((a[0][0]+a[0][1]+a[0][2]+a[0][3]) > (a[1][0]+a[1][1]+a[1][2]+a[1][3])){
cout << a[0][0]+a[0][1]+a[0][2]+a[0][3] << endl;
}
else{
cout << a[1]... | a.cc: In function 'int main()':
a.cc:8:16: error: invalid types 'int[int]' for array subscript
8 | cin >> a[1][i];
| ^
a.cc:11:16: error: invalid types 'int[int]' for array subscript
11 | cin >> a[2][i];
| ^
a.cc:13:11: error: invalid types 'int[int]' for array s... |
s877715787 | p00433 | 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;
} | 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:ujimat... |
s117841014 | p00433 | C++ | #include<iostream>
using namespace std;
int main()
{
int i,j,s,t,a[4],b[4];
for(j=0;j<2;j++)
{
for(i=0;i<4;i++)
{
if(j==0)
{
cin>>a[i];
s=a[i]+s;
}
else
{
cin>>b[i];
t=b[i]+t;
}
}
}
if(t<s)
{
cout>>s>>endl;
}
else
{
cout>>t>>endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:24:14: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
24 | cout>>s>>endl;
| ~~~~^~~
| | |
| | int
| std::ostream {aka std::basic_ostream<ch... |
s531319305 | p00433 | 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++)
{
ci... | 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 <ios... |
s743532269 | p00433 | 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 | a.cc:19:2: error: 'vvvvvvvvvvvvvvv' does not name a type
19 | }vvvvvvvvvvvvvvv
| ^~~~~~~~~~~~~~~
|
s018890086 | p00433 | C++ | include <iostream>
#include <numeric>
int main() {
int a[4],b[4];
for(int i=0;i<4;i++) scanf("%d",&a[i]);
for(int i=0;i<4;i++) scanf("%d",&b[i]);
int as=std::accumulate(a,a+4, 0), bs=std::accumulate(b,b+4, 0);
as < bs ? std::cout << as : std::cout << bs;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/stl_iterator_base_types.h:67,
from /usr/include/c++/14/numeric:61,
from a.cc:2:
/usr/include/c++/14/type_traits:295:27: error: 'size_t' has not been... |
s891487165 | p00433 | C++ | include <iostream>
#include <numeric>
int main() {
int a[4],b[4];
for(int i=0;i<4;i++) scanf("%d",&a[i]);
for(int i=0;i<4;i++) scanf("%d",&b[i]);
int as=std::accumulate(a,a+4, 0), bs=std::accumulate(b,b+4, 0);
as < bs ? std::cout << as : std::cout << bs;
return 0;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <iostream>
| ^~~~~~~
In file included from /usr/include/c++/14/bits/stl_iterator_base_types.h:67,
from /usr/include/c++/14/numeric:61,
from a.cc:2:
/usr/include/c++/14/type_traits:295:27: error: 'size_t' has not been... |
s856825530 | p00433 | 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;
} | 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... |
s412445106 | p00433 | 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;
}
| 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... |
s467788909 | p00433 | 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;
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'c' was not declared in this scope
10 | c=0;
| ^
|
s971172926 | p00433 | 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;
} | 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;
| ~~~~~~~~~~~~~~~^~~~~~~
|
s771259362 | p00433 | 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;
}
| 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){
| ^
|
s834836115 | p00433 | 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;
)
| 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;
... |
s432714087 | p00433 | 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;
)
| 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;
... |
s156123114 | p00433 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s685794752 | p00433 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s852280453 | p00433 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s314453270 | p00433 | 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;
)
| 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,... |
s002725030 | p00433 | 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;
)
| 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;
... |
s103858859 | p00433 | 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;
}
| 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... |
s028554919 | p00433 | 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;
}
| 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;
| ^~~
|... |
s565286905 | p00433 | 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;
} | 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>'
... |
s356939778 | p00433 | 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;
}
} | 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/... |
s606062565 | p00433 | 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);
} | 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)
| ^
|
s658075484 | p00433 | 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]));
} | a.cc:1:9: fatal error: iostram: No such file or directory
1 | #include<iostram>
| ^~~~~~~~~
compilation terminated.
|
s153164393 | p00433 | 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;
} | 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++){
... |
s127591513 | p00433 | 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;
} | 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++){
... |
s608867424 | p00433 | 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;
} | a.cc: In function 'int main()':
a.cc:15:17: error: 'sum' was not declared in this scope
15 | cout << sum << endl;
| ^~~
|
s306869970 | p00433 | 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;
} | 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:2... |
s506851542 | p00433 | 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,... | 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 | ... |
s816029065 | p00433 | 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... | a.cc: In function 'int main()':
a.cc:27:18: error: expected primary-expression before '>' token
27 | if(asum => bsum){
| ^
|
s309959655 | p00433 | 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 <cst... | a.cc: In function 'int main()':
a.cc:62:31: error: expected ';' before '}' token
62 | wk = 0
| ^
| ;
63 | }
| ~
|
s464300553 | p00433 | 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 <cst... | a.cc: In function 'int main()':
a.cc:62:31: error: expected ';' before '}' token
62 | wk = 0
| ^
| ;
63 | }
| ~
|
s536684621 | p00433 | 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{... | 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... |
s633444474 | p00433 | 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,i... | 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]>>... |
s541679047 | p00433 | 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,i... | a.cc:39:20: error: stray '\' in program
39 | cin<<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: 'cout' was not declared in this scope
30 | cout >>a[0]>>... |
s969249132 | p00433 | 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,i... | a.cc:39:20: error: stray '\' in program
39 | cin<<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: 'cout' was not declared in this scope
30 | cout >>a[0]>>... |
s809934225 | p00433 | 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,i... | a.cc:41:20: error: stray '\' in program
41 | cin<<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: 'cout' was not declared in this scope
30 | cout >>a[0]>>... |
s999495432 | p00433 | 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,i... | a.cc:41:21: error: stray '\' in program
41 | 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]>>... |
s464122685 | p00433 | 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,i... | a.cc:41:21: error: stray '\' in program
41 | 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]>>... |
s843321381 | p00433 | C++ | /*
AOJ 0510 JOI yo 2005 2006 1 Score
*/
//ミスを防ぐためにまずは基本のIncludeをすべて格納する
#include<fstream>
#include<iostream>
#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;
... | a.cc:42:21: error: stray '\' in program
42 | cout<<high<<\n;
| ^
a.cc:21:9: error: 'paair' does not name a type
21 | typedef paair<int,int> P;
| ^~~~~
a.cc: In function 'int main()':
a.cc:42:22: error: 'n' was not declared in this scope
42 | cout<<high<<\... |
s720306800 | p00433 | C++ | /*
AOJ 0510 JOI yo 2005 2006 1 Score
*/
//ミスを防ぐためにまずは基本のIncludeをすべて格納する
#include<fstream>
#include<iostream>
#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;
... | a.cc:42:21: error: stray '\' in program
42 | cout<<high<<\n;
| ^
a.cc: In function 'int main()':
a.cc:42:22: error: 'n' was not declared in this scope
42 | cout<<high<<\n;
| ^
|
s873910430 | p00433 | C++ | #include <cstdio>
int main()
{
int s = 0, t = 0, temp;
for(int i = 0; i < 4; ++i) {
scanf("%d", &temp);
s += temp;
}
for(int i = 0; i < 4; ++i) {
scanf("%d", &temp);
t += temp;
printf("%d\n", max(s, t));
return 0;
} | a.cc: In function 'int main()':
a.cc:13:16: error: 'max' was not declared in this scope
13 | printf("%d\n", max(s, t));
| ^~~
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s500430717 | p00433 | C++ | #include <cstdio>
#include <algorithm>
using namespace std;
int main(){int s = 0, t = 0, temp;for(int i = 0; i < 4; ++i) {scanf("%d", &temp);s += temp;}for(int i = 0; i < 4; ++i) {scanf("%d", &temp);t += temp;printf("%d\n", max(s, t));return 0;} | a.cc: In function 'int main()':
a.cc:5:186: error: expected '}' at end of input
5 | int main(){int s = 0, t = 0, temp;for(int i = 0; i < 4; ++i) {scanf("%d", &temp);s += temp;}for(int i = 0; i < 4; ++i) {scanf("%d", &temp);t += temp;printf("%d\n", max(s, t));return 0;}
| ~ ... |
s706517500 | p00433 | C++ | #include<stdio.h>
#include<math.h>
int a,b,c;main(){for(;scanf("%d",&a);b+=a);for(;scanf("%d",&a);c+=a);printf("%d",max(b,c));} | a.cc:3:11: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | int a,b,c;main(){for(;scanf("%d",&a);b+=a);for(;scanf("%d",&a);c+=a);printf("%d",max(b,c));}
| ^~~~
a.cc: In function 'int main()':
a.cc:3:82: error: 'max' was not declared in this scope; did you mean 'std::ma... |
s171237083 | p00433 | C++ | #include <stdio.h>
a,b,c,i;main(){for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d",&a);c+=a);printf("%d\n",b>c?b:c);} | a.cc:2:1: error: 'a' does not name a type
2 | a,b,c,i;main(){for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d",&a);c+=a);printf("%d\n",b>c?b:c);}
| ^
a.cc:2:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | a,b,c,i;main(){for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d"... |
s896769889 | p00433 | C++ | #include <stdio.h>
main(a,b,c,i){for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d",&a);c+=a);printf("%d\n",b>c?b:c);} | a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
2 | main(a,b,c,i){for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d",&a);c+=a);printf("%d\n",b>c?b:c);}
| ^
|
s447045510 | p00433 | C++ | #include <stdio.h>
int a,b,c,i;main();{for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d",&a);c+=a);printf("%d\n",b>c?b:c);} | a.cc:2:19: error: expected constructor, destructor, or type conversion before ';' token
2 | int a,b,c,i;main();{for(;i<4;i++,scanf("%d",&a),b+=a);for(;~scanf("%d",&a);c+=a);printf("%d\n",b>c?b:c);}
| ^
a.cc:2:20: error: expected unqualified-id before '{' token
2 | int a,b,c,i;main();{for... |
s676195999 | p00433 | C++ | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <conio.h>
using namespace std;
int main(){
int tmp1,tmp2;
int a=0,b=0;
for(int i=0; i<4; ++i){
cin >> tmp1;
a += tmp1;
}
for(int i=0; i,4; ++i){
cin >> tmp2;
b += tmp2;
}
if(a >= ... | a.cc:7:10: fatal error: conio.h: No such file or directory
7 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s740269760 | p00433 | C++ | #include <studio.h>
int q,w,e,r,t,y,u,i;
scanf("%d%d%d%d",&q,&w,&e,&r);
scanf("%d%d%d%d",&t,&y,&u,&i);
printf("%d",(q+w+e+r>=t+y+u+i?q+w+e+r:t+y+u+i)); | a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s230397551 | p00433 | C++ | #include <studio.h>
int q,w,e,r,t,y,u,i; | a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s743399071 | p00433 | C++ | #include <studio.h>
int main(){
int q,w,e,r,t,y,u,i;
scanf("%d%d%d%d",&q,&w,&e,&r);
scanf("%d%d%d%d",&t,&y,&u,&i);
printf("%d",(q+w+e+r>=t+y+u+i?q+w+e+r:t+y+u+i));
return 0;
} | a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s247212142 | p00433 | C++ | /*#include <studio.h>
int main(){
int q,w,e,r,t,y,u,i;
scanf("%d%d%d%d",&q,&w,&e,&r);
scanf("%d%d%d%d",&t,&y,&u,&i);
printf("%d",(q+w+e+r>=t+y+u+i?q+w+e+r:t+y+u+i));
return 0;
}*/
#include <studio.h> int main() { printf("Hello!"); return 0; } | a.cc:13:21: warning: extra tokens at end of #include directive
13 | #include <studio.h> int main() { printf("Hello!"); return 0; }
| ^~~
a.cc:13:10: fatal error: studio.h: No such file or directory
13 | #include <studio.h> int main() { printf("Hello!"); return 0; }
| ^~~~~... |
s864746564 | p00433 | C++ | #include <studio.h> int main() { printf("Hello!"); return 0; } | a.cc:1:21: warning: extra tokens at end of #include directive
1 | #include <studio.h> int main() { printf("Hello!"); return 0; }
| ^~~
a.cc:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h> int main() { printf("Hello!"); return 0; }
| ^~~~~~~... |
s309549195 | p00433 | C++ | #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; } #incl... | a.cc:1:21: warning: extra tokens at end of #include directive
1 | #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; } #include <studio.h> int main() { printf("Hello!"); return 0; ... |
s268782409 | p00433 | C++ | int main()
{
int a, b, c, d;
int sum = 0;
std::cin >> a >> b >> c >> d;
sum = a + b + c + d;
std::cin >> a >> b >> c >> d;
if(sum < (a + b + c + d)){
std::cout << (a + b + c + d) << std::endl;
}
else{
std::cout << sum << std::endl;
}
} | a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' is not a member of 'std'
5 | std::cin >> a >> b >> c >> d;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | int main()
a.cc:7:10:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.