submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s707290303 | p03943 | C++ | #include<iostream>
#include<set>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a+b==c) cout << "Yes\n";
else if(a+c==b) cout << "Yes\n";
else if(b+c==a) cout << "Yes\n";
else cout << "No\n"
} | a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
10 | else cout << "No\n"
| ^
| ;
11 | }
| ~
|
s916787442 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for (int i=0;i<(n);i++)
//#define int long long
int main(){
int s[3];
cin >> s[0] >> s[1] >> s[2];
sort(s,s+3);
if(s[0]+s[1]==s[2]){
cout << "Yes" << endl;
}else{
cout << "No" >> endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:22: error: no match for 'operator>>' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
12 | cout << "No" >> endl;
| ~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
... |
s399090621 | p03943 | C | #include <stdio.h>
#include <main.h>
int main()
{
int a, b, c;
bool result;
scanf("%d %d %d", &a, &b, &c);
if(a == b+c)
{
result = true;
}
else if(b == a+c)
{
result = true;
}
else if(c == a+b)
{
result = true;
}
else
{
result = false;
}
return 0;
} | main.c:2:10: fatal error: main.h: No such file or directory
2 | #include <main.h>
| ^~~~~~~~
compilation terminated.
|
s137660020 | p03943 | C | #include <stdio.h>
int main()
{
int a, b, c;
bool result;
scanf("%d %d %d", &a, &b, &c);
if(a == b+c)
{
result = true;
}
else if(b == a+c)
{
result = true;
}
else if(c == a+b)
{
result = true;
}
else
{
result = false;
}
return 0;
} | main.c: In function 'main':
main.c:6:9: error: unknown type name 'bool'
6 | bool result;
| ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
1 | #include <stdio.h>
+++ |+#include <stdbool.h>
2 |
main.c:12:26: ... |
s665404616 | p03943 | C | #include <main.h>
int main()
{
int a, b, c;
bool result;
scanf("%d %d %d", &a, &b, &c);
if(a == b+c)
{
result = true;
}
else if(b == a+c)
{
result = true;
}
else if(c == a+b)
{
result = true;
}
else
{
result = false;
}
return 0;
} | main.c:1:10: fatal error: main.h: No such file or directory
1 | #include <main.h>
| ^~~~~~~~
compilation terminated.
|
s545939767 | p03943 | C | #include<stdio.h>
int main(){
int l=0,r,u,d=0,n=0;
int x,y,a;
scanf("%d%d%d",&r,&u,&n);
for(int i=0;i<n;i++){
scanf("%d%d%d",&x,&y,&a);
switch(a){
case 1:
(x<l)?l=x:;
break;
case 2:
(r<x)?r=x:;
break;
case 3:
(y<d)?d=y:;
break;
case... | main.c: In function 'main':
main.c:10:19: error: expected expression before ';' token
10 | (x<l)?l=x:;
| ^
main.c:13:19: error: expected expression before ';' token
13 | (r<x)?r=x:;
| ^
main.c:16:19: error: expected expression before ';' token
16 ... |
s981649328 | p03943 | C++ | #include <iostream>
using namespace std;
int main(void){
int a,b,c; cin>>a>>b>>c;
cout<<(a+b==c||a==b+c||a+c==b)?"Yes":"No"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:44: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout<<(a+b==c||a==b+c||a+c==b)?"Yes":"No"<<endl;
| ~~~~^~~~~~
|
s363292051 | p03943 | C++ | #include <iostream>
#include <string>
#include <set>
#include <vector>
#include <algorithm>
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a + b == c || b + c == a || c + a == b){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
10 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; /... |
s011428652 | p03943 | C++ | int main(){
int a, b, c;
cin >> a >> b >> c;
if(a + b == c || b + c == a || c + a == b){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
5 | cout << "Yes" << endl;
| ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope
5 | ... |
s762744943 | p03943 | C | #include <stdio.h>
staic int a, b, c;
int main(void) {
scanf("%d%d%d", &a, &b, &c);
if (a + b == c || a == b + c) {
puts("Yes");
} else {
puts("No");
}
return 0;
}
| main.c:3:6: error: expected ';' before 'int'
3 | staic int a, b, c;
| ^~~~
| ;
|
s158216946 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int a,b,c;
int d[]={a,b,c};
cin>>a>>b>>c;
sort(d,d+3);
if(d[1]+d[0]==d[2])
{
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0; | a.cc: In function 'int main()':
a.cc:16:12: error: expected '}' at end of input
16 | return 0;
| ^
a.cc:5:1: note: to match this '{'
5 | {
| ^
|
s828966455 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace iostream;
int main()
{
int a,b,c;
int d[]={a,b,c};
cin>>a>>b>>c;
sort(d,d+3);
if(d[1]+d[0]==d[2])
{
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc:3:17: error: 'iostream' is not a namespace-name
3 | using namespace iostream;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
8 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/... |
s967717727 | p03943 | C++ | #include<iostream>
#include<algorithm>
int main()
{
int a,b,c;
int d[]={a,b,c};
cin>>a>>b>>c;
sort(d,d+3);
if(d[1]+d[0]==d[2])
{
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to... |
s913565705 | p03943 | C++ | #include<iostream>
#include<algorithm>
int main()
{
int a,b,c;
int d[]={a,b,c};
cin>>a>>b>>c;
sort(d,d+2);
if(d[1]+d[0]==d[2])
{
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to... |
s989618280 | p03943 | C++ | #include<iostream>
#include<algorithm>
int main()
{
int a,b,c;
int d[]={a,b,c};
cin>>a>>b>>c;
sort(d,d+2);
if(d[1]+d[0]==d[2])
{
cout<<"Yes"<<end;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to... |
s888881228 | p03943 | C++ | #include<iostream>
#include<algorithm>
int main()
{
int a,b,c;
int d[]={a,b,c};
cin>>a>>b>>c;
sort(d,d+3);
if(d[1]+d[0]==d[2])
{
cout<<"Yes"<<end;
}else{
cout<<"No"<<endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to... |
s330189088 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a+b+c)%==0) cout<<"Yes"<<endl;
else cout<<"No<<endl;
return 0;
}
| a.cc:9:12: warning: missing terminating " character
9 | else cout<<"No<<endl;
| ^
a.cc:9:12: error: missing terminating " character
9 | else cout<<"No<<endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before '=' token
8 | if((... |
s944228768 | p03943 | C++ | # -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range
class infix(object):
def __init__(self, function):
self.function = function
def __ror__(self, other):
self.left = other
return ... | a.cc:1:3: error: invalid preprocessing directive #-
1 | # -*- coding: utf-8 -*-
| ^
a.cc:26:1: error: stray '@' in program
26 | @infix
| ^
a.cc:39:2: error: invalid preprocessing directive #d
39 | #d = {1:2, 3:5, 6:10, 1000043:3814}
| ^
a.cc:40:2: error: invalid preprocessing directive #z... |
s156307583 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
puts(a+b==c||b+c==a||c+a==b)
cout<<"Yes";
else
cout<<"No";
} | a.cc: In function 'int main()':
a.cc:7:28: error: cannot convert 'bool' to 'const char*'
7 | puts(a+b==c||b+c==a||c+a==b)
| ~~~~~~~~~~~~~~^~~~~~~~
| |
| bool
In file included from /usr/include/c++/14/cstdio:42,
... |
s166949362 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
}
int a,b,c;
cin>>a>>b>>c;
puts(a+b==c||b+c==a||c+a==b)
cout<<"Yes";
else
cout<<"No";
} | a.cc:7:5: error: 'cin' does not name a type
7 | cin>>a>>b>>c;
| ^~~
a.cc:8:13: error: expected constructor, destructor, or type conversion before '(' token
8 | puts(a+b==c||b+c==a||c+a==b)
| ^
a.cc:10:5: error: expected unqualified-id before 'else'
10 | else
... |
s562099447 | p03943 | C++ | #include<iostream>
using namespace std;
int main()
{
long long W,H,N;
cin >> W >> H >> N;
long long l=0,r=W,b=0,t=H;
long long x,y,a;
for(int i=0;i<N;i++){
cin >> x >> y >> a;
switch(a){
case 1:
if(l < x)l = x;
break;
case 2:
if(r > x)r = x;
break;
case 3:
if(b < y)b = y;
break;... | a.cc: In function 'int main()':
a.cc:34:18: error: expected '}' at end of input
34 | return 0;
| ^
a.cc:6:1: note: to match this '{'
6 | {
| ^
|
s298296465 | p03943 | C++ | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (a = b + c || b = a + c || c = a + b) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:32: error: lvalue required as left operand of assignment
9 | if (a = b + c || b = a + c || c = a + b) {
| ~~~~~~^~~~
|
s390699649 | p03943 | C++ | #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a=b+c || b=c+a || c==a+b) printf("Yes\n");
else printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: error: lvalue required as left operand of assignment
11 | if(a=b+c || b=c+a || c==a+b) printf("Yes\n");
| ~~~~^~~~
|
s755844710 | p03943 | C++ | #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
using namespace std;
int main(){
int a, b, c
cin >> a >> b >> c;
if(a=b+c || b=c+a || c==a+b) printf("Yes\n");
else printf("No\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: expected initializer before 'cin'
9 | cin >> a >> b >> c;
| ^~~
a.cc:11:16: error: 'c' was not declared in this scope
11 | if(a=b+c || b=c+a || c==a+b) printf("Yes\n");
| ^
|
s088116099 | p03943 | C++ | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
public static void Main(string[] args) { new MainClass().solve(); }
Scanner cin = new Scanner();
... | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Collections;
| ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
3 | using System.Collectio... |
s823807814 | p03943 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
if (a[0] + a[1] == a[2]) {
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
10 | sort(a, a + 3);
| ^~~~
| short
|
s750647707 | p03943 | Java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String x = br.readLine();
String[] cut = x.split(" ");
int a... | Main.java:28: error: cannot find symbol
u = "Yes";
^
symbol: variable u
location: class Main
Main.java:30: error: cannot find symbol
u = "Yes";
^
symbol: variable u
location: class Main
Main.java:32: error: cannot find symbol
u = "Yes";
^
symbol: variable u
location: class Main
Main.... |
s417788536 | p03943 | C++ | a, b ,c = map(int, input().split())
if a + b == c or b + c == a or a + c == b:
print('Yes')
else :
print('No') | a.cc:3:11: warning: multi-character character constant [-Wmultichar]
3 | print('Yes')
| ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
5 | print('No')
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a, b ,c = map(int, input().split())
... |
s061158768 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false
int main()
{
vector<int> hoge(3);
rep(i, 3)
{
cin >> hoge[i];
... | a.cc: In function 'int main()':
a.cc:18:9: error: no matching function for call to 'sort(std::vector<int>&)'
18 | sort(hoge);
| ~~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
from a.cc:1:
/... |
s462265219 | p03943 | C++ | #include<iostream>
using namespace std;
int main(){
int W , H , N;
cin >> W >> H >> N ;
int WWL = 0 , WWR = W , WHU = 0 , WHO = H;
for(int i = 0 ; i < N ; i++){
int x , y , a;
cin >> x >> y >> a;
switch(a):
case(1){
if(WWL > x)
WWL = x;
break;
}
case... | a.cc: In function 'int main()':
a.cc:14:14: error: expected primary-expression before ':' token
14 | switch(a):
| ^
a.cc:20:7: error: case label '2' not within a switch statement
20 | case(2){
| ^~~~
a.cc:20:14: error: expected ':' before '{' token
20 | case(2){
... |
s607127499 | p03943 | C++ | 1 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 1
| ^
|
s626655292 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a == b+c || b == a+c || c = a+b){
puts("Yes");
}else{
puts("No");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:27: error: lvalue required as left operand of assignment
10 | if(a == b+c || b == a+c || c = a+b){
| ~~~~~~~~~~~~~~~~~~~~~^~~~
|
s049942117 | p03943 | C++ | #include<iostream>
#include<string>
#include<cmath>
#include<iomanip>
#include<cstdlib>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if( a + b == c || b + c == a || c + a == b )){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:47: error: expected primary-expression before ')' token
10 | if( a + b == c || b + c == a || c + a == b )){
| ^
|
s337409039 | p03943 | Java | import java.net.SecureCacheResponse;
import java.util.Random;
import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int a ,b, c;
Scanner scan = new Scanner(System.in);
a = scan.nextInt();
b = scan.nextInt();
c = scan.nextInt();
if(... | Main.java:5: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s199608489 | p03943 | Java | import java.net.SecureCacheResponse;
import java.util.Random;
import java.util.Scanner;
public class kougi {
public static void main(String[] args) {
int a ,b, c;
Scanner scan = new Scanner(System.in);
a = scan.nextInt();
b = scan.nextInt();
c = scan.nextInt();
if(... | Main.java:5: error: class kougi is public, should be declared in a file named kougi.java
public class kougi {
^
1 error
|
s055509723 | p03943 | C++ | #include <cstdio>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
#include <set>
#include <map>
#include <deque>
#define WMAX 10000
#define HMAX 10000
//コメントアウトするとdebug()を実行しない
#define DEBUG
using namespace std;
t... | a.cc: In function 'int main()':
a.cc:51:27: error: expected ';' before '}' token
51 | ans = "No"
| ^
| ;
52 | }
| ~
|
s898808783 | p03943 | C++ | #include <cstdio>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
#include <set>
#include <map>
#include <deque>
#define WMAX 10000
#define HMAX 10000
//コメントアウトするとdebug()を実行しない
#define DEBUG
using namespace std;
t... | a.cc:29:1: error: expected initializer before 'string'
29 | string ans;
| ^~~~~~
a.cc: In function 'void answer()':
a.cc:43:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
43 | cout << ans << "\n";
| ^~~
| abs
a.cc: In function 'int ma... |
s447655617 | p03943 | C | #define SORT(v) sort(v.begin(), v.end())
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cstdarg>
#include <cstdio>
#include <cmath>
#include <numeric>
#include <utility>
// #include "ane.cpp"
#define INF (int)1e9
#define INFLL (... | main.c:2:10: fatal error: iostream: No such file or directory
2 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s211238871 | p03943 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
if(a == b + c){
System.out.println("はい");
}
else if(b == a + c){
... | Main.java:24: error: reached end of file while parsing
}
^
1 error
|
s142201298 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a = b + c){
System.out.println("Yes");
}else{
System.out.p... | Main.java:8: error: incompatible types: int cannot be converted to boolean
if(a = b + c){
^
1 error
|
s988065865 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();
int c =sc.nextInt();
if(a==b+c){
System.out.println("Yes");
}else if(b==a+c){
System.out.println("Yes");
}else if(c==a+b){
System.out.printl... | Main.java:17: error: reached end of file while parsing
}
^
1 error
|
s586652100 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();
int c =sc.nextInt();
if(a==b+c){
System.out.println("Yes");
}else if(b==a+c){
System.out.println("Yes");
}else if(c==a+b){
System.out.printl... | Main.java:17: error: class, interface, enum, or record expected
}
^
1 error
|
s738753448 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();
int c =sc.nextInt();
if(a==b+c){
System.out.println("Yes");
}else if(b==a+c){
System.out.println("Yes");
}else if(c==a+b){
System.out.printl... | Main.java:15: error: reached end of file while parsing
}
^
1 error
|
s127930876 | p03943 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a =sc.nextInt();
int b =sc.nextInt();
int c =sc.nextInt();
if(a=b+c)System.out.println("Yes");
if(b=a+c)System.out.println("Yes");
if(c=a+b)System.out.println("Yes");
}
} | Main.java:8: error: incompatible types: int cannot be converted to boolean
if(a=b+c)System.out.println("Yes");
^
Main.java:9: error: incompatible types: int cannot be converted to boolean
if(b=a+c)System.out.println("Yes");
^
Main.java:10: error: incompatible types: int cannot be converted to boolean
if(c=... |
s089026458 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
vector<int> n(3);
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.end());
cout << ((a[0]+a[1]==a[2]) ? "Yes" : "No") << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'a' was not declared in this scope
6 | cin >> a[0] >> a[1] >> a[2];
| ^
|
s340268347 | p03943 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
int a, b, c; cin >> a >> b >> c;
if (a = b + c || b = a + c || c = a + b)cout << "Yes\n"; else cout << "No\n";
} | a.cc: In function 'int main()':
a.cc:7:36: error: lvalue required as left operand of assignment
7 | if (a = b + c || b = a + c || c = a + b)cout << "Yes\n"; else cout << "No\n";
| ~~~~~~^~~~
|
s542754012 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int w,h,n;
cin>>w>>h>>n;
int x,y,a;
int b[100][100]={};
int minx=100,my=100;
while(1){
if(n==0)break;
cin>>x>>y>>a;
if(a==1)
if(minx>w-x)minx=w-x;
else if(a==2)
if(minx>x)minx=x;
else if(a==3)
if(miny>h-y)miny=h-y;
else if(a==4)
if(m... | a.cc: In function 'int main()':
a.cc:17:7: error: 'miny' was not declared in this scope; did you mean 'minx'?
17 | if(miny>h-y)miny=h-y;
| ^~~~
| minx
a.cc:22:13: error: 'miny' was not declared in this scope; did you mean 'minx'?
22 | cout<<minx*miny<<endl;
| ^~~~
... |
s217937689 | p03943 | C++ | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
int n[3];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 3);
if(n[0] + n[1] == n[2]) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'short'?
12 | sort(n, n + 3);
| ^~~~
| short
|
s260819549 | p03943 | Java | package question;
import java.util.Scanner;
public class Test003 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] N = line.split(" ");
int first = Integer.parseInt(N[0]);
int second = Integer.parseInt(N[1])... | Main.java:5: error: class Test003 is public, should be declared in a file named Test003.java
public class Test003 {
^
1 error
|
s852747287 | p03943 | Java | package question;
import java.util.Scanner;
public class Test003 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] N = line.split(" ");
int first = Integer.parseInt(N[0]);
int second = Integer.parseInt(N[1])... | Main.java:5: error: class Test003 is public, should be declared in a file named Test003.java
public class Test003 {
^
1 error
|
s618024824 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
cout << (a[0] == a[1] + a[2] || a[0] + a[1] == a[2] ? "Yes" : "No") << endl;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'sort' was not declared in this scope; did you mean 'short'?
7 | sort(a, a + 3);
| ^~~~
| short
|
s662107734 | p03943 | C | #include <stdio.h>
#include <string.h>
#include <stdbool.h>
#define N_MAX 100
#define M_MAX 1000
#define INF 10000000
#define SMAP(a, b) ((a)!=(b))&&((a)^=((b)^=((a)^= (b))))
typedef unsigned long long ull;
int d[M_MAX];
int n, m;
int i, j, k;
int e[M_MAX][2];
void deb(){
return;
}
void solve(){
return;
}
int... | main.c: In function 'main':
main.c:30:13: error: 'a' undeclared (first use in this function)
30 | if (a == b+c || b == c+a || c == a+b) {
| ^
main.c:30:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:18: error: 'b' undeclared (first use i... |
s304420961 | p03943 | C++ | a,b,c = gets.split(" ").map{|s| s.to_i}.sort
if c = a + b then
puts "Yes"
else
puts "No"
end
| a.cc:1:1: error: 'a' does not name a type
1 | a,b,c = gets.split(" ").map{|s| s.to_i}.sort
| ^
a.cc:1:41: error: expected unqualified-id before '.' token
1 | a,b,c = gets.split(" ").map{|s| s.to_i}.sort
| ^
|
s013704342 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i=0; i<n; i++)
int main(){
cin>>a>>b>>c;
if(a+b==c || b+c==a || c+a==b){
cout<<"Yes";
}
else{
cout<<"No";
}
} | a.cc: In function 'int main()':
a.cc:6:8: error: 'a' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
a.cc:6:11: error: 'b' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
a.cc:6:14: error: 'c' was not declared in this scope
6 | cin>>a>>b>>c;
| ... |
s557286524 | p03943 | C++ | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = 0, b = 0, c = 0, m = 0;
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
m = Math.max(a, b);
m = Math.max(m, c);
if (m == a + b + c - m) {
System.out.println("Yes... | 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 {
| ^~~~~~
|
s789246552 | p03943 | C | #include <studio.h>
int main (void) {
int a, b, c;
int sum;
scanf("%d %d %d", &a, &b, &c);
sum = (a + b + c) / 2;
if(sum == a || sum == b || sum == c) {
printf("YES");
} else {
printf("NO");
}
return 0;
} | main.c:1:10: fatal error: studio.h: No such file or directory
1 | #include <studio.h>
| ^~~~~~~~~~
compilation terminated.
|
s437153684 | p03943 | C++ | #include <stdio.h>
int main(){
int a,b,c;
printf("3つの数値を入力してください。\n");
scanf("d% %d %d", &a, &b, &c);
wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
printf("a,b,cは1以上100以下で入力してください\n");
scanf("d% %d %d", &a, &b, &c);
}
if(a==b+c || b==a+c || c==a+b){
printf("Yes");
}el... | a.cc: In function 'int main()':
a.cc:8:9: error: 'wihle' was not declared in this scope
8 | wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
| ^~~~~
|
s691619622 | p03943 | C++ | #include <stdio.h>
int main(){
int a,b,c;
printf("3つの数値を入力してください。\n");
scanf("d% %d%d", &a, ,&b, &c);
wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
printf("a,b,cは1以上100以下で入力してください\n");
scanf("d% %d%d", &a, ,&b, &c);
}
if(a==b+c || b==a+c || c==a+b){
printf("Yes");
}else{
... | a.cc: In function 'int main()':
a.cc:6:30: error: expected primary-expression before ',' token
6 | scanf("d% %d%d", &a, ,&b, &c);
| ^
a.cc:8:9: error: 'wihle' was not declared in this scope
8 | wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
| ... |
s266450619 | p03943 | C++ | #include <stdoi.h>
int main(){
int a,b,c;
printf("3つの数値を入力してください。\n");
scanf("d% %d%d", &a, ,&b, &c);
wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
printf("a,b,cは1以上100以下で入力してください\n");
scanf("d% %d%d", &a, ,&b, &c);
}
if(a==b+c || b==a+c || c==a+b){
printf("Yes");
}else{
... | a.cc:1:10: fatal error: stdoi.h: No such file or directory
1 | #include <stdoi.h>
| ^~~~~~~~~
compilation terminated.
|
s277472273 | p03943 | C | #include <stdoi.h>
int main(){
int a,b,c;
printf("3つの数値を入力してください。\n");
scanf("d% %d%d", &a, ,&b, &c);
wihle((a<1 || a>100) || (b<1 || b>100) || (c<1 || c>100)){
printf("a,b,cは1以上100以下で入力してください\n");
scanf("d% %d%d", &a, ,&b, &c);
}
if(a==b+c || b==a+c || c==a+b){
printf("Yes");
}else{
... | main.c:1:10: fatal error: stdoi.h: No such file or directory
1 | #include <stdoi.h>
| ^~~~~~~~~
compilation terminated.
|
s166816054 | p03943 | C++ |
#include <iostream>
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a + b == c || b + c == a || c + a == b){
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s452912819 | p03943 | C++ | S#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#inc... | a.cc:1:2: error: stray '#' in program
1 | S#include <string>
| ^
a.cc:1:1: error: 'S' does not name a type
1 | S#include <string>
| ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/deque:62,
from /usr/include/c++/14/queue... |
s974631433 | p03943 | Java | import java.util.Scanner;
/**
* Created by gumio_inf on 2016/12/02.
*/
public class A1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (1 <= a && a <= 100 && 1 <= b && b ... | Main.java:6: error: class A1 is public, should be declared in a file named A1.java
public class A1 {
^
1 error
|
s838052132 | p03943 | C++ | #include <iosteram>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >>c;
if (a == b+c || b == c+a || c == a+b)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | a.cc:1:10: fatal error: iosteram: No such file or directory
1 | #include <iosteram>
| ^~~~~~~~~~
compilation terminated.
|
s657220997 | p03943 | C | #include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a, &b, &c);
if ( a+b==c || a+c==b || c+b==a){
printf("Yes");
else
{ printf("No");
}
}
return 0;
} | main.c: In function 'main':
main.c:10:1: error: expected '}' before 'else'
10 | else
| ^~~~
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
15 | return 0;
| ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
16 | }
| ^
|
s961233969 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b>> c;
if((a+b)==c || (b+c)==a|| (c+a)==b ){
cout << "Yes";
}
else{
cout << "No";
}
return 0; | a.cc: In function 'int main()':
a.cc:13:10: error: expected '}' at end of input
13 | return 0;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s433396865 | p03943 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b>> c;
if((a+b)==c || (b+c)==a|| (c+a)==b ){
cout << "yes";
}
else{
cout << "no";
}
return 0; | a.cc: In function 'int main()':
a.cc:13:10: error: expected '}' at end of input
13 | return 0;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s295486514 | p03943 | C | #include<stdio.h>
int main(){
int W,H,N;
scanf("%d",&W);
scanf("%d",&H);
scanf("%d",&N);
int x1=0,x2=W,y1=0,y2=H;
int x[N],y[N],a[N];
for(int i=0;i<N;i++){
scanf("%d",&x[i]);
scanf("%d",&y[i]);
scanf("%d",&a[i]);
if(a[i]==1){
if(x1<x[i])x1=x[i];
}
else if(a[... | main.c: In function 'main':
main.c:32:16: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
32 | if(x1>x2+1)pritnf("0\n");
| ^~~~~~
| printf
|
s050548311 | p03943 | C | #include<stdio.h>
int main(void)
{
int a,b,c;
if(a+b=c,a+c=b,b+c=a){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | main.c: In function 'main':
main.c:5:8: error: lvalue required as left operand of assignment
5 | if(a+b=c,a+c=b,b+c=a){
| ^
main.c:5:14: error: lvalue required as left operand of assignment
5 | if(a+b=c,a+c=b,b+c=a){
| ^
main.c:5:20: error: lvalue required as left operand of as... |
s094045069 | p03943 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <string>
void InputToVector(std::vector<int> *pTarget)
{
if(pTarget == NULL) { return; }
int Input;
std::cin >> Input;
pTarget->push_back(Input);
}
int main()
{
std::vector List;
InputToVector(&List)... | a.cc: In function 'int main()':
a.cc:21:17: error: class template argument deduction failed:
21 | std::vector List;
| ^~~~
a.cc:21:17: error: no matching function for call to 'vector()'
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bi... |
s974025546 | p03943 | C++ | a = gets.split.map(&:to_i)
s = a.inject(&:+)
if a.any?{|x| s-x ==x }
puts 'Yes'
else
puts 'No'
end | a.cc:4:8: warning: multi-character character constant [-Wmultichar]
4 | puts 'Yes'
| ^~~~~
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
6 | puts 'No'
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a = gets.split.map(&:to_i)
| ^
a.cc:4:3: error... |
s594317364 | p03943 | C++ | # include<stdio.h>
int main(){
int a,b,c;
cin >> a >> b >>c;
if(a == b+c || b == c+a || c == a+b) printf("Yes\n");
else printf("No\n");
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
6 | cin >> a >> b >>c;
| ^~~
|
s368475881 | p03943 | Java | import java.util.Scanner;
public class atcode {
public static void main (String[]args){
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] num = line.split(" ");
int a = Integer.parseInt(num[0]);
int b = Integer.parseInt(num[1]);
int c = Integer.parseInt(num[2]);
if(a==b+c)Syste... | Main.java:3: error: class atcode is public, should be declared in a file named atcode.java
public class atcode {
^
1 error
|
s394323937 | p03943 | Java | import java.util.Scanner;
public class atcode {
public static void main (String[]args){
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] num = line.split(" ");
int a = Integer.parseInt(num[0]);
int b = Integer.parseInt(num[1]);
int c = Integer.parseInt(num[2]);
if(a==b+c)Syste... | Main.java:3: error: class atcode is public, should be declared in a file named atcode.java
public class atcode {
^
1 error
|
s528576295 | p03943 | Java | import java.util.Scanner;
public class atcode {
public static void main (String[]args){
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] num = line.split(" ");
int a = Integer.parseInt(num[0]);
int b = Integer.parseInt(num[1]);
int c = Integer.parseInt(num[2]);
if(a==b+c)Syste... | Main.java:3: error: class atcode is public, should be declared in a file named atcode.java
public class atcode {
^
1 error
|
s042797449 | p03943 | C++ | #include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
int A, B, C;
cin >> A >> B >> C;
if (A + B == C || B + C == A || C + A == B) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
return 0;
} | a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s826979619 | p03943 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a[3];
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
cout<<(a[2]==a[1]+a[0]?("Yes","No"))<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:37: error: expected ':' before ')' token
8 | cout<<(a[2]==a[1]+a[0]?("Yes","No"))<<endl;
| ^
| :
a.cc:8:37: error: expected primary-expression before ')' token
|
s212797424 | p03943 | C | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
usi... | main.c:2:10: fatal error: algorithm: No such file or directory
2 | #include <algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s926098974 | p03943 | C | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,%b,&c);
if (a+b==c || b+c==a || c+a==b){
printf("Yes");
} else {
printf("No");
}
return 0;
} | main.c: In function 'main':
main.c:9:29: error: expected expression before '%' token
9 | scanf("%d %d %d",&a,%b,&c);
| ^
|
s268210558 | p03943 | C++ | #include <cstdio>
using namespace std;
int main() {
int a, b, c;
char s[101];
scanf("%d %d %d", &a, &b, &c);
if (a + b == c || b + c == a || c + a == b)
s = "Yes";
else
s = "No";
printf("%s\n", s);
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:7: error: incompatible types in assignment of 'const char [4]' to 'char [101]'
9 | s = "Yes";
| ~~^~~~~~~
a.cc:11:7: error: incompatible types in assignment of 'const char [3]' to 'char [101]'
11 | s = "No";
| ~~^~~~~~
|
s044123392 | p03943 | C++ | #include "bits/stdc++.h"
using namespace std;
int main(){
long long a,b,c;
cin>>a>>b>>c;
if(a+b==c || a+c == b || b+c ==a)
cout << "Yes\n"
else
cout << "No\n"
} | a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'else'
7 | cout << "Yes\n"
| ^
| ;
8 | else
| ~~~~
|
s331020867 | p03943 | Java | import java.util.Scanner;
public class a_FightingOverCandies {
static Scanner scanner;
static int a, b, c;
public static void main(String[] args){
scanner = new Scanner(System.in);
a = scanner.nextInt();
b = scanner.nextInt();
c = scanner.nextInt();
candy_divide(... | Main.java:3: error: class a_FightingOverCandies is public, should be declared in a file named a_FightingOverCandies.java
public class a_FightingOverCandies {
^
1 error
|
s686449539 | p03943 | Java | import test.jason.io.LRUCache;
import test.jason.io.Solution;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a > b) {
... | Main.java:1: error: package test.jason.io does not exist
import test.jason.io.LRUCache;
^
Main.java:2: error: package test.jason.io does not exist
import test.jason.io.Solution;
^
2 errors
|
s554705531 | p03943 | C++ | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a > b) {
if (a > c ) {
output(a - b == c);
... | 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 {
| ^~~~~~
|
s444203510 | p03943 | C++ |
{
int a, b, c;
cin>>a>>b>>c;
if( a+b == c ) cout<<"Yes"<<endl;
else if( a+c == b ) cout<<"Yes"<<endl;
else if( b+c == a ) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}
| a.cc:2:1: error: expected unqualified-id before '{' token
2 | {
| ^
|
s186538150 | p03943 | C++ | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin>>a>>b>>c;
if( a+b == c ) cout>>"Yes">>endl;
else if( a+c == b ) cout>>"Yes">>endl;
else if( b+c == a ) cout>>"Yes">>endl;
else cout>>"No">>endl;
return 0;
}
{
int a, b, c;
cin>>a>>b>>c;
if( a+b == c ) cout>... | a.cc: In function 'int main()':
a.cc:9:24: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
9 | if( a+b == c ) cout>>"Yes">>endl;
| ~~~~^~~~~~~
| | |
| | co... |
s300755558 | p03943 | C++ | #include <cstdio>
using namespace std;
int main()
{
int a, b, c;
cin>>a>>b>>c;
if( a+b == c ) cout>>"Yes">>endl;
else if( a+c == b ) cout>>"Yes">>endl;
else if( b+c == a ) cout>>"Yes">>endl;
else cout>>"No">>endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
8 | cin>>a>>b>>c;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <cstdio>
+++ |+#include <iostream>
2 |
a.cc:9:20:... |
s749511289 | p03943 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//double pi=3.1415926535898;
//double pi=acos(-1.0);
#define scarr(a,s,e) for(int i=s;i<=int(e);i++) scanf("%d ",&a[i]);
#define prarr(a,s,e) for(int i=s;i<=int(e);i++) printf("%d ",a[i]);
#define speed ios::sync_with_stdio(false);cin.tie(NULL); ... | a.cc:48:11: warning: missing terminating " character
48 | cout<<"Yes
| ^
a.cc:48:11: error: missing terminating " character
48 | cout<<"Yes
| ^~~~
a.cc:49:1: warning: missing terminating " character
49 | ";
| ^
a.cc:49:1: error: missing terminating " character
4... |
s745929042 | p03943 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int w,h,n,a,b,c,count=0;
cin >> w >> h >> n;
int maps[h][w];
for(int i=0;i<h;i++){
for(int j=0;j<w;j++){
maps[i][j]=0;
}
}
for(int cas=0;cas<n;cas++){
cin >> a >> b >> c;
if(c == 1){
for(int i=0;i<a;i++){
for(int j=0;j<h;j++){
maps... | a.cc: In function 'int main()':
a.cc:52:2: error: expected '}' at end of input
52 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s344529964 | p03943 | Java | class probA{
static public void main(String[] args)
{
int suji[] = new suji[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
suji[i] = Integer.parseInt(args[i]);
sum += num[i];
}
for (i = 0; i < 3; i++){
if (sum - suji[i] == suji[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(... | Main.java:4: error: cannot find symbol
int suji[] = new suji[3];
^
symbol: class suji
location: class probA
Main.java:8: error: cannot find symbol
sum += num[i];
^
symbol: variable num
location: class probA
2 errors
|
s295555791 | p03943 | Java | class probA{
static public void main(String[] args)
{
int suji[] = new suji[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
suji[i] = Integer.parseInt(args[i]);
sum += num[i];
}
for (i = 0; i < 3; i++){
if (sum - suji[i] == suji[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(... | Main.java:19: error: reached end of file while parsing
}
^
1 error
|
s993354245 | p03943 | Java | class probA{
static public void main(String[] args)
{
int suji[] = new int[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
suji[i] = parseInt(args[i]);
sum += suji[i];
}
for (i = 0; i < 3; i++){
if (sum - suji[i] == suji[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(0);
}
} | Main.java:7: error: cannot find symbol
suji[i] = parseInt(args[i]);
^
symbol: method parseInt(String)
location: class probA
1 error
|
s262985242 | p03943 | Java | class probA{
static public void main(String[] args)
{
int suji[] = new suji[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
suji[i] = parseInt(args[i]);
sum += num[i];
}
for (i = 0; i < 3; i++){
if (sum - suji[i] == suji[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(0);
}
}
| Main.java:4: error: cannot find symbol
int suji[] = new suji[3];
^
symbol: class suji
location: class probA
Main.java:7: error: cannot find symbol
suji[i] = parseInt(args[i]);
^
symbol: method parseInt(String)
location: class probA
Main.java:8: error: cannot find symbol
sum += nu... |
s658285846 | p03943 | Java | class probA{
static public void main(String[] args)
{
int num[] = new num[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
num[i] = parseInt(args[i]);
sum += num[i];
}
for (i = 0; i < 3; i++){
if (sum - num[i] == num[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(0);
}
} | Main.java:4: error: cannot find symbol
int num[] = new num[3];
^
symbol: class num
location: class probA
Main.java:7: error: cannot find symbol
num[i] = parseInt(args[i]);
^
symbol: method parseInt(String)
location: class probA
2 errors
|
s999723677 | p03943 | Java | class probA{
static public void main(String[] args)
{
int num[] = new num[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
int num[i] = parseInt(args[i]);
sum += num[i]
}
for (i = 0; i < 3; i++){
if (sum - num[i] == num[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(0);
}
| Main.java:7: error: ']' expected
int num[i] = parseInt(args[i]);
^
Main.java:7: error: ';' expected
int num[i] = parseInt(args[i]);
^
Main.java:8: error: ';' expected
sum += num[i]
^
Main.java:19: error: reached end of file while parsing
}
^
4 errors
|
s009755303 | p03943 | Java | class probA{
static public void main(String[] args)
{
int num[3];
int i, sum = 0;
for (i = 0; i < 3; i++){
int num[i] = parseInt(args[i]);
sum += num[i]
}
for (i = 0; i < 3; i++){
if (sum - num[i] == num[i]){
System.out.println("Yes");
System.exit(0);
}
}
System.out.println("No");
System.exit(0);
}
| Main.java:4: error: ']' expected
int num[3];
^
Main.java:7: error: ']' expected
int num[i] = parseInt(args[i]);
^
Main.java:7: error: ';' expected
int num[i] = parseInt(args[i]);
^
Main.java:8: error: ';' expected
sum += num[i]
^
Main.java:19: error: reached end of file while par... |
s268426971 | p03943 | C | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc == 3) {
int i;
int num[3];
for (i = 0; i < 3; i++) {
num[i] = atoi(argv[i]);
}
if (num[0]+num[1] == num[2] || num[1]+num[2] == num[0] || num[2]+num[0] == num[1])
printf("Yes\n");
else
printf("No\n");
} else
printf("No\n");
retrun 0;
... | main.c: In function 'main':
main.c:21:1: error: 'retrun' undeclared (first use in this function)
21 | retrun 0;
| ^~~~~~
main.c:21:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:7: error: expected ';' before numeric constant
21 | retrun 0;
| ^... |
s120000670 | p03943 | C | #include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
if (argc == 3) {
int i;
int num[3];
for (i = 0; i < 3; i++) {
num[i] = atoi(argv[i]);
}
if (num[0]+num[1] == num[2] || num[1]+num[2] == num[0] || num[2]+num[0] == num[1])
printf("Yes\n");
else
printf("No\n");
} else
printf("No\n");
retrun 0;
... | main.c: In function 'main':
main.c:11:10: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
11 | num[i] = atoi(argv[i]);
| ^~~~
main.c:21:1: error: 'retrun' undeclared (first use in this function)
21 | retrun 0;
| ^~~~~~
main.c:21:1: note: each undeclared identi... |
s461468848 | p03943 | C | #include <stdio.h>
#include <string.h>
int main(int *argc, char *argv[])
{
if (argc == 3) {
int i;
int num[3];
for (i = 0; i < 3; i++) {
num[i] = atoi(argv[i]);
}
if (num[0]+num[1] == num[2] || num[1]+num[2] == num[0] || num[2]+num[0] == num[1])
printf("Yes\n");
else
printf("No\n");
} else
printf("No\n");
retrun 0;... | main.c: In function 'main':
main.c:6:10: warning: comparison between pointer and integer
6 | if (argc == 3) {
| ^~
main.c:11:10: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
11 | num[i] = atoi(argv[i]);
| ^~~~
main.c:21:1: error: 'retrun' undeclar... |
s523467552 | p03943 | C | #include <stdio.h>
#include <string.h>
int main(int *argc, char *argv[])
{
if (argc == 3) {
int i;
int num[3];
for (i = 0; i < 3; i++) {
num[i] = atoi(argv[i]);
}
if (num[0]+num[1] == num[2] || num[1]+num[2] == num[0] || num[2]+num[0] == num[1])
printf("Yes\n");
else
printf("No\n");
} else
printf("No\n");
retrun0;} | main.c: In function 'main':
main.c:6:10: warning: comparison between pointer and integer
6 | if (argc == 3) {
| ^~
main.c:11:10: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
11 | num[i] = atoi(argv[i]);
| ^~~~
main.c:21:1: error: 'retrun0' undecla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.