submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s492334291
p00003
C
#include<stdio.h> int main(void){ int n1, n2, n3, m; scanf("%d",&m); for(i = 0;i < m;i++) { scanf("%d %d %d",&n1,&n2,&n3); if(n1 * n1 + n2 * n2 = n3 * n3) printf("YES"); else printf("NO"); } return 0; }
main.c: In function 'main': main.c:6:9: error: 'i' undeclared (first use in this function) 6 | for(i = 0;i < m;i++) { | ^ main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in main.c:8:30: error: lvalue required as left operand of assignment 8 | if(n1 * n1 + n2 * n2 = n3 * n3) | ^
s328798885
p00003
C
#include<iostream> using namespace std; int main(){ int a,b,c,d,s,t,n,i; cin >> n; for(i=0;i<n;i++){ cin >> a >> b >> c; if(a<b){ d=b; b=a; a=d; }if(b<c){ d=c; c=b; b=d; }if(a<b){ d=b; b=a; a=d; } s=a*a; t=(b*b)+(c*c); if(s==t){ cout << "Yes"<< endl; }else { cout << "No" << endl; } } return 0; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s346027634
p00003
C
#include<stdio.h> #include<conio.h> int main() { int n,i,a,b,c; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d%d%d",&a,&b,&c); if(a*a==b*b+c*c||b*b==c*c+a*a||c*c==a*a+b*b) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s564455294
p00003
C
#include<stdio.h> #include<conio.h> int main() { int n,i,a,b,c; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d%d%d",&a,&b,&c); if(a*a==b*b+c*c||b*b==c*c+a*a||c*c==a*a+b*b) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s591190464
p00003
C
#include <stdio.h> #include <math.h > int main(void) { int a, b, c, t, x, y; t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } if(t<=c){ t = c ; x = a ; y = b; } if(t==sqrt(pow(x)+pow(y)){ printf("YES") } else{ printf("NO") } return 0; }
main.c:2:10: fatal error: math.h : No such file or directory 2 | #include <math.h > | ^~~~~~~~~ compilation terminated.
s505002688
p00003
C
#include <stdio.h> #include <math.h > int main(void) { int a, b, c, t, x, y; t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } if(t<=c){ t = c ; x = a ; y = b; } if(t==sqrt(pow(x)+pow(y)){ printf("YES"); } else{ printf("NO"); } return 0; }
main.c:2:10: fatal error: math.h : No such file or directory 2 | #include <math.h > | ^~~~~~~~~ compilation terminated.
s609464323
p00003
C
#include <stdio.h> #include <math.h > int main(void) { int a, b, c, t, x, y; t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } if(t<=c){ t = c ; x = a ; y = b; } if(t==sqrt(pow(x)+pou(y))){ printf("YES"); } else{ printf("NO"); } return 0; }
main.c:2:10: fatal error: math.h : No such file or directory 2 | #include <math.h > | ^~~~~~~~~ compilation terminated.
s147460779
p00003
C
#include <stdio.h> #include <math.h > int main(void) { int a, b, c, t, x, y; t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } if(t<=c){ t = c ; x = a ; y = b ; } x = pow(x); y = pow(y); if(t==sqrt(x+y)){ printf("YES"); } else{ printf("NO"); } return 0; }
main.c:2:10: fatal error: math.h : No such file or directory 2 | #include <math.h > | ^~~~~~~~~ compilation terminated.
s937820604
p00003
C
#include <stdio.h> #include <math.h> int main(void) { int a, b, c, t, x, y; t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } if(t<=c){ t = c ; x = a ; y = b ; } x = pow(x); y = pow(y); if(t==sqrt(x+y)){ printf("YES"); } else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:12:13: error: too few arguments to function 'pow' 12 | x = pow(x); y = pow(y); | ^~~ In file included from /usr/include/features.h:523, from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from main.c:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here 173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~ main.c:12:25: error: too few arguments to function 'pow' 12 | x = pow(x); y = pow(y); | ^~~ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here 173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~
s133982753
p00003
C
#include <stdio.h> #include <math.h> int main(void) { int a, b, c, t, x, y; scanf("%d %d %d",&a,%b,&c); t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } else{} if(t<=c){ t = c ; x = a ; y = b ; } else{} t = pow(t,2) ;x = pow(x,2); y = pow(y,2); if(t==sqrt(x+y)){ printf("YES"); } else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:6:29: error: expected expression before '%' token 6 | scanf("%d %d %d",&a,%b,&c); | ^
s642939346
p00003
C
#include <stdio.h> #include <math.h> int main(void) { int a, b, c, t, x, y; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); t = a ; x = b ; y = c; if(t<=b){ t = b ; x = c ; y = a ; } else{} if(t<=c){ t = c ; x = a ; y = b ; } else{} t = pow(t,2) ;x = pow(x,2); y = pow(y,2); if(t==sqrt(x+y)){ printf("YES"); } else{ printf("NO"); } return 0;
main.c: In function 'main': main.c:25:9: error: expected declaration or statement at end of input 25 | return 0; | ^~~~~~
s164932107
p00003
C
#include<iostream> using namespace std; void rate() { int x, y, z; cin >> x >> y >> z; if (x*x + y*y == z*z || y*y + z*z == x*x || z*z + x*x == y*y) { cout << "YES\n"; } else { cout << "NO\n"; } } int main() { int i, k; cin >> k; for (i = 1; i <= k; i = i + 1) { rate(); } return 0; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s621897726
p00003
C
#include<stdio.h> int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ if(((a*a)+(b*b)=(c*c))||((a*a)+(c*c)=(b*b))||((b*b)+(c*c)=(a*a))){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:6:24: error: lvalue required as left operand of assignment 6 | if(((a*a)+(b*b)=(c*c))||((a*a)+(c*c)=(b*b))||((b*b)+(c*c)=(a*a))){ | ^ main.c:6:45: error: lvalue required as left operand of assignment 6 | if(((a*a)+(b*b)=(c*c))||((a*a)+(c*c)=(b*b))||((b*b)+(c*c)=(a*a))){ | ^ main.c:6:66: error: lvalue required as left operand of assignment 6 | if(((a*a)+(b*b)=(c*c))||((a*a)+(c*c)=(b*b))||((b*b)+(c*c)=(a*a))){ | ^
s705220795
p00003
C
#include <stdio.h> int main(void) { int N,i,a,b,c; scanf("%d\n",&N); for(i=0;i<n;i++){ scanf("%d %d %d", &a, &b, &c); if(a>b && a>c){ if(a*a == b*b+c*c){ printf("YES\n"); }else{ printf("NO\n"); } }else if(b>a && b>c){ if(b*b == a*a+c*c){ printf("YES\n"); }else{ printf("NO\n"); } }else{ if(c*c == b*b + a*a){ printf("YES\n"); }else{ printf("N0\n"); } } } return 0; }
main.c: In function 'main': main.c:6:19: error: 'n' undeclared (first use in this function) 6 | for(i=0;i<n;i++){ | ^ main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
s900273369
p00003
C
#include <stdio.h> #include <math.h> void right_triangle(int, int, int); int main(){ int N, a, b, c; scanf("%d", &N); while(scanf("%d %d %d", &a, &b, &c) != EOF){ right_triangle(a, b, c); } return 0; } void right_triangle(int x, int y, int z){ int tmp; if(x > z){ //sort tmp = z; z = x; x = tmp; } if(y > z){ tmp = z; z = y; y = tmp;cle } if(z == (int)sqrt((double)x*x+y*y)){ printf("YES\n"); }else{ printf("NO\n"); } }
main.c: In function 'right_triangle': main.c:25:25: error: 'cle' undeclared (first use in this function) 25 | y = tmp;cle | ^~~ main.c:25:25: note: each undeclared identifier is reported only once for each function it appears in main.c:25:28: error: expected ';' before '}' token 25 | y = tmp;cle | ^ | ; 26 | } | ~
s024652356
p00003
C
#include <stdio.h> int main(){ int N=0; int a,b,c,i; int max=0; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d %d %d",&a,&b,&c); if(a>b&&a>c){ max=a; if(max*max=b*b+c*c){ printf("%s","YES"); }else{ printf("%s","NO"); } }else if(b>a&&b>c){ max=b; if(max*max=a*a+c*c){ printf("%s","YES"); }else{ printf("%s","NO"); } }else{ max=c; if(max*max=b*b+a*a){ printf("%s","YES"); }else{ printf("%s","NO"); } } } return 0; }
main.c: In function 'main': main.c:13:23: error: lvalue required as left operand of assignment 13 | if(max*max=b*b+c*c){ | ^ main.c:20:23: error: lvalue required as left operand of assignment 20 | if(max*max=a*a+c*c){ | ^ main.c:27:23: error: lvalue required as left operand of assignment 27 | if(max*max=b*b+a*a){ | ^
s417645132
p00003
C
#include<stdio.h> int main(){ int a,b,c,n,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a*a+b*b=c*c) printf("Yes\n"); else if(b*b+c*c=a*a) printf("Yes\n"); else if(a*a+c*c=b*b) printf("Yes\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:10:18: error: lvalue required as left operand of assignment 10 | if(a*a+b*b=c*c) printf("Yes\n"); | ^ main.c:11:23: error: lvalue required as left operand of assignment 11 | else if(b*b+c*c=a*a) printf("Yes\n"); | ^ main.c:12:23: error: lvalue required as left operand of assignment 12 | else if(a*a+c*c=b*b) printf("Yes\n"); | ^
s078335015
p00003
C
#include<stdio.h> int main(){ int a,b,c,n,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a*a+b*b=c*c){ printf("Yes\n"); } else if(b*b+c*c=a*a){ printf("Yes\n"); } else if(a*a+c*c=b*b){ printf("Yes\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:10:18: error: lvalue required as left operand of assignment 10 | if(a*a+b*b=c*c){ | ^ main.c:13:23: error: lvalue required as left operand of assignment 13 | else if(b*b+c*c=a*a){ | ^ main.c:16:23: error: lvalue required as left operand of assignment 16 | else if(a*a+c*c=b*b){ | ^
s189956845
p00003
C
#include <stdio.h> int main(){ int N,a,b,c; scanf("%d",&N); scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c && b*b+c*c==a*a && a*a+c*c==b*b){ printf("YES\n"); else printf("NO\n"); } return(0); }
main.c: In function 'main': main.c:11:17: error: expected '}' before 'else' 11 | else printf("NO\n"); | ^~~~ main.c: At top level: main.c:14:9: error: expected identifier or '(' before 'return' 14 | return(0); | ^~~~~~ main.c:15:1: error: expected identifier or '(' before '}' token 15 | } | ^
s062971376
p00003
C
#include <stdio.h> int main(){ int N,a,b,c; scanf("%d",&N); scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c && b*b+c*c==a*a && a*a+c*c==b*b){ printf("YES\n"); else if printf("NO\n"); } return(0); }
main.c: In function 'main': main.c:11:17: error: expected '}' before 'else' 11 | else if printf("NO\n"); | ^~~~ main.c:11:25: error: expected '(' before 'printf' 11 | else if printf("NO\n"); | ^~~~~~ | ( main.c: At top level: main.c:14:9: error: expected identifier or '(' before 'return' 14 | return(0); | ^~~~~~ main.c:15:1: error: expected identifier or '(' before '}' token 15 | } | ^
s159559095
p00003
C
#include <stdio.h> int main(){ int N,a,b,c; scanf("%d\n",&N); for(i=0;i<N;i++){ scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c && b*b+c*c==a*a && a*a+c*c==b*b){ printf("YES\n"); else printf("NO\n"); } return(0); }
main.c: In function 'main': main.c:7:13: error: 'i' undeclared (first use in this function) 7 | for(i=0;i<N;i++){ | ^ main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in main.c:11:25: error: expected '}' before 'else' 11 | else printf("NO\n"); | ^~~~
s362240824
p00003
C
#include <stdio.h> int main(){ int N,a,b,c,i; scanf("%d\n",&N); for(i=0;i<N;i++){ scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c && b*b+c*c==a*a && a*a+c*c==b*b){ printf("YES\n"); else printf("NO\n"); } return(0); }
main.c: In function 'main': main.c:11:25: error: expected '}' before 'else' 11 | else printf("NO\n"); | ^~~~
s732210406
p00003
C
int main() { int a, b, c; int i,count; int leng1, leng2, leng3; scanf("%d", &count); for (i = 0; i < count; i++) { scanf_s("%d %d %d", &leng1, &leng2, &leng3); if (leng1 * leng1 + leng2 * leng2 == leng3 * leng3 ) { printf("Yes\n"); } else if(leng2 * leng2 + leng3 * leng3 == leng1 * leng1) { printf("Yes\n"); } else if(leng1 * leng1 + leng3 * leng3 == leng2 * leng2) { printf("Yes\n"); } else { printf("No\n"); } } return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | scanf("%d", &count); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main() main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 6 | scanf("%d", &count); | ^~~~~ main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:9:17: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration] 9 | scanf_s("%d %d %d", &leng1, &leng2, &leng3); | ^~~~~~~ main.c:12:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 12 | printf("Yes\n"); | ^~~~~~ main.c:12:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:12:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:12:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:16:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 16 | printf("Yes\n"); | ^~~~~~ main.c:16:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:20:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 20 | printf("Yes\n"); | ^~~~~~ main.c:20:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:23:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 23 | printf("No\n"); | ^~~~~~ main.c:23:25: note: include '<stdio.h>' or provide a declaration of 'printf'
s347763862
p00003
C
#include<stdio.h> int main(){ int a,b,c,n,i; scanf("%d\n", &n); for(i=0;i<n;i++) { scanf("%d %d %d\n", &a,&b,&c); a = a*a; b = b*b; c = c*c; if(a==b+c) printf("YES\n"); else if(b==c+a) printf("YES\n"); else if(c==a+b) printf("YES\n"); else printf("NO\n"); } } return 0; }
main.c:24:5: error: expected identifier or '(' before 'return' 24 | return 0; | ^~~~~~ main.c:25:1: error: expected identifier or '(' before '}' token 25 | } | ^
s427276128
p00003
C
#include <stdio.h> int main(){ int i,n,a,b,c; while(scanf("%d",a)!=EOF){ scanf("%d",b); scanf("%d",c); if(a*a+b*b==c*c || c*c+a*a=b*b || b*b+c*c==a*a) printf("YES"); else printf("NO"); } }
main.c: In function 'main': main.c:12:27: error: lvalue required as left operand of assignment 12 | if(a*a+b*b==c*c || c*c+a*a=b*b || b*b+c*c==a*a) printf("YES"); | ^
s550650260
p00003
C
#include <stdio.h> int main(){ int i,a,b,c; while(scanf("%d",&a)!=EOF){ scanf("%d",&b); scanf("%d",&c); if(a*a+b*b==c*c || c*c+a*a=b*b || b*b+c*c==a*a) printf("YES"); else printf("NO"); } }
main.c: In function 'main': main.c:12:27: error: lvalue required as left operand of assignment 12 | if(a*a+b*b==c*c || c*c+a*a=b*b || b*b+c*c==a*a) printf("YES"); | ^
s766183266
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,obliqueline,i; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %d",&baseline,&height,&obliqueline); if((baseline^2+height^2)==(obliqueline^2)){ printf("YES"); else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:10:17: error: expected '}' before 'else' 10 | else{ | ^~~~ main.c:14:1: error: expected declaration or statement at end of input 14 | } | ^
s091081536
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,obliqueline,i; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %d",&baseline,&height,&obliqueline); if((baseline^2+height^2)==(obliqueline^2)){ printf("YES"); else{ printf("NO"); } } return 0; }
main.c: In function 'main': main.c:10:17: error: expected '}' before 'else' 10 | else{ | ^~~~
s192241327
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d))==height){ printf("YES\n"); } elseif((c=sqrt(b+d))==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d))==height){ | ^~~~~~ main.c:16:46: error: expected ';' before '{' token 16 | elseif((c=sqrt(a+d))==height){ | ^ | ;
s927276429
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } c=sqrt(a+d); elseif(c==height){ printf("YES\n"); } c=sqrt(b+d); elseif(c==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:17:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 17 | elseif(c==height){ | ^~~~~~ main.c:17:34: error: expected ';' before '{' token 17 | elseif(c==height){ | ^ | ; main.c:21:36: error: expected ';' before '{' token 21 | elseif(c==baseline){ | ^ | ;
s974276282
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d))==height){ printf("YES\n"); } elseif((c=sqrt(b+d))==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d))==height){ | ^~~~~~ main.c:16:46: error: expected ';' before '{' token 16 | elseif((c=sqrt(a+d))==height){ | ^ | ;
s500510788
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d))==height);{ printf("YES\n"); } elseif((c=sqrt(b+d))==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d))==height);{ | ^~~~~~ main.c:19:48: error: expected ';' before '{' token 19 | elseif((c=sqrt(b+d))==baseline){ | ^ | ;
s774115049
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d))==height);{ printf("YES\n"); } elseif((c=sqrt(b+d))==baseline);{ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d))==height);{ | ^~~~~~ main.c:22:17: error: 'else' without a previous 'if' 22 | else{ | ^~~~
s042710412
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } if((c=sqrt(a+d))==height);{ printf("YES\n"); } if((c=sqrt(b+d))==baseline);{ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:22:17: error: 'else' without a previous 'if' 22 | else{ | ^~~~
s342348911
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d))==height){ printf("YES\n"); } elseif((c=sqrt(b+d))==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d))==height){ | ^~~~~~ main.c:16:46: error: expected ';' before '{' token 16 | elseif((c=sqrt(a+d))==height){ | ^ | ;
s162051671
p00003
C
#include<stdio.h> int main(){ int N,baseline,height,i; double a,b,c,d,obliqueline; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d);)==height){ printf("YES\n"); } elseif((c=sqrt(b+d);)==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d);)==height){ | ^~~~~~ main.c:16:36: error: expected ')' before ';' token 16 | elseif((c=sqrt(a+d);)==height){ | ~ ^ | ) main.c:16:47: error: expected ';' before '{' token 16 | elseif((c=sqrt(a+d);)==height){ | ^ | ;
s938789262
p00003
C
#include<stdio.h> int main(){ int N,i; double a,b,c,d,obliqueline,baseline,height; scanf("%d",&N); for(i=1;i<=N;i++){ scanf("%d %d %lf",&baseline,&height,&obliqueline); a=pow(baseline,2); b=pow(height,2); d=pow(obliqueline,2); c=sqrt(a+b); if(c==obliqueline){ printf("YES\n"); } elseif((c=sqrt(a+d))==height){ printf("YES\n"); } elseif((c=sqrt(b+d))==baseline){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:19: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 9 | a=pow(baseline,2); | ^~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'pow' 1 | #include<stdio.h> +++ |+#include <math.h> 2 | main.c:9:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] 9 | a=pow(baseline,2); | ^~~ main.c:9:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:12:19: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 12 | c=sqrt(a+b); | ^~~~ main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:12:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] main.c:12:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:16:17: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 16 | elseif((c=sqrt(a+d))==height){ | ^~~~~~ main.c:16:46: error: expected ';' before '{' token 16 | elseif((c=sqrt(a+d))==height){ | ^ | ;
s614659067
p00003
C
#include <stdio.h> int main(void) { int a, i; int x,y,z; int j,k,l; scanf("%d", &a); for (i=0;i<3;i++) { scanf("%d%d%d", &x, &y, &z); j=x*x+y*y; k=x*x+z*z; l=y*y+z*z; if (j==z*z || k==y*y || l==x*x) { printf("YES\n"); } else printf("NO\n"); } return 0; }???
main.c:24:2: error: expected identifier or '(' before '?' token 24 | }??? | ^
s998760803
p00003
C
#include<stdio.h> int ruijou(int); int main() { int n,length[1000][3],i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&length[0],&length[1],&length[2]); if(ruijou(length[0])==ruijou(length[1])+ruijou(length[2])||/* */ ruijou(length[1])==ruijou(length[0])+ruijou(length[2])||/* */ ruijou(length[2])==ruijou(length[0])+ruijou(length[1])||) printf("YES\n"); else printf("NO\n"); } return 0; } int ruijou(int i){ return i*i; }
main.c: In function 'main': main.c:12:17: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 12 | if(ruijou(length[0])==ruijou(length[1])+ruijou(length[2])||/* | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:12:36: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 12 | if(ruijou(length[0])==ruijou(length[1])+ruijou(length[2])||/* | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:12:54: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 12 | if(ruijou(length[0])==ruijou(length[1])+ruijou(length[2])||/* | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:13:17: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 13 | */ ruijou(length[1])==ruijou(length[0])+ruijou(length[2])||/* | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:13:36: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 13 | */ ruijou(length[1])==ruijou(length[0])+ruijou(length[2])||/* | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:13:54: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 13 | */ ruijou(length[1])==ruijou(length[0])+ruijou(length[2])||/* | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:14:17: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 14 | */ ruijou(length[2])==ruijou(length[0])+ruijou(length[1])||) | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:14:36: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 14 | */ ruijou(length[2])==ruijou(length[0])+ruijou(length[1])||) | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:14:54: error: passing argument 1 of 'ruijou' makes integer from pointer without a cast [-Wint-conversion] 14 | */ ruijou(length[2])==ruijou(length[0])+ruijou(length[1])||) | ~~~~~~^~~ | | | int * main.c:3:12: note: expected 'int' but argument is of type 'int *' 3 | int ruijou(int); | ^~~ main.c:14:60: error: expected expression before ')' token 14 | */ ruijou(length[2])==ruijou(length[0])+ruijou(length[1])||) | ^
s265048972
p00003
C
#include<stdio.h> void checkTri(int,int,int); int main(){ int a,b,c,n,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); checkTri(a,b,c); } Return 0; } void checkTri(int a,int b,int c){ a*=a; b*=b; c*=c; if(a==b+c)printf("YES\n"); else if(b==a+c)printf("YES\n"); else if(c==a+b)printf("YES\n"); else printf("NO\n"); }
main.c: In function 'main': main.c:12:9: error: 'Return' undeclared (first use in this function) 12 | Return 0; | ^~~~~~ main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in main.c:12:15: error: expected ';' before numeric constant 12 | Return 0; | ^~ | ;
s859253135
p00003
C
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,n; cin>>n; for(int i=0; i<n; i++) { cin>>a>>b>>c; if((a*a)+(b*b)==(c*c)) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; } } return 0; }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s265332140
p00003
C
#include<stdio.h> int main(void) { int n; int a,b,c; scanf("%d",&n); for(i=0;i<n;i++) { scanf(" %d %d %d",&a,&b,&c) if(c*c=a*a+b*b) { printf("YES\n"); } else { printf("NO"); } } return 0; }
main.c: In function 'main': main.c:8:13: error: 'i' undeclared (first use in this function) 8 | for(i=0;i<n;i++) | ^ main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in main.c:10:44: error: expected ';' before 'if' 10 | scanf(" %d %d %d",&a,&b,&c) | ^ | ; 11 | if(c*c=a*a+b*b) | ~~
s813499894
p00003
C
#include<stdio.h> int main(void) { int n; int a,b,c; scanf("%d",&n); for(i=0;i<n;i++) { scanf(" %d %d %d",&a,&b,&c) if(c*c=a*a+b*b) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:8:13: error: 'i' undeclared (first use in this function) 8 | for(i=0;i<n;i++) | ^ main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in main.c:10:44: error: expected ';' before 'if' 10 | scanf(" %d %d %d",&a,&b,&c) | ^ | ; 11 | if(c*c=a*a+b*b) | ~~
s594357756
p00003
C
#include<stdio.h> int main(void) { int n,i; int a,b,c; scanf("%d",&n); for(i=0;i<n;i++) { scanf(" %d %d %d",&a,&b,&c) if(c*c=a*a+b*b) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:10:44: error: expected ';' before 'if' 10 | scanf(" %d %d %d",&a,&b,&c) | ^ | ; 11 | if(c*c=a*a+b*b) | ~~
s271784119
p00003
C
#include<stdio.h> int main(void) { int n,i; int a,b,c; scanf("%d",&n); for(i=0;i<n;i++) { scanf(" %d %d %d",&a,&b,&c); if(c*c=a*a+b*b) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:11:23: error: lvalue required as left operand of assignment 11 | if(c*c=a*a+b*b) | ^
s717543501
p00003
C
#include<stdio.h> int main(void) { int n,i; int a,b,c; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d %d %d",&a,&b,&c); if(c*c=a*a+b*b) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:11:23: error: lvalue required as left operand of assignment 11 | if(c*c=a*a+b*b) | ^
s605234927
p00003
C
#include<stdio.h> int main(void) { int dataset = 0; int a,b,c; int i; scanf("%d",&dataset); for(i = 0;i < dataset;i++) { scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) { printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:14:31: error: lvalue required as left operand of assignment 14 | if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) | ^ main.c:14:52: error: lvalue required as left operand of assignment 14 | if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) | ^ main.c:14:73: error: lvalue required as left operand of assignment 14 | if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) | ^
s074437198
p00003
C
#include<stdio.h> int main(void) { int dataset = 0; int a = 0; int b = 0; int c = 0; int i; scanf("%d",&dataset); for(i = 0;i < dataset;i++) { scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) { printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:16:31: error: lvalue required as left operand of assignment 16 | if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) | ^ main.c:16:52: error: lvalue required as left operand of assignment 16 | if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) | ^ main.c:16:73: error: lvalue required as left operand of assignment 16 | if((a*a + b*b = c*c) && (b*b + c*c = a*a) && (c*c + a*a = b*b)) | ^
s613817906
p00003
C
#include<stdio.h> int main(void) { int dataset = 0; int a = 0; int b = 0; int c = 0; int i; scanf("%d",&dataset); for(i = 0;i < dataset;i++) { scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a*a + b*b == c*c || b*b + c*c == a*a || c*c + a*a == b*b)) { printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:16:77: error: expected statement before ')' token 16 | if(a*a + b*b == c*c || b*b + c*c == a*a || c*c + a*a == b*b)) | ^ main.c:19:18: error: 'else' without a previous 'if' 19 | }else{ | ^~~~
s705277656
p00003
C
#include<stdio.h> int main(void) { int N, i; int a, b, c, max; scanf("%d", &N); for (i = 0; i < N; i++) { scanf("%d %d %d", &a, &b, &c); if(a*a=b*b+c*c || b*b = c*c+a*a || c*c=a*a+b*b){ printf("YES\n"); } else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:9:55: error: lvalue required as left operand of assignment 9 | if(a*a=b*b+c*c || b*b = c*c+a*a || c*c=a*a+b*b){ | ^
s693365141
p00003
C
#include<stdio.h> int main(void) { int N,i,a,b,c; scanf("%d",&N); for(i=1;i=N;i++) { scanf("%d %d %d",a,b,c); if(a*a==b*b+c*c || b*b==a*a+c*c || c*c=a*a+b*b) { printf("YES"); } else { printf("NO"); } } return 0; }
main.c: In function 'main': main.c:9:47: error: lvalue required as left operand of assignment 9 | if(a*a==b*b+c*c || b*b==a*a+c*c || c*c=a*a+b*b) | ^
s089157215
p00003
C
#include <stdio.h> int main(void) { int N; int x, y, z; int i; scanf("%d", &N); for (i = 0; i < N; ++i) { scanf("%d %d %d", &x, &z, &y); flag = 0; if (x >= y && x >= z) { if (x*x == (y*y + z*z)) { printf("Yes\n"); } else { printf("No\n"); } } else if (y >= x && y >= z) { if (y*y == (x*x + z*z)) { printf("Yes\n"); } else { printf("No\n"); } } else { if (z*z == (x*x + y*y)) { printf("Yes\n"); } else { printf("No\n"); } } } return 0; }
main.c: In function 'main': main.c:12:17: error: 'flag' undeclared (first use in this function) 12 | flag = 0; | ^~~~ main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
s516151166
p00003
C
#include<stdio.h> int main() { int l,N; printf("Enter number:"); scanf("%d%d",&l,&N); if(1 ? length of the side ? 1,000!=EOF) { ; printf("%d",yes); } else printf("%d",no); return 0; }
main.c: In function 'main': main.c:7:12: error: 'length' undeclared (first use in this function) 7 | if(1 ? length of the side ? 1,000!=EOF) | ^~~~~~ main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in main.c:7:18: error: expected ':' before 'of' 7 | if(1 ? length of the side ? 1,000!=EOF) | ^~~ | : main.c:10:21: error: 'yes' undeclared (first use in this function) 10 | printf("%d",yes); | ^~~ main.c:14:21: error: 'no' undeclared (first use in this function) 14 | printf("%d",no); | ^~
s639461877
p00003
C
#include<stdio.h> int main() {int a,b,c; while(scanf("%d %d %d",&a,&b,&c)); {if(a<c&&b<c) printf("YES\n",a*a+b*b==c*c);} else printf("NO\n"); } return 0;}
main.c: In function 'main': main.c:7:5: error: 'else' without a previous 'if' 7 | else | ^~~~ main.c: At top level: main.c:10:1: error: expected identifier or '(' before 'return' 10 | return 0;} | ^~~~~~ main.c:10:10: error: expected identifier or '(' before '}' token 10 | return 0;} | ^
s427468381
p00003
C
#include <stdio.h> int main(void) { int a,b,c,n,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&a,&b,&c) if(a==(b*b+c*c)/a||b==(c*c+a*a)/b||c==(a*a+b*b)/c) printf("YES\n"); else printf("NO\n"); } return(0); }
main.c: In function 'main': main.c:9:29: error: expected ';' before 'if' 9 | scanf("%d%d%d",&a,&b,&c) | ^ | ; 10 | 11 | if(a==(b*b+c*c)/a||b==(c*c+a*a)/b||c==(a*a+b*b)/c) | ~~ main.c:13:5: error: 'else' without a previous 'if' 13 | else | ^~~~
s372061218
p00003
C
#include<stdio.h> int main(){ int a,b,c,i,n,; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); if(a*a==b*b+c*c || b*b==a*a+c*c || c*c==a*a+b*b){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:3:15: error: expected identifier or '(' before ';' token 3 | int a,b,c,i,n,; | ^
s162598480
p00003
C
#include<stdio.h> int main(){ int a,b,c,i,n,; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); if(a*a==b*b+c*c || b*b==a*a+c*c || c*c==a*a+b*b){ printf("YES\n"); } else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:3:15: error: expected identifier or '(' before ';' token 3 | int a,b,c,i,n,; | ^
s732692181
p00003
C
nt main(void) { int a[10], n, i, j, work, pt, pt2; char ans[3001]; scanf("%d", &n); for (int m=0;m<n;m++){ for (i=0;i<3;i++) { scanf("%d", &a[i]); } for(i=0;i<2;i++){ for(j=i+1;j<3;j++){ if (a[i]>a[j]){ work = a[i]; a[i] = a[j]; a[j] = a[i]; } } } pt=a[2]*a[2]; pt2=(a[0]*a[0])+(a[1]*a[1]); if(pt==pt2){ ans[m]="YES"; }else{ ans[m]="NO"; } } for (int m=0;m<n;m++){ } return 0; }
main.c:1:1: error: unknown type name 'nt'; did you mean 'int'? 1 | nt main(void) | ^~ | int main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 5 | scanf("%d", &n); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | nt main(void) main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 5 | scanf("%d", &n); | ^~~~~ main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:24:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 24 | ans[m]="YES"; | ^ main.c:26:31: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 26 | ans[m]="NO"; | ^
s032720444
p00003
C
#include<stdio.h> int main(){ int x,y,z,i; i=0; scanf("%d",&i) while(i!=0){ scanf("%d %d %d",&x,&y,&z); if(z*z==y*y+x*x){ printf("YES"); } else{ printf("NO"); } i=i-1; } return 0; }
main.c: In function 'main': main.c:5:15: error: expected ';' before 'while' 5 | scanf("%d",&i) | ^ | ; 6 | while(i!=0){ | ~~~~~
s140912153
p00003
C
#include<stdio.h> int main(){ int x,y,z,i; i=0; scanf("%d",&i) while(i!=0){ scanf("%d %d %d",&x,&y,&z); if(z*z==y*y+x*x){ printf("YES"); } else{ printf("NO"); } i=i-1; } return 0; }
main.c: In function 'main': main.c:5:15: error: expected ';' before 'while' 5 | scanf("%d",&i) | ^ | ; 6 | while(i!=0){ | ~~~~~
s455313587
p00003
C
#include <stdio.h> #include <string.h> int main(){ int a[1001],b[1001],c[1001]; int i; int n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&a,&b,&c); } for(i=0;i<n;i++){ if(a*a+b*b==c*c){ printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:18:13: error: invalid operands to binary * (have 'int *' and 'int *') 18 | if(a*a+b*b==c*c){ | ~^ | || | |int * | int * main.c:18:17: error: invalid operands to binary * (have 'int *' and 'int *') 18 | if(a*a+b*b==c*c){ | ~ ^ | | | | | int * | int * main.c:18:22: error: invalid operands to binary * (have 'int *' and 'int *') 18 | if(a*a+b*b==c*c){ | ~~ ^ | | | | | int * | int *
s328154682
p00003
C
#include<stdio.h> int main(void){ int N,i,a,b,c,m; scanf("%d\n",&N); for(i=0;i<N;i++){ scanf("%d %d %d\n",&a,&b,&c); if(a>b) d=a,a=b,b=d; if(b>c) d=b,b=c,c=d; if(c*c==a*a+b*b) printf("Yes\n"); else printf("No\n"); } return 0; }
main.c: In function 'main': main.c:8:9: error: 'd' undeclared (first use in this function) 8 | if(a>b) d=a,a=b,b=d; | ^ main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
s886226574
p00003
C
##include<stdio.h> void isRightTriangle(int a,int b,int c){ if(a*a==b*b+c*c){ printf("YES\n"); }else{ printf("NO\n"); } } int main(void){ int x; int l,m,n; scanf("%d",&x); for(x=0;x<n;x++){ scanf("%d %d %d",&l,&m,&n); if(l>m&&l>n){ isRightTriangle(l,m,n); }else if(m>l&&m>n){ isRightTriangle(m,l,n); }else{ isRightTriangle(n,l,m); } } return 0; }
main.c:1:1: error: stray '##' in program 1 | ##include<stdio.h> | ^~ main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | ##include<stdio.h> | ^ main.c: In function 'main': main.c:14:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 14 | scanf("%d",&x); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | ##include<stdio.h> main.c:14:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 14 | scanf("%d",&x); | ^~~~~ main.c:14:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:19:17: error: implicit declaration of function 'isRightTriangle' [-Wimplicit-function-declaration] 19 | isRightTriangle(l,m,n); | ^~~~~~~~~~~~~~~
s750119746
p00003
C
#include <stdio.h> int main(void) { int a, b, c,; while (scanf("%d %d %d", &a, &b, %c) != EOF) { if(((a * a) + (b * b)) ==(c * c)){ printf("YES\n"); } else{ printf("NO\n"); } return(0); }
main.c: In function 'main': main.c:4:15: error: expected identifier or '(' before ';' token 4 | int a, b, c,; | ^ main.c:6:36: error: expected expression before '%' token 6 | while (scanf("%d %d %d", &a, &b, %c) != EOF) { | ^ main.c:14:1: error: expected declaration or statement at end of input 14 | } | ^
s233232041
p00003
C
int main(void) { int x, tri[3], i, j, maxi, n; scanf("%d", &n); for(i=0; i<n; i++){ max=0; x=0; for(j=0; j<3; j++){ scanf("%d", &tri[i]); tri[i] *= tri[i]; if(max < tri[i]){ maxi = j; } } for(j=0; j<3; j++){ if(j != maxi){ x+=tri[j]; } } if(tri[maxi] == x){ printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 6 | scanf("%d", &n); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 6 | scanf("%d", &n); | ^~~~~ main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:9:9: error: 'max' undeclared (first use in this function); did you mean 'maxi'? 9 | max=0; x=0; | ^~~ | maxi main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in main.c:23:13: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 23 | printf("YES\n"); | ^~~~~~ main.c:23:13: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:23:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:23:13: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:25:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 25 | printf("NO\n"); | ^~~~~~ main.c:25:13: note: include '<stdio.h>' or provide a declaration of 'printf'
s215091167
p00003
C
#include<stdio.h> int main(void) { int n; scanf("%d", &n); int a[100], b[100], c[100], i, a2[100], b2[100], c2[100]; for(i = 1; i <= n; i++){ scanf("%d %d %d", &a[i], &b[i], &c[i]); a2[i] = a[i] * a[i]; b2[i] = b[i] * b[i]; c2[i] = c[i] * c[i]; } for(i = 1; i <= n; i++){ if(a2[i] == b2[i] + c2[i]){ printf("YES\n"); }elseif(b2[i] == a2[i] + b2[i]){ printf("YES\n"); }elseif(c2[i] == a2[i] + b2[i]){ printf("YES\n"); }else{ printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:17:18: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration] 17 | }elseif(b2[i] == a2[i] + b2[i]){ | ^~~~~~ main.c:17:48: error: expected ';' before '{' token 17 | }elseif(b2[i] == a2[i] + b2[i]){ | ^ | ;
s758053636
p00003
C
#include<stdio.h> int main() { int data[3000]; int a,b,c,d,i,j; scanf("%d\n",&d); for(i=1;i<d*3+1;i++){ scanf("%d ",&data[i]); if(i % 3==0){ printf("\n"); } } for(i=1;i<d*3+1;i++){ if(data[i]*data[i]=data[i+1]*data[i+1]+data[i+2]*data[i+2]||data[i+1]*data[i+1]=data[i]*data[i]+data[i+2]*data[i+2]||data[i+2]*data[i+2]=data[i]*data[i]+data[i+1]*data[i+1]) if(i % 3==0) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:15:153: error: lvalue required as left operand of assignment 15 | if(data[i]*data[i]=data[i+1]*data[i+1]+data[i+2]*data[i+2]||data[i+1]*data[i+1]=data[i]*data[i]+data[i+2]*data[i+2]||data[i+2]*data[i+2]=data[i]*data[i]+data[i+1]*data[i+1]) | ^
s268746000
p00003
C
#include<stdio.h> int main() { int data[3000]; int a,b,c,d,i,j; scanf("%d\n",&d); for(i=1;i<d*3+1;i++){ scanf("%d ",&data[i]); if(i % 3==0){ printf("\n"); } } for(i=1;i<d*3+1;i++){ if(data[i]*data[i]=data[i+1]*data[i+1]+data[i+2]*data[i+2]||data[i+1]*data[i+1]=data[i]*data[i]+data[i+2]*data[i+2]||data[i+2]*data[i+2]=data[i]*data[i]+data[i+1]*data[i+1]) if(i % 3==0) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:15:153: error: lvalue required as left operand of assignment 15 | if(data[i]*data[i]=data[i+1]*data[i+1]+data[i+2]*data[i+2]||data[i+1]*data[i+1]=data[i]*data[i]+data[i+2]*data[i+2]||data[i+2]*data[i+2]=data[i]*data[i]+data[i+1]*data[i+1]) | ^
s123262305
p00003
C
#include<stdio.h> #include<math.h> int *sort(int input[3]) { for(int i=0;i<3-1;i++) for ( int j = i; j < 3; j++) { if (input[i] < input[j]) { int tmp = input[i]; input[i] = input[j]; input[j] = tmp; } } return input; } int main() { int a, b, c; int count; int input[3],output[1000][3]; scanf("%d", &count); int i = 0; while (count>i) { if (scanf("%d %d %d", &a, &b, &c) == EOF) break; else { input[0] = a; input[1] = b; input[2] = c; input = sort(input); output[count] = input; } i++; } for (i = 0; i < count; i++) { if (output[i][0] * output[i][0] == output[i][1] * output[i][1] + output[i][2] * output[i][2]) printf("YES\n"); else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:33:31: error: assignment to expression with array type 33 | input = sort(input); | ^ main.c:34:39: error: assignment to expression with array type 34 | output[count] = input; | ^
s553202034
p00003
C
#include<stdio.h> int main(){ int a,b,c,i,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); if((a*a+b*b==c*c) || (b*b+c*c==a*a) || (c*c+a*a==b*b)){ printf("YES\n"); }else{ printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:19:1: error: expected declaration or statement at end of input 19 | } | ^
s223197075
p00003
C
#include<stdio.h> int main() { int N, i, j, tmp; int R[3]; scanf("%d", &N); for(i=0; i<N; i++){ scanf("%d", &R[3]); for(i=0; i<3; i++){ for(j=0; j<3; j++){ if(R[i]<R[j]){ tmp = R[j]; R[j] = R[i]; R[i] = tmp; } } } } if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){ puts("Yes"); }else{ puts("No"); } return 0; }
main.c: In function 'main': main.c:23:13: error: lvalue required as left operand of assignment 23 | if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){ | ^
s691098157
p00003
C
#include<stdio.h> int main() { int N, i, j, tmp; int R[3]; scanf("%d", &N); for(i=0; i<N; i++){ scanf("%d", &R[3]); for(i=0; i<3; i++){ for(j=0; j<3; j++){ if(R[i]<R[j]){ tmp = R[j]; R[j] = R[i]; R[i] = tmp; } } } } if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){ puts("Yes"); }else{ puts("No"); } return 0; }
main.c: In function 'main': main.c:23:13: error: lvalue required as left operand of assignment 23 | if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){ | ^
s099888500
p00003
C
#include<stdio.h> int main() { int N, i, j, tmp; int R[3]; scanf("%d", &N); for(i=0; i<N; i++){ scanf("%d", &R[3]); for(i=0; i<3; i++){ for(j=0; j<3; j++){ if(R[i]<R[j]){ tmp = R[j]; R[j] = R[i]; R[i] = tmp; } } } } if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){ puts("Yes"); }else{ puts("No"); } return 0; }
main.c: In function 'main': main.c:23:13: error: lvalue required as left operand of assignment 23 | if(R[0]*R[0]=R[1]*R[1]+R[2]*R[2]){ | ^
s288185672
p00003
C
#include<stdio.h> int main() { int N, i, a, b, c; scanf("%d", &N); for(i=0; i<N; i++){ scanf("%d %d %d", &a, &b, &c); if(a<=b && b<=c){ max = c; }else if(a<=c && c<=b){ max = b; }else if(b<=c && c<=a){ max = a; }else if(b<=a && a<=c){ max = c; }else if(c<=a && a<=b){ max = b; }else if(c<=b && b<=a){ max = a; } if(a==max){ if(a*a==b*b+c*c){ puts("Yes"); }else{ puts("No"); } }else if(b==max){ if(b*b==a*a+c*c){ puts("Yes"); }else{ puts("No"); } }else if(c==max){ if(c*c==a*a+b*b){ puts("Yes"); }else{ puts("No"); } } } return 0; }
main.c: In function 'main': main.c:13:1: error: 'max' undeclared (first use in this function) 13 | max = c; | ^~~ main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
s869006854
p00003
C
#define SIDE_NUM 3 void swap(int *a, int *b); int main(void){ int dataNum; int side[SIDE_NUM]; int i,j; bool endFlg = false; //セット数取り込み scanf("%d", &dataNum); for(i=0; i<dataNum; ++i){ //三角形データ取り込み for(j=0; j<SIDE_NUM; ++j){ scanf("%d", &side[i]); } //ソート while(endFlg == false){ endFlg = true; for(j=0; j<2; ++j){ if(side[j]<side[j+1]){ swap(&side[j], &side[j+1]); endFlg = false; } } } //直角三角形かどうかの判定(三平方を満たすかどうか) if((side[0] * side[0]) == ((side[1] * side[1]) + (side[2] * side[2]))){ printf("YES\n"); }else{ printf("NO\n"); } } return 0; } void swap(int *a, int *b){ *b ^= *a; *a ^= *b; *b ^= *a; }
main.c: In function 'main': main.c:9:9: error: unknown type name 'bool' 9 | bool endFlg = false; | ^~~~ main.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' +++ |+#include <stdbool.h> 1 | #define SIDE_NUM 3 main.c:9:23: error: 'false' undeclared (first use in this function) 9 | bool endFlg = false; | ^~~~~ main.c:9:23: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' main.c:9:23: note: each undeclared identifier is reported only once for each function it appears in main.c:12:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 12 | scanf("%d", &dataNum); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | #define SIDE_NUM 3 main.c:12:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 12 | scanf("%d", &dataNum); | ^~~~~ main.c:12:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:22:34: error: 'true' undeclared (first use in this function) 22 | endFlg = true; | ^~~~ main.c:22:34: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' main.c:33:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 33 | printf("YES\n"); | ^~~~~~ main.c:33:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:33:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:33:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:35:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 35 | printf("NO\n"); | ^~~~~~ main.c:35:25: note: include '<stdio.h>' or provide a declaration of 'printf'
s403412815
p00003
C
2-25 20:45 BST Practice for C - 2 End: 2018-03-07 20:45 BST 193:54:46 Elapsed: 193:54:46 Running Remaining: 46:05:13 Overview Problem Status Rank (193:54:37) 2 Comments Previous12345…Next Username Prob Result Time (ms) Mem (MB) Lang Submit Time hassanmdrakib B Accepted 0 2 C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago hassanmdrakib B Wrong Answer C 5 days ago All Copyright Reserved ©2018 Xu Han Server Time: 2018-03-05 22:39:46 BST #12845866 | hassanmdrakib's solution for [Problem B] Status Wrong Answer Memory 2032kB Length 436 Lang C Submitted 2018-02-28 10:58:18 Shared 0.0 / 1.0 Select Code #include<stdio.h> int main() { int a,b,c,n,i,o; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d%d%d",&a,&b,&c); { if (a>b && a>c) o=a; else if(b>a && b>c) o=b; else o=c; } if((o*o)==(b*b)+(c*c) || (o*o)==(a*a)+(c*c) || (o*o)==(a*a)+(b*b)) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c:1:1: error: expected identifier or '(' before numeric constant 1 | 2-25 20:45 BST | ^ main.c:11:14: error: stray '\342' in program 11 | Previous12345<U+2026>Next | ^~~~~~~~ main.c:82:24: error: stray '\302' in program 82 | All Copyright Reserved <U+00A9>2018 Xu Han | ^~~~~~~~ main.c:85:11: error: "|" is not a valid filename 85 | #12845866 | hassanmdrakib's solution for [Problem B] | ^ main.c:85:26: warning: missing terminating ' character 85 | #12845866 | hassanmdrakib's solution for [Problem B] | ^ main.c:89:1: error: invalid suffix "kB" on integer constant 89 | 2032kB | ^~~~~~ In file included from /usr/include/stdio.h:47, from main.c:100: /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t' 28 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' +++ |+#include <stddef.h> 1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc. /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t' 37 | size_t __nbytes); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'? 57 | cookie_read_function_t *read; /* Read bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~ | cookie_seek_function_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'? 58 | cookie_write_function_t *write; /* Write bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~~ | cookie_close_function_t /usr/include/stdio.h:314:35: error: unknown type name 'size_t' 314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) | ^~~~~~ /usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' 129 | #include <bits/stdio_lim.h> +++ |+#include <stddef.h> 130 | /usr/include/stdio.h:320:47: error: unknown type name 'size_t' 320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW | ^~~~~~ /usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:340:34: error: unknown type name 'size_t' 340 | int __modes, size_t __n) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:346:24: error: unknown type name 'size_t' 346 | size_t __size) __THROW __nonnull ((1)); | ^~~~~~ /usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:385:44: error: unknown type name 'size_t' 385 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:389:45: error: unknown type name 'size_t' 389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~ /usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:690:30: error: unknown type name 'size_t' 690 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:693:28: error: unknown type name 'size_t' 693 | size_t *__restrict __n, int __delimiter, | ^~~~~~ /usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:698:27: error: unknown type name 'size_t' 698 | size_t *__restrict __n, | ^~~~~~ /usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:8: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:728:46: error: unknown type name 'size_t' 728 | extern size_t fread (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:729:22: error: unknown type name 'size_t' 729 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:8: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:735:53: error: unknown type name 'size_t' 735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:736:23: error: unknown type name 'size_t' 736 | size_t __n, FILE *__restrict __s) __nonnull((4)); | ^~~~~~ /usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:8: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:756:55: error: unknown type name 'size_t' 756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:757:31: error: unknown type name 'size_t' 757 | size_t __n, FILE *__restrict __stream) __wur | ^~~~~~ /usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:8: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:759:62: error: unknown type name 'size_t' 759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | ^~~~~~ /usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>' /usr/include/stdio.h:760:32: error: unknown type name 'size_t' 760 | size_t __n, FILE *__restrict __stream) | ^~~~~~ /usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
s981834056
p00003
C
include <stdio.h> int main(void) { int x[1000],y[1000],z[1000]; int i; int n; /* while(1){ scanf("%d",&n); if(n>1000){ break; } } */ scanf("%d",&n); for(i = 0; i <= n; i ++){ scanf("%d %d %d",&x[i],&y[i],&z[i]); if(x[i]<1||x[i]>1000||y[i]<1||y[i]>1000||z[i]>i||z[i]<1000){ i++; } } /* int n; int x,y,z; int a,b,c; int i,j,k; // scanf("%d\n",&n); // scanf("%d",&n); // printf("3\n"); scanf("%d %d %d",&x,&y,&z); scanf("%d %d %d",&a,&b,&c); scanf("%d %d %d",&i,&j,&k);*/ for(i=0;i<n;i++){ x[i] *= x[i]; y[i] *= y[i]; z[i] *= z[i]; if(x[i] == y[i] + z[i] || y[i] == x[i] + z[i] || z[i] == x[i] + y[i]){ printf("YES\n"); }else{ printf("NO\n"); } } /* if(a*a==b*b+c*c){ printf("YES\n"); }else if(b*b==a*a+c*c){ printf("YES\n"); }else if(c*c==a*a+b*b){ printf("YES\n"); }else{ printf("NO\n"); } i *= i; j *= j; k *= k; if(i == j + k || j == i + k || k == i + j){ printf("YES\n"); }else{ printf("NO\n"); } */ return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s535989677
p00003
C
x[i] *= x[i]; y[i] *= y[i]; z[i] *= z[i]; if(x[i] == y[i] + z[i] || y[i] == x[i] + z[i] || z[i] == x[i] + y[i]){ printf("YES\n"); }else{ printf("NO\n"); } }
main.c:1:6: error: 'i' undeclared here (not in a function) 1 | x[i] *= x[i]; | ^ main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*=' token 1 | x[i] *= x[i]; | ^~ main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*=' token 2 | y[i] *= y[i]; | ^~ main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*=' token 3 | z[i] *= z[i]; | ^~ main.c:5:5: error: expected identifier or '(' before 'if' 5 | if(x[i] == y[i] + z[i] || y[i] == x[i] + z[i] || z[i] == x[i] + y[i]){ | ^~ main.c:7:6: error: expected identifier or '(' before 'else' 7 | }else{ | ^~~~ main.c:10:5: error: expected identifier or '(' before '}' token 10 | } | ^
s437742259
p00003
C
#include<stdio.h> int main() { int a,b,c; printf("Enter the number of data set N\n") scanf("%d\n",N); if (a*a+b*b==c*c && b*b+c*c==a*a && a*a+c*c==b*b ) { printf("Yes\n"); } else if { printf("No\n"); } return 0; }
main.c: In function 'main': main.c:5:43: error: expected ';' before 'scanf' 5 | printf("Enter the number of data set N\n") | ^ | ; 6 | scanf("%d\n",N); | ~~~~~ main.c:11:9: error: expected '(' before '{' token 11 | else if { | ^ | (
s740861279
p00003
C
#include<stdio.h> int main() { int a,c,i,k,j; scanf ("%d",&a); for(c=1;c<=a;c++) { scanf("%d %d %d",&i,&j,&k); if(((a*a)=(b*b)+(c*c))||((b*b)=(a*a)+(c*c))||((c*c)=(a*a)+(b*b))) printf ("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:10:20: error: 'b' undeclared (first use in this function) 10 | if(((a*a)=(b*b)+(c*c))||((b*b)=(a*a)+(c*c))||((c*c)=(a*a)+(b*b))) | ^ main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in main.c:15:1: error: expected declaration or statement at end of input 15 | } | ^
s066996569
p00003
C
#include<stdio.h> int main() { int a,c,i,k,j,b; scanf ("%d",&i); for(c=1;c<=i;c++) { scanf("%d %d %d",&a,&b,&c); if(((a*a)==(b*b)+(c*c))||((b*b)==(a*a)+(c*c))||((c*c)==(a*a)+(b*b))) printf ("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:15:1: error: expected declaration or statement at end of input 15 | } | ^
s875965845
p00003
C
#include <stdio.h> int main(void){ int a,b,c; int i,j,tmp; scanf("%d", &i); for(j=0,j<i;j++){ scanf("%d %d %d", &a, &b, &c); if(a>b){ tmp=a; a=b; b=tmp; } if(b>c){ tmp=b; b=c; c=tmp; } if(a>b){ tmp=a; a=b; b=tmp; } if(a*a+b*b=c*c) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:7:20: error: expected ';' before ')' token 7 | for(j=0,j<i;j++){ | ^ | ; main.c:24:19: error: lvalue required as left operand of assignment 24 | if(a*a+b*b=c*c) printf("YES\n"); | ^
s439108403
p00003
C
#include<stdio.h> int main(void) { int a,b,c; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); if(a+b>c||a+c>b||b+c>a) printf("NO"); else if((a*a==b*b+c*c)||(b*b==a*a+c*c)||(c*c==a*a+b*b)) printf("YES"); } return 0; }
main.c: In function 'main': main.c:6:17: error: 'n' undeclared (first use in this function) 6 | scanf("%d",&n); | ^ main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in main.c:7:9: error: 'i' undeclared (first use in this function) 7 | for(i=0;i<n;i++){ | ^
s156088919
p00003
C
#include <stdio.h> int main(void){ int n; int i; int a,b,c; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b){ puts("Yes\n"); }else{ puts("No\n"); } return 0; }
main.c: In function 'main': main.c:17:1: error: expected declaration or statement at end of input 17 | } | ^
s596331152
p00003
C
round = int(input("")) for i in range (0,round): arr = [] temp = input("") a,b,c = temp.split(" ") arr.append(int(a)) arr.append(int(b)) arr.append(int(c)) arr.sort() if(pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2)): print("YES") else: print("NO")
main.c:2:1: warning: data definition has no type or storage class 2 | round = int(input("")) | ^~~~~ main.c:2:1: error: type defaults to 'int' in declaration of 'round' [-Wimplicit-int] main.c:2:1: warning: built-in function 'round' declared as non-function [-Wbuiltin-declaration-mismatch] main.c:2:9: error: expected expression before 'int' 2 | round = int(input("")) | ^~~
s341776950
p00003
C
#include <stdio.h> int main(){ int n,i,a[2]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[0]); scanf("%d",&a[1]); scanf("%d",&a[2]); if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:13:93: error: lvalue required as left operand of assignment 13 | if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n"); | ^
s460259661
p00003
C
#include <stdio.h> int main(){ int n,i,a[2]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[0]); scanf("%d",&a[1]); scanf("%d",&a[2]); if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES"); else puts("NO"); } return 0; }
main.c: In function 'main': main.c:13:93: error: lvalue required as left operand of assignment 13 | if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES"); | ^
s860432020
p00003
C
#include <stdio.h> int main(){ int n,i,a[3]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[0]); scanf("%d",&a[1]); scanf("%d",&a[2]); if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES"); else puts("NO"); } return 0; }
main.c: In function 'main': main.c:13:93: error: lvalue required as left operand of assignment 13 | if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES"); | ^
s921928604
p00003
C
#include <stdio.h> int main(){ int n,i,a[3]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&a[0],&a[1],&a[2]); if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES"); else puts("NO"); } return 0; }
main.c: In function 'main': main.c:10:93: error: lvalue required as left operand of assignment 10 | if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2] || a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) puts("YES"); | ^
s637449650
p00003
C
#include <stdio.h> int main(){ int n,i,a[3]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&a[0],&a[1],&a[2]); if(a[0]*a[0]+a[1]*a[1]=a[2]*a[2]|| a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:11:62: error: lvalue required as left operand of assignment 11 | a[0]*a[0]+a[2]*a[2]=a[1]*a[1] || a[2]*a[2]+a[1]*a[1]=a[0]*a[0]) printf("YES\n"); | ^
s728553933
p00003
C
#include <stdio.h> int main(){ int n,k,i,j,temp; scanf("%d",&j); int x[3]; for(k=0;k<j;k++){ scanf("%d %d %d",x[0],x[1],x[2]); for (i = 0; i < 3 - 1; i++) { for (j = 3 - 1; j > i; j--) { if (x[j - 1] > x[j]) { /* ツ前ツづ個要ツ素ツづ個陛サツつェツ妥・ツつォツつゥツづつスツづァ */ temp = x[j]; /* ツ古ーツ環キツつキツづゥ */ x[j] = x[j - 1]; x[j - 1]= temp; } } if(x[3]*x[3]==x[1]*x[1]+x[2]*x[2]){ prinitf("YES\n"); }else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:22:33: error: implicit declaration of function 'prinitf'; did you mean 'printf'? [-Wimplicit-function-declaration] 22 | prinitf("YES\n"); | ^~~~~~~ | printf main.c:29:25: error: expected declaration or statement at end of input 29 | } | ^
s280342157
p00003
C
#include <stdio.h> int main(){ int n,k,i,j,temp; scanf("%d",&j); int x[3]; for(k=0;k<j;k++){ scanf("%d %d %d",&x[0],&x[1],&x[2]); for (i = 0; i < 3 - 1; i++) { for (j = 3 - 1; j > i; j--) { if (x[j - 1] > x[j]) { /* ツ前ツづ個要ツ素ツづ個陛サツつェツ妥・ツつォツつゥツづつスツづァ */ temp = x[j]; /* ツ古ーツ環キツつキツづゥ */ x[j] = x[j - 1]; x[j - 1]= temp; } } if(x[3]*x[3]==x[1]*x[1]+x[2]*x[2]){ prinitf("YES\n"); }else { printf("NO\n"); } } return 0; }
main.c: In function 'main': main.c:22:33: error: implicit declaration of function 'prinitf'; did you mean 'printf'? [-Wimplicit-function-declaration] 22 | prinitf("YES\n"); | ^~~~~~~ | printf main.c:29:25: error: expected declaration or statement at end of input 29 | } | ^
s642191407
p00003
C
include <stdio.h> main(){ int a,b,c,d,e,f,n,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&a,&b,&c); a=a*a; b=b*b; c=c*c; d=a+b; e=b+c; f=c+a; if(d==c) printf("YES\n"); else if(e==a) printf("YES\n"); else if(f==b) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s897561090
p00003
C
#include <stdio.h> int maint(void) { int t, i, a, b, c, d; scanf("%d", &t); for(i = 0; i < t; i++) { scanf("%d %d %d", &a, &b, &c); if(a >= b && a >= c) { d = a * a - b * b - c * c; } else if(b >= c && b >= a) { d = b * b - c * c - a * a; } else if(c >= a && c >= b) { d = c * c - a * a - b * b; } if(d == 0) { printf("YES\n"); else { printf("NO\n"); } } }
main.c: In function 'maint': main.c:18:5: error: expected '}' before 'else' 18 | else { | ^~~~
s830916753
p00003
C
#include <stdio.h> int main(void) { int t, i, a, b, c, d; scanf("%d", &t); for(i = 0; i < t; i++) { scanf("%d %d %d", &a, &b, &c); if(a >= b && a >= c) { d = a * a - b * b - c * c; } else if(b >= c && b >= a) { d = b * b - c * c - a * a; } else if(c >= a && c >= b) { d = c * c - a * a - b * b; } if(d == 0) { printf("YES\n"); else { printf("NO\n"); } } }
main.c: In function 'main': main.c:18:5: error: expected '}' before 'else' 18 | else { | ^~~~
s903865481
p00003
C
#include<stdio.h> int main(){ int i,a,b,c,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d%d%d",&a,&b,&c); if(a*a+b*b-c*c==0||a*ac*c-b*b==0||b*b+c*c-a*a==0) printf("YES\n"); else printf("NO\n");} return 0; }
main.c: In function 'main': main.c:7:22: error: 'ac' undeclared (first use in this function); did you mean 'c'? 7 | if(a*a+b*b-c*c==0||a*ac*c-b*b==0||b*b+c*c-a*a==0) | ^~ | c main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
s236785011
p00003
C
#include<stdio.h> int main() { int i,a,b[100],c,d,e; scanf("%d",&a); for(i=0;i<a;i++) { scnaf("%d%d%d",&c,&d,&e); if(c+d>e) b[i]=0; else b[i]=1; } for(i=0;i<a;i++) { if(b[i]==0) printf("YES\n"); else printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:10:17: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 10 | scnaf("%d%d%d",&c,&d,&e); | ^~~~~ | scanf
s756566516
p00003
C
#include<stdio.h> __int64 i,j,n,a[5]; int main(){ scanf("%d",n); for(i=0;i<n;i++){ scanf("\n%d %d %d",&a[0],&a[1],&a[2]); if(a[0]*a[0]==a[1]*a[1]+a[2]*a[2] || a[1]*a[1]==a[2]*a[2]+a[0]*a[0] || a[2]*a[2]==a[0]*a[0]+a[1]*a[1])printf("YES\n"); else printf("NO\n"); } return 0; }
main.c:3:1: error: unknown type name '__int64'; did you mean '__int64_t'? 3 | __int64 i,j,n,a[5]; | ^~~~~~~ | __int64_t
s135529291
p00003
C
#include<stdio.h> __int64 i,j,n,a[5]; int main(){ scanf("%lld",n); for(i=0;i<n;i++){ scanf("\n%lld %lld %lld",&a[0],&a[1],&a[2]); if(a[0]*a[0]==a[1]*a[1]+a[2]*a[2] || a[1]*a[1]==a[2]*a[2]+a[0]*a[0] || a[2]*a[2]==a[0]*a[0]+a[1]*a[1])printf("YES\n"); else printf("NO\n"); } return 0; }
main.c:3:1: error: unknown type name '__int64'; did you mean '__int64_t'? 3 | __int64 i,j,n,a[5]; | ^~~~~~~ | __int64_t
s622099880
p00003
C
#include<stdio.h> __int64 i,j,n,a[5]; int main(){ scanf("%lld",n); for(i=0;i<n;i++){ scanf("\n%lld %lld %lld",&a[0],&a[1],&a[2]); if(a[0]*a[0]==a[1]*a[1]+a[2]*a[2] || a[1]*a[1]==a[2]*a[2]+a[0]*a[0] || a[2]*a[2]==a[0]*a[0]+a[1]*a[1])printf("YES\n"); else printf("NO\n"); } return 0; }
main.c:3:1: error: unknown type name '__int64'; did you mean '__int64_t'? 3 | __int64 i,j,n,a[5]; | ^~~~~~~ | __int64_t