submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s707192989
p00003
C++
main(a,b,c){ for( scanf("%*d");~scanf("%d%d%d",&a,&b,&c); puts(((a+b-c)&&(a+c-b)&&(b+c-a))?"NO":"YES") ) a*=a,b*=b,c*=c; exit(0); }
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){ | ^
s705028472
p00003
C++
main(a,b,c){ for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts(((a+b-c)&&(a+c-b)&&(b+c-a))?"NO":"YES")){a*=a,b*=b,c*=c;} exit(0); }
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){ | ^
s090575062
p00003
C++
main(a,b,c){ for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts(((a+b-c)&&(b+c-a)&&(a+c-b))?"NO":"YES"))a*=a,b*=b,c*=c; exit(0); }
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){ | ^
s319195075
p00003
C++
#include<stdio.h> #include<algorithm> int main(){ int n,a,b,c; int m=0; scanf("%d",&n); for(int i=0;i<n;i++){ int a[3]; for(int j=0;j<3;j++)scanf("%d",&a[j]); std::sort(a,a+3); m=max(a,b); m=max(m,c); if(a[0]*a[0]+a[1]*a[1] == a[2]*a[2])puts("YES"); else{ if(m<100)puts("NO"); else puts("Y...
a.cc: In function 'int main()': a.cc:13:19: error: 'max' was not declared in this scope; did you mean 'std::max'? 13 | m=max(a,b); | ^~~ | std::max In file included from /usr/include/c++/14/algorithm:61, from a.cc:2: /usr/include/c++/14...
s861793004
p00003
C++
main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES")a*=a,b*=b,c*=c;}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES")a*=a,b*=b,c*=c;} | ^
s555760953
p00003
C++
main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES"))a*=a,b*=b,c*=c;}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES"))a*=a,b*=b,c*=c;} | ^
s789981774
p00003
C++
main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES"))a*=a,b*=b,c*=c;}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&a+c-b&&c+b-a)?"NO":"YES"))a*=a,b*=b,c*=c;} | ^
s907532612
p00003
C++
main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":YES"))a*=a,b*=b,c*=c;}
a.cc:1:85: warning: missing terminating " character 1 | main(a,b,c){for(gets());scnaf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":YES"))a*=a,b*=b,c*=c;} | ^ a.cc:1:85: error: missing terminating " character 1 | main...
s034414805
p00003
C++
main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a,b,c){for(scanf("%*d");scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&c+a-b)?"NO":"YES"))a*=a,b*=b,c*=c;} | ^
s380841592
p00003
C++
i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
a.cc:1:1: error: 'i' does not name a type 1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~sc...
s435369995
p00003
C++
i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;}
a.cc:1:1: error: 'i' does not name a type 1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~sc...
s146155943
p00003
C++
i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
a.cc:1:1: error: 'i' does not name a type 1 | i;main(a,b,c){for(scanf("%*d"),i=4;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | i;main(a,b,c){for(scanf("%*d"),i=4;...
s610965263
p00003
C++
i;main(a,b,c){for(scanf("%*d"),i=10;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
a.cc:1:1: error: 'i' does not name a type 1 | i;main(a,b,c){for(scanf("%*d"),i=10;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | i;main(a,b,c){for(scanf("%*d"),i=1...
s072583619
p00003
C++
i;main(a,b,c){for(scanf("%*d"),i=400;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);}
a.cc:1:1: error: 'i' does not name a type 1 | i;main(a,b,c){for(scanf("%*d"),i=400;i--&&~scanf("%d%d%d",&a,&b,&c);puts((a+b-c&&b+c-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;exit(0);} | ^ a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token 1 | i;main(a,b,c){for(scanf("%*d"),i=...
s549559569
p00003
C++
#include <ioatream> #include <algorithm> using namespace std; int main(){ int a[3]; while(cin >> a[0] >> a[1] >> a[2]){ sort(a, a+3); if(a[0]*a[0]+a[1]*a[1] == a[2]*a[2]) cout << "Yes" << endl; else cout << "No" << endl; } }
a.cc:1:10: fatal error: ioatream: No such file or directory 1 | #include <ioatream> | ^~~~~~~~~~ compilation terminated.
s514560535
p00003
C++
#include<iostream> using namespace std; int main(){ int n=0; cin>>n; int a,b,c; int x,y,z; for(int i=1;i<=n;i++){ cin>>a>>b>>c; if(a*a==b*b+c*c||b*b=a*a+c*c||c*c=a*a+b*b)cout<<"YES"<<endl; else cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:10:45: error: lvalue required as left operand of assignment 10 | if(a*a==b*b+c*c||b*b=a*a+c*c||c*c=a*a+b*b)cout<<"YES"<<endl; | ~~~~~~~^~~~~
s333856199
p00003
C++
#include "StdAfx.h" #include "AOJ0003.h" #include <string> #include <sstream> #include <iostream> #include <stack> #include <queue> #include <vector> using namespace std; vector<string> exinputstring(){ vector<string> ss; string s; while(getline(cin,s) ){ ss.push_back(s); } return ss; } vector<int> exinputint...
a.cc:1:10: fatal error: StdAfx.h: No such file or directory 1 | #include "StdAfx.h" | ^~~~~~~~~~ compilation terminated.
s095497006
p00003
C++
#include <iostream> using namespace std; int main(){ int a[3]; int n; cin >> n; for (int i = 0; i < n; i++){ cin >> a[0] >> a[1] >> a[2]; sort(a, a + 3); if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) puts("YES"); else puts("NO"); } 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
s477553551
p00003
C++
#include <iostream> using namespace std; int main(){ int a[3]; int n; cin >> n; for (int i = 0; i < n; i++){ cin >> a[0] >> a[1] >> a[2]; sort(a, a + 3); if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) puts("YES"); else puts("NO"); } 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
s829101701
p00003
C++
#include <iostream> using namespace std; int main(){ int a[3]; int n; cin >> n; for (int i = 0; i < n; i++){ cin >> a[0] >> a[1] >> a[2]; sort(a, a + 3); if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) puts("YES"); else puts("NO"); } 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
s915943592
p00003
C++
#include <iostream> #include <cstdio> using namespace std; int main() { int T; scanf("%d",&T); for(int t=0;t<T;t++){ int edge[3]; printf("%d %d %d",edge,edge+1,edge+2); sort(edge,edge+3,greater<int>()); if(edge[0]*edge[0]==edge[1]*edge[1]+edge[2]*edge[2]){ printf("%s\n","YES"); }else{ printf("%s\n","NO"); } } return...
a.cc: In function 'int main()': a.cc:13:1: error: 'sort' was not declared in this scope; did you mean 'short'? 13 | sort(edge,edge+3,greater<int>()); | ^~~~ | short
s040931670
p00003
C++
#include "cstdio" int main() { int n,a,b,c; scanf("%d",&n); for(;n<0;n--){ scanf("%d%d%d",&a,&b,&c); if(a > b && a > c){ if( a^2 == b^2 + c^2){ printf("YES"); }else { printf("NO"); }} if(b > a && b > c){ if( b^2 == a^2 + c^2){ printf("YES"); }else { printf("NO"); }} i...
a.cc:34:9: error: expected unqualified-id before 'return' 34 | return 0; | ^~~~~~ a.cc:35:1: error: expected declaration before '}' token 35 | } | ^
s055843758
p00003
C++
#include <cstdio> imt main() { int a,b,c,n; scanf("%d",&n); for(int i = 0;i < n; i++){ scanf("%d%d%d",&a,&b,&c); if(a^2 + b^2 == c^2 || c^2 + a^2 == b^2 || b^2 + c^ == a^2){ printf("YES"); }else { printf("NO"); } return 0; }
a.cc:3:1: error: 'imt' does not name a type; did you mean 'int'? 3 | imt main() { | ^~~ | int
s333549954
p00003
C++
#include <cstdio> int main() { int a,b,c,n; scanf("%d",&n); for(int i = 0;i < n; i++){ scanf("%d%d%d",&a,&b,&c); if(a^2 + b^2 == c^2 || c^2 + a^2 == b^2 || b^2 + c^ == a^2){ printf("YES"); }else { printf("NO"); } return 0; }
a.cc: In function 'int main()': a.cc:9:69: error: expected primary-expression before '==' token 9 | if(a^2 + b^2 == c^2 || c^2 + a^2 == b^2 || b^2 + c^ == a^2){ | ^~ a.cc:15:2: error: expected '}' at end of input 15 | } ...
s145063046
p00003
C++
#include <iostream> using namespace std; int main() { int sankaku[3]; while (1) { cin >> sankaku[0] >> sankaku[1] >> sankaku[2]; sort (sankaku, sankaku + 3); if (sankaku[2] == (sankaku[0] * sankaku[0]) + (sankaku[1] * sankaku[1])) { cout << "YES" << endl; }else { cout...
a.cc: In function 'int main()': a.cc:10:5: error: 'sort' was not declared in this scope; did you mean 'short'? 10 | sort (sankaku, sankaku + 3); | ^~~~ | short
s010402454
p00003
C++
#include <iostream> using namespace std; int main() { int N = 3; int hen[3]; cout << N; cin >> hen[0] >> hen[1] >> hen[2]; sort(hen, hen + 3); if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) { cout << "YES"; else cout << "NO"; ...
a.cc: In function 'int main()': a.cc:15:5: error: 'sort' was not declared in this scope; did you mean 'short'? 15 | sort(hen, hen + 3); | ^~~~ | short a.cc:21:8: error: expected '}' before 'else' 21 | else cout << "NO"; | ^~~~ a.cc:19:63: note: to match this '{' 19 |...
s073996832
p00003
C++
#include <iostream> using namespace std; int main() { int N; cin >> N; //cout << N; int hen[3]; while (N --> 0) { cin >> hen[0] >> hen[1] >> hen[2]; sort(hen, hen + 3); if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) { cout << "YES"; }...
a.cc: In function 'int main()': a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'? 12 | sort(hen, hen + 3); | ^~~~ | short a.cc: At global scope: a.cc:26:5: error: expected unqualified-id before 'if' 26 | if (hen[2] * hen[2] == hen[0] * hen[0] + ...
s745293645
p00003
C++
#include <iostream> using namespace std; int main() { int N; cin >> N; int hen[3]; while (N --> 0) { cin >> hen[0] >> hen[1] >> hen[2]; sort(hen, hen + 3); if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) { cout << "YES"; } else { ...
a.cc: In function 'int main()': a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'? 12 | sort(hen, hen + 3); | ^~~~ | short
s011039558
p00003
C++
#include <iostream> using namespace std; int main() { int N; cin >> N; int hen[3]; while (N --> 0) { cin >> hen[0] >> hen[1] >> hen[2]; sort(hen, hen + 3); if (hen[2] * hen[2] == hen[0] * hen[0] + hen[1] * hen[1]) { cout << "YES"; } else { ...
a.cc: In function 'int main()': a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'? 12 | sort(hen, hen + 3); | ^~~~ | short
s885066664
p00003
C++
#include <cstdio> #include <cstdlib> #include <cmath> #include <climits> #include <cfloat> #include <map> #include <utility> #include <set> #include <iostream> #include <memory> #include <string> #include <vector> #include <algorithm> #include <functional> #include <sstream> #include <complex> #include <stack> #include...
a.cc: In function 'int main()': a.cc:39:11: error: 'pint' {aka 'std::pair<int, int>'} is not a template 39 | queue<pint < pint > >; | ^~~~ a.cc:39:5: error: declaration does not declare anything [-fpermissive] 39 | queue<pint < pint > >; | ^~~~~~~~~~~~~~~~~~~~~
s713847622
p00003
C++
print "\n".join(s for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))]))
a.cc:1:61: warning: multi-character character constant [-Wmultichar] 1 | print "\n".join(s for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])) | ^~~~~ a.cc:1:...
s237160861
p00003
C++
a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]
a.cc:1:55: warning: multi-character character constant [-Wmultichar] 1 | a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO',[sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])] | ^~~~~ a.cc:1:64: warning: ...
s129479817
p00003
C++
#include <iostream> #include <vector> using namespace std; int main(int argc, char** argv) { int num; cin >> num; for (int i = 0; i < num; i++) { vector<int> v = vector<int>(3); cin >> v[0] >> v[1] >> v[2]; sort(v.begin(), v.end()); if (v[0] * v[0] + v[1] * v[1] == v[2] * ...
a.cc: In function 'int main(int, char**)': a.cc:14:9: error: 'sort' was not declared in this scope; did you mean 'short'? 14 | sort(v.begin(), v.end()); | ^~~~ | short
s091443206
p00003
C++
3 4 3 5 4 3 6 8 8 8
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 3 | ^
s882669484
p00003
C++
int main() { int a,b,c; int x=0; int n; cin >> n; for(int i=0 ;i<n ;i++){ cin >> a >> b >> c; if(a<b && c<b){ x=a; a=b; b=x; } else if(a<c && b<c){ x=a; a=c; c=x; } if((b*b)+(c*c) == (a*a)) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin >> n; | ^~~ a.cc:21:25: error: 'cout' was not declared in this scope 21 | cout << "YES" << endl; | ^~~~ a.cc:21:42: error: 'endl' was not decla...
s606818834
p00003
C++
#include <iostream> using namespace std; int main() { int a,b,c,n; while (cin>>n) for(int i=0;i<=n;i++) { while(cin>>a,b,c) { int asq=a*a,bsq=b*b,csq=c*c; if(asq+bsq==csq||bsq+csq==asq||
a.cc: In function 'int main()': a.cc:13:32: error: expected primary-expression at end of input 13 | if(asq+bsq==csq||bsq+csq==asq|| | ^ a.cc:13:32: error: expected ')' at end of input 13 | if(asq+bsq==csq||bsq+csq==asq|| | ~ ^ | ...
s490886842
p00003
C++
import sys N = int(sys.stdin.readline()) def check(num_list): largest = max(num_list) largest_idx = num_list.index(largest) tmp = sum([pow(x, 2) for i, x in enumerate(num_list) if i != largest_idx]) if tmp == pow(largest, 2): return "YES" else: return "NO" for i in xrange(N): ...
a.cc:1:1: error: 'import' does not name a type 1 | import sys | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
s154776780
p00003
C++
#include<iostream> #include<algorithm> using namespace std; int main(void){ int x[3]; cin >> x[1]; string n = "NO", y = "YES"; while(cin >> x[0] >> x[1] >> x[2]){ sort(x,x + 3); if(x[2] * x[2] == x[1] * x[1] + x[0] * x[0]) cout << y << endl; else cout << n << endl; i++; } return 0; }
a.cc: In function 'int main()': a.cc:15:17: error: 'i' was not declared in this scope 15 | i++; | ^
s265198031
p00003
C++
3 4 3 5 4 3 6 8 8 8
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 3 | ^
s271807575
p00003
C++
#include<stdio.h> #include<algorithm.h> #include<math.h> int main(){ int a[3]; int n; scanf("%d",&n); while(n>0){ scanf("%d %d %d",&a[0],&a[1],&a[2]); sort(a,a+3); if(a[0]*a[0] +a[1]*a[1]==a[2]*a[2]){ printf("YES\n"); }else{ printf("NO\n"); } n--; } }
a.cc:2:9: fatal error: algorithm.h: No such file or directory 2 | #include<algorithm.h> | ^~~~~~~~~~~~~ compilation terminated.
s817875174
p00003
C++
#include <iostream> int main(){ int n; int sd[3]; int max,m=-1; bool isRect=false; bool isTri=true; cin>>n; for(int i=0;i<n;++i){ cin>>sd[0]>>sd[1]>>sd[2]; //長辺の判定 max=0; for(int i=0;i<3;++i){ if(sd[i]==0){isTri=false;} if(sd[i]>max){m=i;max=sd[i]} } //直角三角形の判定 if(isTri){ switch(m){ ...
a.cc: In function 'int main()': a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 10 | cin>>n; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; /...
s207661557
p00003
C++
#include <iostream> using namespace std; int main(){ int n; int sd[3]; int max,m=-1; bool isRect=false; bool isTri=true; cin>>n; for(int i=0;i<n;++i){ cin>>sd[0]>>sd[1]>>sd[2]; //長辺の判定 max=0; for(int i=0;i<3;++i){ if(sd[i]==0){isTri=false;} if(sd[i]>max){m=i;max=sd[i]} } //直角三角形の判定 if(isT...
a.cc: In function 'int main()': a.cc:19:52: error: expected ';' before '}' token 19 | if(sd[i]>max){m=i;max=sd[i]} | ^ | ;
s564162604
p00003
C++
#include<stdio.h> #include<math.h> int main(void) { int k[1000][3],ct; int mem; scanf("%d",&ct); for(int f1=0;f1<ct;f1++){ scanf("%d %d %d",&k[f1][0],&k[f1][1],&k[f1][2]); } for(int f=0;f<ct;f++){ for(int f1=0;f1<3;f1++){ for(int f2=0;f2<3;f2++){ if(k[f][f1]>k[f][f2]){ mem=k[f][f1]; k[f][f1]=...
a.cc: In function 'int main()': a.cc:5:15: error: unable to find numeric literal operator 'operator""\U0000ff100' 5 | int k[1000][3],ct; | ^~~~~ a.cc:9:35: error: 'k' was not declared in this scope 9 | scanf("%d %d %d",&k[f1][0],&k[f1][1],&k[f1][2]); | ...
s029084077
p00003
C++
(function(undefined){ 'use strict'; (function init() { this.output = function() { console.log.apply( console, arguments ); }; this.stdin = process.openStdin(); stdin.setEncoding('utf8'); this.input_list = []; stdin.on('data', function(chunk){ var result = chunk.match(/\d+/g); input_list = input_l...
a.cc:2:9: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes 2 | 'use strict'; | ^~~~~~~~~~~~ a.cc:8:35: warning: multi-character character constant [-Wmultichar] 8 | stdin.setEncoding('utf8'); | ^~~~~~ ...
s187027907
p00003
C++
#include <stdio.h> int main() { int n,a,b,c,sum=0,i; while(scanf("%d",&n)==1) for(i=0;i<n;i++) { scanf("%d%d%d",&a,&b,&c); sum=sqrt((a*a)+(b*b)); if(c==sum) { printf("YES\n"); } else printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:11:13: error: 'sqrt' was not declared in this scope 11 | sum=sqrt((a*a)+(b*b)); | ^~~~
s913310875
p00003
C++
using System; class Program { static bool checking(int[] a) { return (a[0] + a[1] == a[2] || a[1] + a[2] == a[0] || a[2] + a[0] == a[1]); } static int Main() { int[] a = new int[3]; int inp,n; string[] str; string result; n = int.Parse(Console.Re...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:5:32: error: expected ',' or '...' before 'a' 5 | static bool checking(int[] a) | ^ a.cc:43:2: error: expected ';' after class definition 43 | } | ^ ...
s665241324
p00003
C++
#include <cstdio> int main(){ int n; int a[3]; scanf("%d",&n); for (int i=0;i<n;++i){ for (int j=0;j<3;++j) scanf("%d",a+j); bool z=false; for (int k=0;k<3;++k) if (a[k]*a[k]+a[(k+1)%3]*a[(k+1)%3]==a[(k+2)%3]*a[(k+2)%3]) z=true; if (z) print("YES\n"); else print("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:14:24: error: 'print' was not declared in this scope; did you mean 'printf'? 14 | if (z) print("YES\n"); | ^~~~~ | printf a.cc:15:22: error: 'print' was not declared in this scope; did you mean 'printf'? ...
s461151415
p00003
C++
#include <iostream> using namespace std; int right_triangle(int a,int b,int c) { if ( a == sqrt(pow(b,2)+pow(c,2)) || b == sqrt(pow(c,2)+pow(a,2)) || c == sqrt(pow(a,2)+pow(b,2))) return 1; else return 0; } int main() { int a[3],n; cin >> n; for(int j=0;j<=n-1;j++){ for(int i=0;i<=2;i++) ...
a.cc: In function 'int right_triangle(int, int, int)': a.cc:6:26: error: 'pow' was not declared in this scope 6 | if ( a == sqrt(pow(b,2)+pow(c,2)) | ^~~ a.cc:6:21: error: 'sqrt' was not declared in this scope 6 | if ( a == sqrt(pow(b,2)+pow(c,2)) | ...
s703020350
p00003
C++
int main(void) { int a,b,c,i,k; int sort[3]; int num; int max,mid,min; int d=1,n=3; num<=1000; scanf("%d",&num); while(d<=num){ scanf("%d %d %d",&sort[0],&sort[1],&sort[2]); for(n=3;n<=1;n--){ for(i=0;i<=n-1;i++){ if(sort[i]>sort[i+1]){ k=sort[i]; sort[i]=sort[i+1]; sort[i+...
a.cc: In function 'int main()': a.cc:10:9: error: 'scanf' was not declared in this scope 10 | scanf("%d",&num); | ^~~~~ a.cc:28:25: error: 'printf' was not declared in this scope 28 | printf("YES\n"); | ^~~~~~ a.cc:1:1: note: 'printf' is ...
s278797729
p00003
C++
#include <iostream> using namespace std; int main(){ int t, n[3]; cin >> t; while(t--){ cin >> n[0] >> n[1] >> n[2]; sort( n, n+2); for(int i=0;i<3;i++) n[i]*=n[i]; if(n[2]-n[0]-n[1]) cout << "NO" <<endl; else cout << "YES" <<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( n, n+2); | ^~~~ | short
s198619392
p00003
C++
#Include <iostream> #include <vector> #include <map> #include <set> #include <algorithm> #include <numeric> #include <cmath> using namespace std; typedef vector<int> VI; #define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i ) int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); v...
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include? 1 | #Include <iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:13:10: error: 'std::ios' has not been declared 13 | std::ios::sync_with_stdio(false); | ^~~ a.cc:14:10: error: 'cin' ...
s682148989
p00003
C++
#Include <iostream> #include <vector> #include <map> #include <set> #include <algorithm> #include <numeric> #include <cmath> using namespace std; typedef vector<int> VI; #define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i ) int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); v...
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include? 1 | #Include <iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:13:10: error: 'std::ios' has not been declared 13 | std::ios::sync_with_stdio(false); | ^~~ a.cc:14:10: error: 'cin' ...
s942516731
p00003
C++
#Include <iostream> #include <vector> #include <map> #include <set> #include <algorithm> #include <numeric> #include <cmath> using namespace std; typedef vector<int> VI; #define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i ) int main() { ios::sync_with_stdio(false); cin.tie(0); vector<vect...
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include? 1 | #Include <iostream> | ^~~~~~~ | include a.cc: In function 'int main()': a.cc:13:5: error: 'ios' has not been declared 13 | ios::sync_with_stdio(false); | ^~~ a.cc:14:5: error: 'cin' was not declared ...
s067280720
p00003
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; bool check_triangle(int a, int b, int c); int main() { int n; int a,b,c; cin >> n; for(int i=0;i<n;i++) { cin >> a >> b >> c; if (check_triangle(a,b,c)) cout << "YES" << endl; else cout << "NO" << endl; } return 0; } b...
a.cc:33:50: error: extended character   is not valid in an identifier 33 | if (edges[0]*edges[0] + edges[1]*edges[1] == edges[2]*edges[2]) | ^ a.cc: In function 'bool check_triangle(int, int, int)': a.cc:33:50: error: expected ')' before '\U00003000' ...
s732418072
p00003
C++
#include <stdio.h> #include <algorithm.h> int main() { int n[3],t; scanf("%d", &t); while(t!=0){ scanf("%d %d %d", &n[0],&n[1], &n[2]); sort(n,n+3); if((n[0]*n[0] + n[1]*n[1]) == n[2]*n[2]) printf("YES\n"); else printf("NO\n"); t--; } return 0; }
a.cc:2:10: fatal error: algorithm.h: No such file or directory 2 | #include <algorithm.h> | ^~~~~~~~~~~~~ compilation terminated.
s701110171
p00003
C++
include <iostream> #include <cmath> #include <vector> #include <algorithm> #define upper 1000 #define lower 1 #define eN 1000 using namespace std; bool check(int e1, int e2, int e3){ if (((e1*e1)+(e2*e2)) == (e3*e3)){ return true; } else{ false; } } int main(void){ int N; cin >> N; vector<bool> result; ...
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/cmath:45, from a.cc:2: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 1...
s359037466
p00003
C++
#include <iostream> int main() { int n; std::cin >> n; for (int i = 0; i < n; ++i) { int a, b, c; std::cin >> a >> b >> c; if (a * a + b * b == c * c || a * a + c * c == b * b || b * b + c * c = a * a) std::cout << "YES" << std::endl; ...
a.cc: In function 'int main()': a.cc:13:17: error: lvalue required as left operand of assignment 11 | if (a * a + b * b == c * c | ~~~~~~~~~~~~~~~~~~~~~~ 12 | || a * a + c * c == b * b | ~~~~~~~~~~~~~~~~~~~~~~~~~ 13 | || b * b + c ...
s669099324
p00003
C++
nt main(){scanf("%*d");for(int a,b,c;~scanf("%d%d%d",&a,&b,&c);puts(b+c-a?a+c-b?a+b-c?"NO":"YES":"YES":"YES")){a*=a;b*=b;c*=c;}}
a.cc:1:1: error: 'nt' does not name a type; did you mean 'int'? 1 | nt main(){scanf("%*d");for(int a,b,c;~scanf("%d%d%d",&a,&b,&c);puts(b+c-a?a+c-b?a+b-c?"NO":"YES":"YES":"YES")){a*=a;b*=b;c*=c;}} | ^~ | int
s677555092
p00003
C++
#include <stdio.h> void main(){ int a, b, c, N, i; scanf("%d",&N); for(i = 0; i < N; i++){ scanf("%d %d %d",&a, &b, &c); if(chk(a, b, c)) printf("YES\n"); else printf("NO\n"); } } int chk(int a, int b, int c){ int x; if(a >= b){ x = a; a = b; b = x; } if(b >= c){ x = b; b = c; c = x; } ...
a.cc:3:1: error: '::main' must return 'int' 3 | void main(){ | ^~~~ a.cc: In function 'int main()': a.cc:9:20: error: 'chk' was not declared in this scope 9 | if(chk(a, b, c)) printf("YES\n"); | ^~~
s494991420
p00003
C++
#include <iostream> #include <cstdio> using namespace std; int main(){ int N,i,a,b,c; scanf("%d",&N); for(i = 0;i<N;i++){ cin >> a >> b >> c; a*=a; b*=b; c*=c; if(a+b==c||b+c==a||a+c==b)cout << "YES" << endl; else cout << "NO" << endl;
a.cc: In function 'int main()': a.cc:15:31: error: expected '}' at end of input 15 | else cout << "NO" << endl; | ^ a.cc:9:21: note: to match this '{' 9 | for(i = 0;i<N;i++){ | ^ a.cc:15:31: error: expected '}' at end of input 15 | else c...
s924419482
p00003
C++
#include <iostream> #include <cmath> #include <cstdio> using namespace std; int main(){ int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ a*=a; b*=b; c*=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:15:12: error: expected '}' at end of input 15 | return 0; | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s835545429
p00003
C++
#include <iostream> #include <cmath> #include <cstdio> using namespace std; int main(){ int a,b,c; while(scanf("%d %d %d",&a,&b,&c)){ a*=a; b*=b; c*=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:15:12: error: expected '}' at end of input 15 | return 0; | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s889365563
p00003
C++
#include <cstdio> using namespace std; int main(){ int N,i,a,b,c; scanf("%d",&N); for(i = 0;i<N;i++){ cin >> a >> b >> c; a*=a; b*=b; c*=c; if(a+b==c||b+c==a||a+c==b)cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:5: error: 'cin' was not declared in this scope 9 | 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 | using...
s322897128
p00003
C++
#include <iostream> #include <cmath> #define REP(i,n) for(int i=0;i<n;i++) using namespace std; int main() { int a,b,c; int N; cin >> N; REP(i,N) { cin >> a >> b >> c; if (a*a+b*b=c*c) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:16: error: lvalue required as left operand of assignment 13 | if (a*a+b*b=c*c) cout << "YES" << endl; | ~~~^~~~
s429535829
p00003
C++
#include <iostream> #include <cmath> #define REP(i,n) for(int i=0;i<n;i++) using namespace std; int main() { int a,b,c,N; priority_queue< double, vector<double>, greater<double> > que; cin >> N; REP(i,N) { cin >> a >> b >> c; que.push(a);que.push(b);que.push(c); c=que.top(); ...
a.cc: In function 'int main()': a.cc:9:5: error: 'priority_queue' was not declared in this scope 9 | priority_queue< double, vector<double>, greater<double> > que; | ^~~~~~~~~~~~~~ a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue...
s477842126
p00003
C++
#include <iostream> #include <cmath> #define REP(i,n) for(int i=0;i<n;i++) using namespace std; int main() { int a,b,c,N; priority_queue< int, vector<int>, greater<int> > que; cin >> N; REP(i,N) { cin >> a >> b >> c; que.push(a);que.push(b);que.push(c); c=que.top(); que....
a.cc: In function 'int main()': a.cc:9:5: error: 'priority_queue' was not declared in this scope 9 | priority_queue< int, vector<int>, greater<int> > que; | ^~~~~~~~~~~~~~ a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>' 2 ...
s048023483
p00003
C++
#include <iostream> #include <cmath> #define REP(i,n) for(int i=0;i<n;i++) using namespace std; int main() { double a,b,c,N; priority_queue< double, vector<double>, greater<double> > que; cin >> N; REP(i,N) { cin >> a >> b >> c; que.push(a);que.push(b);que.push(c); c=que.top(); ...
a.cc: In function 'int main()': a.cc:9:5: error: 'priority_queue' was not declared in this scope 9 | priority_queue< double, vector<double>, greater<double> > que; | ^~~~~~~~~~~~~~ a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue...
s335700982
p00003
C++
#include <iostream> #include <cmath> #define REP(i,n) for(int i=0;i<n;i++) using namespace std; int main() { double a,b,c,N; priority_queue< double, vector<double>, greater<double> > que; cin >> N; REP(i,N) { cin >> a >> b >> c; que.push(a);que.push(b);que.push(c); a=que.top(); ...
a.cc: In function 'int main()': a.cc:9:5: error: 'priority_queue' was not declared in this scope 9 | priority_queue< double, vector<double>, greater<double> > que; | ^~~~~~~~~~~~~~ a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue...
s654954267
p00003
C++
#include <iostream> #include <cmath> using namespace std; int main() { double a,b,c,N; priority_queue< double, vector<double>, greater<double> > que; cin >> N; for(int i=0;i<N;i++) { cin >> a >> b >> c; que.push(a); que.push(b); que.push(c); a=que.top(); ...
a.cc: In function 'int main()': a.cc:8:5: error: 'priority_queue' was not declared in this scope 8 | priority_queue< double, vector<double>, greater<double> > que; | ^~~~~~~~~~~~~~ a.cc:3:1: note: 'std::priority_queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue...
s192975777
p00003
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace P0003_Is_it_a_Right_Triangle { class Program { static void Main(string[] args) { List<string> lines = new List<string>(); int cntLine = int.Parse(Console.ReadLine()); ...
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.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s266180620
p00003
C++
#include <stdio.h> #include <math.h> int main(void){ int a,b,c; scanf("%d",&a) while(scanf("%d%d%d",&a,&b,&c)>0)printf(a*a+b*b==c*c?"YES\n":"NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:5:19: error: expected ';' before 'while' 5 | scanf("%d",&a) | ^ | ; 6 | while(scanf("%d%d%d",&a,&b,&c)>0)printf(a*a+b*b==c*c?"YES\n":"NO\n"); | ~~~~~
s005093628
p00003
C++
#include <stdio.h> int main(){ int i,j; int a,b,c; int tmp; scanf("%d\n",&j); for(i=0;i<j;i++){ scanf("%d %d %d\n",&a,&b,&c); if(a>b){ tmp = a; a=b; b=tmp; } if(b>c){ tmp=b; b=c; c=tmp; } if(c*c=a*a+b*b){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
a.cc: In function 'int main()': a.cc:22:21: error: lvalue required as left operand of assignment 22 | if(c*c=a*a+b*b){ | ~^~
s332872503
p00003
C++
#include <iostream> using namespace std; int main(void){ int n; int triangle[3]; cin >> n; while(n--){ for( int i = 0 ; i < 3 ; i++ ){ cin >> triangle[i]; } sort( triangle , triangle + 3 ); if( triangle[2] * triangle[2] == triangle[1] * triangle[1] + triangle[0] * triangle[0] ) cout << "YES...
a.cc: In function 'int main()': a.cc:18:3: error: 'sort' was not declared in this scope; did you mean 'short'? 18 | sort( triangle , triangle + 3 ); | ^~~~ | short
s870501592
p00003
C++
#include"iostream" using namespace std; int main() { int n; cin>>n; while(n--) { int a,b,c; cin>>a>>b>>c; if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a)cout<<"YES"<<endl; else cou<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:12:22: error: 'cou' was not declared in this scope 12 | else cou<<"NO"<<endl; | ^~~
s390608545
p00003
C++
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main() { int n; cin >> n; vector <int>a; for(int i=0;i<n;i++){ for(int j=0,j<3,j++){ int temp; cin >> temp; a.push_back(temp); sort(a.begin(),a.end()); } if(a[1]*a[1]+a[2]*a[2]>=a[3]*a[3]){ cout<< "YES" << endl;...
a.cc: In function 'int main()': a.cc:13:30: error: expected ';' before '<' token 13 | for(int j=0,j<3,j++){ | ^ | ; a.cc:13:30: error: expected primary-expression before '<' token a.cc:13:36: error: expected ';' before ')' token ...
s422749590
p00003
C++
#include<iostream> #include<algorithm> using namespace std; int main() { int n; cin >> n; for(int i=0;i<n;i++){ int a,b,c,max,min,mid; cin >> a >> b >> c; max(a,b,c)=max; min(a,b,c)=min; if(a!=max&&a!=min){ a=mid; }if(b!=max&&b!=min){ b=mid; }if(c!=max&&c!=min){ c=mid; } if(...
a.cc: In function 'int main()': a.cc:13:28: error: 'max' cannot be used as a function 13 | max(a,b,c)=max; | ~~~^~~~~~~ a.cc:14:28: error: 'min' cannot be used as a function 14 | min(a,b,c)=min; | ~~~^~~~~~...
s810966393
p00003
C++
#include <cstdio> #include <iostream> #include <cmath> #define ll long long using namespace std; int mian() { ll T,t,num,a,b,c,A,B,C; cin>>T; for( t=1; t<=T; t++) { cin>>a>>b>>c; A=(ll)pow(a,2); B=(ll)pow(b,2); C=(ll)pow(c,2); if( ((a+b)>c) && ((b+c)>a) && ((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
s593901666
p00003
C++
#include <iostream> using namespace std; int main(){ int a,b,c,n,t; cin>>n; for(int i=0;i<n;i++){ cin>>a>>b>>c; if(a<b){ t=a; a=b; b=t; } if(a<c){ t=a; a=c; c=t; } cout<<a*a==b*b+c*c ? "YES\n" : "NO\n"; } return 0; }
a.cc: In function 'int main()': a.cc:19:26: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 19 | cout<<a*a==b*b+c*c ? "YES\n" : "NO\n"; | ~~~~~~~~~^~~~~~~~~ | | | | | in...
s641187553
p00003
C++
#include <iostream> using namespace std; int main(){ int n; cin >> n; while( n-- ){ int a,b,c; cin >> a >> b >> c; if(a == b && b == c)cout << "YES"; else cout << "NO"; cout << endl; } return 0;
a.cc: In function 'int main()': a.cc:14:12: error: expected '}' at end of input 14 | return 0; | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s710929047
p00003
C++
#include <iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; for(int i=0;i<a;i++){ cin>>b>>c>>d; if(a*a==b*b+c*c){ cout<<YES<<endl;} else if(b*b==a*a+c*c){ cout<<YES<<endl;} else if(c*c==a*a+b*b){ cout<<YES<<endl;} else { cout<<NO<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:9:7: error: 'YES' was not declared in this scope 9 | cout<<YES<<endl;} | ^~~ a.cc:11:7: error: 'YES' was not declared in this scope 11 | cout<<YES<<endl;} | ^~~ a.cc:13:7: error: 'YES' was not declared in this scope 13 | cout<<YES<<endl;} | ...
s118402481
p00003
C++
YES = "YES" NO = "NO" def sq(x) return x * x end gets.to_i.times do puts ->(l){ if sq(l[0]) + sq(l[1]) == sq(l[2]) return YES elsif sq(l[1]) + sq(l[2]) == sq(l[0]) return YES elsif sq(l[2]) + sq(l[0]) == sq(l[1]) return YES end return NO }.call gets.split(' ').map(&:to_i) end
a.cc:1:1: error: 'YES' does not name a type 1 | YES = "YES" | ^~~ a.cc:18:10: error: expected unqualified-id before '.' token 18 | }.call gets.split(' ').map(&:to_i) | ^
s673429933
p00003
C++
#include <iostream> using namespace std; int main(){ int ans=0; int N,a,b,c; cin>>N; for(int i=0;i<N;i++){ cin>>a>>b>>c; if(a*a==b*b+c*c){ ans+=ans;} else if(b*b==a*a+c*c){ ans+=ans;} else if(c*c==a*a+b*b){ ans+=ans;} if(ans>0){ cout<"<YES"<<endl;} else{ cout<<"NO"<<endl;} } return 0; }
a.cc: In function 'int main()': a.cc:16:12: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<' 16 | cout<"<YES"<<endl;} | ~~~~~~^~~~~~
s705874069
p00003
C++
#incude <iostream> using namespace std; int N,a,b,c; int main(){ cin >> N; for(int i = 0; i < N; i++){ cin >> a >> b >> c; if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a){ cout << "YES" << endl; }else{ cout << "NO" << endl; } } }
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include? 1 | #incude <iostream> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:7:3: error: 'cin' was not declared in this scope 7 | cin >> N; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>...
s233242315
p00003
C++
timel = int(raw_input()) for gomi in xrange(timel): a,b,c = map(lambda x: int(x)**2, raw_input().split()) if a+b==c or b+c==a or c+a==b: print "YES" else: print "NO"
a.cc:1:1: error: 'timel' does not name a type 1 | timel = int(raw_input()) | ^~~~~
s228585953
p00003
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int n; cin >> n; for(int i = 0; i < 3; i++){ vector<int> vec; int a, b, c; cin >> a >> b >> c; vec.push_back(a); vec.push_back(b); vec.push_back(c); sort( vec.begin(), vec.end() ); if(vec[0] + vec[1] >vec[2])...
a.cc: In function 'int main()': a.cc:22:18: error: expected '}' at end of input 22 | } | ^ a.cc:9:35: note: to match this '{' 9 | for(int i = 0; i < 3; i++){ | ^ a.cc:22:18: error: expected '}' at end of input 22 | ...
s681549383
p00003
C++
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int n; cin >> n; for(int i = 0; i < 3; i++){ vector<int> vec; int a, b, c; cin >> a >> b >> c; vec.push_back(a); vec.push_back(b); vec.push_back(c); sort( vec.begin(), vec.end() ); if(vec[0] + vec[1] >vec[2])...
a.cc: In function 'int main()': a.cc:22:18: error: expected '}' at end of input 22 | } | ^ a.cc:9:35: note: to match this '{' 9 | for(int i = 0; i < 3; i++){ | ^ a.cc:22:18: error: expected '}' at end of input 22 | ...
s967811589
p00003
C++
#include <iostream> int main(void){ int n,a,b,c; std::cin>>n; for (;n--;){ std::cin>>a>>b>>c; if (a>b) swap(a,b); if (b>c) swap(b,c); if (a*a+b*b==c*c) std::cout<<"YES\n"; else std::cout<<"NO\n"; } }
a.cc: In function 'int main()': a.cc:7:26: error: 'swap' was not declared in this scope 7 | if (a>b) swap(a,b); | ^~~~ a.cc:7:26: note: suggested alternatives: In file included from /usr/include/c++/14/bits/memory_resource.h:47, from /usr/include/c++/1...
s263994689
p00003
C++
#include <iostream> #include <conio.h> using namespace std ; bool solve(int x,int y,int z) ; bool ans = false ; int main() { int N ; cin >> N ; bool ans = false ; for( int i = 0 ; i < N ; i ++ ) { int a,b,c ; cin >> a >> b >> c ; if( a > b ) { if( a > c ) // 最大値はa { ans = solve(a,b,c) ; ...
a.cc:2:10: fatal error: conio.h: No such file or directory 2 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s260305417
p00003
C++
#include <iostream> #include <conio.h> using namespace std ; int N ; int a,b,c,x,y,z ; int main() { cin >> N ; while( N > 0 ) { cin >> a >> b >> c ; x = max( a, max( b, c ) ) ; y = min( a, max( b, c ) ) ; z = min( a, min( b, c ) ) ; if( (x*x) == ((y*y) + (z*z) ) ) { cout << "YES" << endl ; } ...
a.cc:2:10: fatal error: conio.h: No such file or directory 2 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s528638764
p00003
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include<iostream> using namespace std; int main(){ int a,b,c,i; cin >> i; for(int n = 0;n < i;n++){ cin >> a >> b >> c; if(a*a == b * b + c * c){ cout << "YES" << endl; } else if(b*b == a * a + c * c){ cout << "YES" << endl; } else if(c*c == b ...
a.cc:2:1: error: expected unqualified-id before numeric constant 2 | 1 | ^ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a...
s818326738
p00003
C++
#include <iostream> #include <string> #include <cstdlib> using namespace std; int stoi( const std::string& str, size_t *pos = 0, int base = 10 ) { return std::strtol(str.c_str(), pos, base); } struct triangle { triangle() { leg1 = leg2 = leg3 = 0; } bool isHyp() { if (leg1*leg1 + leg2*leg2...
a.cc: In function 'int stoi(const std::string&, size_t*, int)': a.cc:7:37: error: cannot convert 'size_t*' {aka 'long unsigned int*'} to 'char**' 7 | return std::strtol(str.c_str(), pos, base); | ^~~ | | | ...
s963955712
p00003
C++
#include<iostream> #include<queue> using namespace std; int main() { priority_queue<int> que; int n; cin>>n; fot(int i=0;i<n;i++) { int a,b,c; for(int j=0;j<3;j++) { cin>>a; que.push(a); } a=que.top(); que.pop(); b=que.top() que.pop(); c=que.top() que.pop(); if(a-b<c) cout<<"YES"<<endl; else cout<<"NO"<<endl; } return...
a.cc: In function 'int main()': a.cc:10:5: error: expected primary-expression before 'int' 10 | fot(int i=0;i<n;i++) | ^~~ a.cc:10:13: error: 'i' was not declared in this scope 10 | fot(int i=0;i<n;i++) | ^
s864528091
p00003
C++
#include <stdio.h> #include <string.h> typedef struct{ int m[3]; }triangle; int main( void ){ triangle *tri; int e; scanf( "%d",&e ); if(( tri = ( triangle * ) malloc( sizeof( triangle ) * e )) == NULL ) return -1; for( int i = 0;i < e;i++ )scanf( "%d %d %d", ...
a.cc: In function 'int main()': a.cc:13:31: error: 'malloc' was not declared in this scope 13 | if(( tri = ( triangle * ) malloc( sizeof( triangle ) * e )) == NULL ) return -1; | ^~~~~~ a.cc:3:1: note: 'malloc' is defined in header '<cstdlib>'; this is probably fixable by addi...
s825481011
p00003
C++
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct{ int m[3]; }triangle; int main( void ){ triangle *tri; int e; scanf( "%d",&e ); if(( tri = ( triangle * ) malloc( sizeof( triangle ) * e )) == NULL ) return -1; for( int i = 0;i < e;i++ )scanf( "%d %d %d", ...
a.cc: In function 'int main()': a.cc:21:34: error: expected primary-expression before '>' token 21 | if( tri[i].m[j] => tri[i].m[j+1] ){ | ^
s106913498
p00003
C++
include <iostream> using namespace std; int main() { int a, b, c, d, e; int ans; cin >> d; for(int i = 0; i < d; i++) { cin >> a >> b >> c; if(a > b && a > c) { e = c; c = a ; ans = c * c - e * e - b * b; if(ans == 0) { cout << "YES" << endl; } else {...
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:9:9: error: 'cin' was not declared in this scope 9 | cin >> d; | ^~~ a.cc:22:41: error: 'cout' was not declared in this scope 22 | ...
s099528255
p00003
C++
#include <iostream> #include <algorithm> #include <cmath> using namespace std; int main(){ int abc[3], N; cin << N; for(int i = 0; i < N; i++){ cin >> abc[0] >> abc[1] >> abc[2]; while(!(((abc[0] >= 1)&&(abc[0] <= 1000))&& ((abc[1] >= 1)&&(abc[1] <= 1000))&& ((abc[2] >= 1)&&(abc[2] <= 1000)))){ cout ...
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 8 | cin << N; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.c...
s806657174
p00003
C++
#include <iostream> #include <vector> bool check_right_triangle(int a, int b, int c) { if(a * a == b * b + c * c || b * b == c * c + a * a || c * c == a * a + b * b) return true; else return false; } int main() { const int max_num_of_data = 1000; const int min = 1; const int max = 1000; ...
a.cc: In function 'int main()': a.cc:30:45: error: expected ';' before 'std' 30 | if(check_right_triangle(a, b, c) | ^ | ; 31 | std::cout << "Yes" << std::endl; | ~...
s910731205
p00003
C++
int main(){ int n; cin>>n; int hen1,hen2,hen3,saidai; for(int i=0;i<n;i++){ cin>>hen1>>hen2>>hen3; saidai=hen1; if(saidai<hen2){ saidai=hen2; hen2=0; } else if(saidai<hen3){ saidai=hen3; hen3=0; } else if(saidai==hen1) hen1=0; if(saidai*saidai==hen1*hen1+hen2*hen2+hen3*hen3) cout<<"YES"<<"\n";...
a.cc: In function 'int main()': a.cc:3:9: error: 'cin' was not declared in this scope 3 | cin>>n; | ^~~ a.cc:21:17: error: 'cout' was not declared in this scope 21 | cout<<"YES"<<"\n"; | ^~~~ a.cc:23:17: error: 'cout' was not declared in this scope 2...
s112440630
p00003
C++
#include<iostream> using namespace std; int main() { int a,b,c,n,t; cin >> n; for(i=0;i<n,i++) { cin >> a >> b >> c; if(a>b) { t = a; a = b; b = t; } if(a>c) { t = a; a = c; c = t; } if(b>c) {...
a.cc: In function 'int main()': a.cc:7:7: error: 'i' was not declared in this scope 7 | for(i=0;i<n,i++) | ^ a.cc:7:18: error: expected ';' before ')' token 7 | for(i=0;i<n,i++) | ^ | ;
s700807279
p00004
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNextInt()) { double a = scan.nextDouble(); double b = scan.nextDouble(); double c = scan.nextDouble(); doubl...
Main.java:25: error: illegal character: '\u3000' ??????????????///?db-ae)y???? ^ Main.java:25: error: illegal character: '\u3000' ??????????????///?db-ae)y???? ^ Main.java:25: error: illegal character: '\u3000' ??????????????///?db-ae)y???? ^ Main.java:25: error: illegal character: '\u3000' ??????????????///?db-ae)y...