submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s181976729
|
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
|
s403225345
|
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
|
s823246646
|
p00003
|
C
|
#include <stdio.h>
int main(void){
int n,a,b,c,i;
scanf("&d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d %d",&a,&b,&c);
if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c=a*a))
{printf("YES");}
else{printf("NO");}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:50: error: lvalue required as left operand of assignment
9 | if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c=a*a))
| ^
|
s964495849
|
p00003
|
C
|
#include <stdio.h>
int main(void){
int n,a,b,c,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d %d",&a,&b,&c);
if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c=a*a))
{printf("YES");}
else{printf("NO");}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:50: error: lvalue required as left operand of assignment
9 | if((a*a+b*b==c*c)||(a*a+c*c==b*b)||(b*b+c*c=a*a))
| ^
|
s819230937
|
p00003
|
C
|
int 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;}
|
main.c: In function 'main':
main.c:1:5: error: type of 'a' defaults to 'int' [-Wimplicit-int]
1 | int 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;}
| ^~~~
main.c:1:5: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:5: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | int 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;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int 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;}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | int 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;}
| ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:59: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
1 | int 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;}
| ^~~~
main.c:1:59: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:97: error: expected ')' before 'a'
1 | int 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;}
| ~ ^
| )
main.c:1:112: error: expected expression before '}' token
1 | int 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;}
| ^
|
s881690846
|
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;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
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;}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
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;}
| ^~~~
main.c:1:23: error: expected ';' before ')' token
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;}
| ^
| ;
main.c:1:23: error: expected expression before ')' token
main.c:1:25: error: implicit declaration of function 'scnaf' [-Wimplicit-function-declaration]
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;}
| ^~~~~
main.c:1:50: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
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;}
| ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
+++ |+#include <stdio.h>
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;}
main.c: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;}
| ^
main.c:1:85: error: 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;}
| ^~~~~~~~~~~~~~~~~~~
main.c:1:82: error: 'YES' undeclared (first use in this function)
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;}
| ^~~
main.c:1:82: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:85: error: expected ')' at end of input
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;}
| ~ ^
| )
main.c:1:23: error: expected declaration or statement at end of input
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;}
| ^
|
s331076209
|
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;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
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;}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
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;}
| ^~~~
main.c:1:23: error: expected ';' before ')' token
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;}
| ^
| ;
main.c:1:23: error: expected expression before ')' token
main.c:1:25: error: implicit declaration of function 'scnaf' [-Wimplicit-function-declaration]
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;}
| ^~~~~
main.c:1:50: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
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;}
| ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
+++ |+#include <stdio.h>
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;}
main.c:1:88: error: expected ';' before ')' token
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;}
| ^
| ;
main.c:1:88: error: expected statement before ')' token
|
s845177377
|
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;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
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;}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:18: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
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;}
| ^~~~
main.c:1:26: error: implicit declaration of function 'scnaf' [-Wimplicit-function-declaration]
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;}
| ^~~~~
main.c:1:51: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
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;}
| ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
+++ |+#include <stdio.h>
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;}
|
s926659867
|
p00003
|
C
|
main(a,b,c){for(gets();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;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b,c){for(gets();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;}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
1 | main(a,b,c){for(gets();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;}
| ^~~~
main.c:1:24: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main(a,b,c){for(gets();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;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b,c){for(gets();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;}
main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(a,b,c){for(gets();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;}
| ^~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:49: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
1 | main(a,b,c){for(gets();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;}
| ^~~~
main.c:1:49: note: include '<stdio.h>' or provide a declaration of 'puts'
|
s370440137
|
p00003
|
C
|
main(a,b,c){for(gets(a);~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;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b,c){for(gets(a);~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;}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
1 | main(a,b,c){for(gets(a);~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;}
| ^~~~
main.c:1:26: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main(a,b,c){for(gets(a);~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;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b,c){for(gets(a);~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;}
main.c:1:26: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(a,b,c){for(gets(a);~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;}
| ^~~~~
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:51: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
1 | main(a,b,c){for(gets(a);~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;}
| ^~~~
main.c:1:51: note: include '<stdio.h>' or provide a declaration of 'puts'
|
s791119438
|
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;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | 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;}
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | 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;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | 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;}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | 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;}
| ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:54: error: expected ')' before ';' token
1 | 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;}
| ~ ^
| )
main.c:1:94: error: expected ';' before 'a'
1 | 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;}
| ^
| ;
main.c:1:109: error: expected expression before '}' token
1 | 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;}
| ^
main.c:1:109: error: expected expression before '}' token
|
s580315504
|
p00003
|
C
|
main(a,b,c,d){
d=10;
for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
return 0;
}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b,c,d){
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:3:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b,c,d){
main.c:3:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
| ^~~~~
main.c:3:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:57: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
| ^~~~
main.c:3:57: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:3:110: error: expected ';' before ')' token
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c);
| ^
| ;
main.c:3:110: error: expected statement before ')' token
|
s985750425
|
p00003
|
C
|
main(a,b,c,d){
d=10;
for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
return 0;
}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(a,b,c,d){
| ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:3:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a,b,c,d){
main.c:3:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
| ^~~~~
main.c:3:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:57: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
| ^~~~
main.c:3:57: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:3:111: error: expected statement before ')' token
3 | for(scanf("%*d");~scanf("%d%d%d",&a,&b,&c)&&d--;puts((a+b-c&&c+b-a&&a+c-b)?"NO":"YES"))a*=a,b*=b,c*=c;)
| ^
|
s363048789
|
p00003
|
C
|
#include<stdio.h>
#include<math.h>
int judge(double a,double b,double c){
int j=0;
if(a*a==b*b+c*c)) j=1;
else if(b*b==a*a+c*c) j=1;
else if(c*c==a*a+b*b) j=1;
else ;
return j;
}
int main(void){
int n;
scanf("%d",&n);
int tri[n][3];
int i=0;
for(i;i<n;i++){
scanf("%d %d %d",&tri[i][0],&tri[i][1],&tri[i][2]);
}
i=0;
for(i;i<n;i++){
int j=0;
j=judge(tri[i][0],tri[i][1],tri[i][2]);
if(j==1)
printf("YES");
else
printf("NO");
}
}
|
main.c: In function 'judge':
main.c:6:19: error: expected statement before ')' token
6 | if(a*a==b*b+c*c)) j=1;
| ^
main.c:7:2: error: 'else' without a previous 'if'
7 | else if(b*b==a*a+c*c) j=1;
| ^~~~
|
s109426783
|
p00003
|
C
|
#include<stdio.h>
int k(int a,int b,int c);
void r(int *a,int *b,int *c);
main()
{
int i,a;
int b[1000],c[1000],d[1000],flag;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d%d%d",&b[i],&c[i],&d[i]);
}
for(i=0;i<a;i++){
flag=k(b[i],c[i],d[i]);
if(flag<0) printf("YES\n");
else printf("NO\n");
}
}
int k(int a,int b,int c){
r(&a,&b,&c);
if(c*c==a*a+b*b) return -1;
else return 0;
}
void r(int *a,int *b,int *c){
int k;
if(a<b) {
if(b<c) return;
else(b>c){
b=k;
c=b;
k=c;
}
}
if(b<a) {
if(c>a) return;
else(c<a) {
a=k;
c=a;
k=a;
}
}
}
|
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
4 | main()
| ^~~~
main.c: In function 'r':
main.c:29:10: error: expected ';' before '{' token
29 | else(b>c){
| ^
| ;
main.c:37:10: error: expected ';' before '{' token
37 | else(c<a) {
| ^~
| ;
|
s771085075
|
p00003
|
C
|
// aoj-0003.c
#include <stdio.h>
int main() {
int i, j, lcnt;
int tri[3], temp;
scanf("%d", &lcnt); // Get how many times to loop
for(i=0; i<lcnt; ++i) {
scanf("%d %d %d", &tri[0], &tri[1], &tri[2]);
for(j=(3-1); j>0; --j;) {
// Bubble Sort lengths of lines
if(trii[i] < tri[i-1]) {
temp = tri[i-1];
tri[i] = tri[i-1];
}
}
if ((tri[0]^2 + tri[1]^2) == tri[2]^2) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:14:38: error: expected ')' before ';' token
14 | for(j=(3-1); j>0; --j;) {
| ~ ^
| )
main.c:16:28: error: 'trii' undeclared (first use in this function); did you mean 'tri'?
16 | if(trii[i] < tri[i-1]) {
| ^~~~
| tri
main.c:16:28: note: each undeclared identifier is reported only once for each function it appears in
|
s762906189
|
p00003
|
C
|
// aoj-0003.c
#include <stdio.h>
int main() {
int i, j, lcnt;
int tri[3], temp;
scanf("%d", &lcnt); // Get how many times to loop
for(i=0; i<lcnt; ++i) {
scanf("%d %d %d", &tri[0], &tri[1], &tri[2]);
for(j=(3-1); j>0; --j;) {
// Bubble Sort lengths of lines
if(tri[i] < tri[i-1]) {
temp = tri[i-1];
tri[i] = tri[i-1];
}
}
if ((tri[0]^2 + tri[1]^2) == tri[2]^2) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:14:38: error: expected ')' before ';' token
14 | for(j=(3-1); j>0; --j;) {
| ~ ^
| )
|
s596187717
|
p00003
|
C
|
#include <stdio.h>
int main(void){
int a,b,c,j,t;
whie(scanf("%d %d %d",&a,&b,&c)==3){
if(a<b) t=a, a=b, b=t;
if(b<c) t=c, c=b, b=t;
if(c*c!=b*b+a*a) printf("NO\n");
else printg("YES\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'whie' [-Wimplicit-function-declaration]
5 | whie(scanf("%d %d %d",&a,&b,&c)==3){
| ^~~~
main.c:5:44: error: expected ';' before '{' token
5 | whie(scanf("%d %d %d",&a,&b,&c)==3){
| ^
| ;
|
s213089741
|
p00003
|
C
|
#include <stdio.h>
int main(void){
int a,b,c,j,t;
while(scanf("%d %d %d",&a,&b,&c)==3){
if(a<b) t=a, a=b, b=t;
if(b<c) t=c, c=b, b=t;
if(c*c!=b*b+a*a) printf("NO\n");
else printg("YES\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:9:22: error: implicit declaration of function 'printg'; did you mean 'printf'? [-Wimplicit-function-declaration]
9 | else printg("YES\n");
| ^~~~~~
| printf
|
s144181323
|
p00003
|
C
|
#include <stdio.h>
int main(void){
int *a,*b,*c,d,i,n;
scanf("%d",&n);
a = n*malloc(sizeof(int));
b = n*malloc(sizeof(int));
c = n*malloc(sizeof(int));
for(i=0;i<n;i++){
scanf("%d %d %d",&a[i],&b[i],&c[i]);
}
for(i=0;i<n;i++){
if(a[i]*a[i]+b[i]*b[i]==c[i]*c[i] || b[i]*b[i]+c[i]*c[i]==a[i]*a[i] || c[i]*c[i]+a[i]*a[i]==b[i]*b[i]) printf("YES");
else printf("NO");
}
return 0;
}
|
main.c: In function 'main':
main.c:6:15: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
6 | a = n*malloc(sizeof(int));
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include <stdio.h>
+++ |+#include <stdlib.h>
2 |
main.c:6:15: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
6 | a = n*malloc(sizeof(int));
| ^~~~~~
main.c:6:15: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:6:14: error: invalid operands to binary * (have 'int' and 'void *')
6 | a = n*malloc(sizeof(int));
| ^~~~~~~~~~~~~~~~~~~~
| |
| void *
main.c:7:14: error: invalid operands to binary * (have 'int' and 'void *')
7 | b = n*malloc(sizeof(int));
| ^~~~~~~~~~~~~~~~~~~~
| |
| void *
main.c:8:14: error: invalid operands to binary * (have 'int' and 'void *')
8 | c = n*malloc(sizeof(int));
| ^~~~~~~~~~~~~~~~~~~~
| |
| void *
|
s198053761
|
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\n",&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;
}
|
main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s708641011
|
p00003
|
C
|
#include <iostream>
#include <stdio.h>
#include <cmath>
#define MAX(a,b) (a > b ? a : b)
int main(void){
int c;
scanf("%d",&c);
for(;c;c--){
int x,y,z;
bool f;
scanf("%d%d%d",&x,&y,&z);
if(MAX(z,MAX(x,y))==x)
f = (pow(y,2) + pow(z,2) == pow(x,2));
else{
if(MAX(z,MAX(x,y))==y)
f = (pow(x,2) + pow(z,2) == pow(y,2));
else
f= (pow(x,2)+pow(y,2)==pow(z,2));
}
std::cout << (f?"YES":"NO") << std::endl;
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s813243842
|
p00003
|
C
|
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int d;
cin>>d;
while(d>0){
int num[3];
for(int i = 0 ; i < 3 ; i++ )
{
cin>>num[i];
}
for(int i = 0 ; i < 3 ; i++)
{
for(int j = i+1; j < 3 ; j++)
{
if( num[i] > num[j] )
{
int q = num[i];
num[i] = num[j];
num[j] = q;
}
}
}
if( num[2]*num[2] - num[1]*num[1] == num[0]*num[0] )
{
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
d--;
}
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s176448146
|
p00003
|
C
|
#include<iostream>
#include<math.h>
using namespace std;
int N;
double a, b, c;
void rep(double* x,double* y){
double d;
d = *x;
*x = *y;
*y = d;
}
int main(){
cin >> N;
for(int i = 0; i < N; ++i){
cin >> a >> b >> c;
if(a < b || a < c){
if(b < c){
rep(&a, &c);
}else{
rep(&a, &b);
}
}
if( a*a == b*b + c*c){
cout << "YES\n";
}else{
cout << "NO\n";
}
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s561123595
|
p00003
|
C
|
#include<stdio.h>
int check(int a,int b,int c){
return (a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)?1:0;
int main(){
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c)!=EOF){
ifcheck(a,b,c))printf("YES\n");
else printf("NO\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:8:17: error: implicit declaration of function 'ifcheck'; did you mean 'check'? [-Wimplicit-function-declaration]
8 | ifcheck(a,b,c))printf("YES\n");
| ^~~~~~~
| check
main.c:8:31: error: expected ';' before ')' token
8 | ifcheck(a,b,c))printf("YES\n");
| ^
| ;
main.c:8:31: error: expected statement before ')' token
main.c:9:17: error: 'else' without a previous 'if'
9 | else printf("NO\n");
| ^~~~
main.c: In function 'check':
main.c:12:1: error: expected declaration or statement at end of input
12 | }
| ^
|
s894076378
|
p00003
|
C
|
#include<stdio.h>
int check(int a,int b,int c){
return (a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)?1:0;
}
int main(){
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c)!=EOF){
ifcheck(a,b,c))printf("YES");
else printf("YES");
}
return 0;
}
|
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'ifcheck'; did you mean 'check'? [-Wimplicit-function-declaration]
9 | ifcheck(a,b,c))printf("YES");
| ^~~~~~~
| check
main.c:9:31: error: expected ';' before ')' token
9 | ifcheck(a,b,c))printf("YES");
| ^
| ;
main.c:9:31: error: expected statement before ')' token
main.c:10:17: error: 'else' without a previous 'if'
10 | else printf("YES");
| ^~~~
|
s615595496
|
p00003
|
C
|
#include<stdio.h>
int check(int a,int b,int c){
return (a*a==b*b+c*c||b*b==a*a+c*c||c*c==b*b+a*a)?1:0;
}
int main(){
int x,y,a,b,c;
scanf("%d",&x);
int *ans;
ans=(int*)malloc(sizeof(int)*x);
for(y=0;y<x;x++){
scanf("%d %d %d",&a,&b,&c)
if(1==check(a,b,c))ans[y]=1;
else ans[y]=0;
}
for(y=0;y<x;x++){
if(y)printf("YES\n");
else printf("NO\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:9:19: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
9 | ans=(int*)malloc(sizeof(int)*x);
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ |+#include <stdlib.h>
2 | int check(int a,int b,int c){
main.c:9:19: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
9 | ans=(int*)malloc(sizeof(int)*x);
| ^~~~~~
main.c:9:19: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:11:43: error: expected ';' before 'if'
11 | scanf("%d %d %d",&a,&b,&c)
| ^
| ;
12 | if(1==check(a,b,c))ans[y]=1;
| ~~
main.c:13:17: error: 'else' without a previous 'if'
13 | else ans[y]=0;
| ^~~~
|
s039789705
|
p00003
|
C
|
int main(int argc, char *argv[])
{
int a, b, c;
while(!feof(stdin) && !ferror(stdin)) {
scanf("%d %d %d", &a, &b, &c);
scanf("%*[^\n]");
if(a*a + b*b == c*c) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:10: error: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
5 | while(!feof(stdin) && !ferror(stdin)) {
| ^~~~
main.c:5:15: error: 'stdin' undeclared (first use in this function)
5 | while(!feof(stdin) && !ferror(stdin)) {
| ^~~~~
main.c:1:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | int main(int argc, char *argv[])
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
5 | while(!feof(stdin) && !ferror(stdin)) {
| ^~~~~
main.c:5:26: error: implicit declaration of function 'ferror' [-Wimplicit-function-declaration]
5 | while(!feof(stdin) && !ferror(stdin)) {
| ^~~~~~
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d %d %d", &a, &b, &c);
| ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
11 | printf("YES\n");
| ^~~~~~
main.c:11:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
13 | printf("NO\n");
| ^~~~~~
main.c:13:7: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s533726871
|
p00003
|
C
|
#include<stdio.h>
int check(long a,long b,long c);
int maine(void){
int a,b,c,f,n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf(" %d %d %d",&a,&b,&c);
f=check(a,b,c);
if(f==0)printf("YES\n");
else printf("NO\n");
}
return 0;
}
int check(long a,long b,long c){
int t;
if(c<a){
t=a;
a=c;
c=t;
}
if(c<b){
t=b;
b=c;
c=t;
}
if(a*a+b*b==c*c)return 0;
else return 1;
}
|
/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
|
s007918245
|
p00003
|
C
|
#include <stdio.h>
int main(){
int i,j,k,l,m;
int x[3];
scanf("%d",&i);
forj=0;j<i;j++){
for(k=0;k<3;k++){
scanf("%d",x[k]);
}
for(l=0;l<3;l++){
for(m=0;m<2;m++){
if(x[m]<x[m+1]){
int y=x[m+1];
x[m+1] = x[m];
x[m] = y;
}
}
}
if(x[0]*x[0] == x[1]*x[1]+x[2]*x[2]){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:6:6: error: 'forj' undeclared (first use in this function)
6 | forj=0;j<i;j++){
| ^~~~
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:20: error: expected ';' before ')' token
6 | forj=0;j<i;j++){
| ^
| ;
main.c:6:20: error: expected statement before ')' token
|
s862013730
|
p00003
|
C
|
#include<stdio.h>
int main(){
int n,a,b,c,i;
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:7:47: error: lvalue required as left operand of assignment
7 | if(a*a=b*b+c*c || b*b = a*a+c*c|| c*c = a*a+b*b){
| ^
|
s865143204
|
p00003
|
C
|
#include<stdio.h>
int main(){
int n,a,b,c,i;
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:7:48: error: lvalue required as left operand of assignment
7 | if(a*a=b*b+c*c || b*b = a*a+c*c || c*c = a*a+b*b){
| ^
|
s222030737
|
p00003
|
C
|
#include<stdio.h>
int main(){
scanf("%d", &n);
for(int i = 0;i < n;i++){
scanf("%d%d%d", &a, &b, &c);
a *= a;
b *= b;
c *= c;
if(a + b == c || a + c == b || b + c == a)puts("YES");
else puts("NO");
}
return 0;
}
|
main.c: In function 'main':
main.c:4:16: error: 'n' undeclared (first use in this function)
4 | scanf("%d", &n);
| ^
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: 'a' undeclared (first use in this function)
6 | scanf("%d%d%d", &a, &b, &c);
| ^
main.c:6:26: error: 'b' undeclared (first use in this function)
6 | scanf("%d%d%d", &a, &b, &c);
| ^
main.c:6:30: error: 'c' undeclared (first use in this function)
6 | scanf("%d%d%d", &a, &b, &c);
| ^
|
s298779114
|
p00003
|
C
|
#include<stdio.h>
#include<math.h>
int main(void)
{
int k[100][3],ct;
int mem=0;
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]=k[f][f2];
k[f][f2]=mem;
}
}
}
}
for(int f1=0;f1<ct;f1++){
if(pow((double)k[f1][0],2)==pow((double)k[f1][1],2)+pow((double)k[f1][2],2)){
printf("YES\n");
}
else{
printf("NO\n");
}
}
return 0;
}
|
/usr/bin/ld: /tmp/cciX7iX9.o: in function `main':
main.c:(.text+0x22f): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x279): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x2c6): undefined reference to `pow'
collect2: error: ld returned 1 exit status
|
s890033279
|
p00003
|
C
|
#include<stdio.h>
#include<math.h>
int main(void)
{
int k[100][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]=k[f][f2];
k[f][f2]=mem;
}
}
}
}
for(int f1=0;f1<ct;f1++){
if(pow((double)k[f1][0],2)==pow((double)k[f1][1],2)+pow((double)k[f1][2],2)){
printf("YES\n");
}
else{
printf("NO\n");
}
}
return 0;
}
|
/usr/bin/ld: /tmp/ccRU5iKz.o: in function `main':
main.c:(.text+0x228): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x272): undefined reference to `pow'
/usr/bin/ld: main.c:(.text+0x2bf): undefined reference to `pow'
collect2: error: ld returned 1 exit status
|
s650312158
|
p00003
|
C
|
#include <stdio.h>
int main(){
int n,a,b,c,i,kotae[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if((a*a)+(b*b)==(c*c)||(c*c)+(b*b)==(a*a)||(a*a)+(c*c)==(b*b)){
printf("YES"\n);
}else{
printf("NO"\n);
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:8:45: error: stray '\' in program
8 | printf("YES"\n);
| ^
main.c:8:45: error: expected ')' before 'n'
8 | printf("YES"\n);
| ~ ^~
| )
main.c:10:44: error: stray '\' in program
10 | printf("NO"\n);
| ^
main.c:10:44: error: expected ')' before 'n'
10 | 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 | }
| ^
|
s133627522
|
p00003
|
C
|
#include <stdio.h>
int main(){
int n,a,b,c,i,kotae[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if((a*a)+(b*b)==(c*c)||(c*c)+(b*b)==(a*a)||(a*a)+(c*c)==(b*b)){
printf("YES"\n);
}else{
printf("NO"\n);
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:8:45: error: stray '\' in program
8 | printf("YES"\n);
| ^
main.c:8:45: error: expected ')' before 'n'
8 | printf("YES"\n);
| ~ ^~
| )
main.c:10:44: error: stray '\' in program
10 | printf("NO"\n);
| ^
main.c:10:44: error: expected ')' before 'n'
10 | 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 | }
| ^
|
s594885373
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int sets, i, j, k, side[3];
scanf("%d", &sets);
for(k = 0; k < sets; k++) {
for(i = 0; i < 3; i++) {
scanf("%d", &side[i]);
}
for(i = 0; i < 3; i++) {
for(j = 0; j < 2; j++) {
if(side[j] >= side[j + 1]) {
tmp = side[j + 1];
side[j + 1] = side[j];
side[j] = tmp;
}
}
}
if(side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) printf("YES\n");
else printf("NO\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:14:41: error: 'tmp' undeclared (first use in this function)
14 | tmp = side[j + 1];
| ^~~
main.c:14:41: note: each undeclared identifier is reported only once for each function it appears in
|
s829056092
|
p00003
|
C
|
gfagdgaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
|
main.c:1:1: warning: data definition has no type or storage class
1 | gfagdgaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'gfagdgaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' [-Wimplicit-int]
|
s097260923
|
p00003
|
C
|
for i in range(int(raw_input())):
sides = map(int, raw_input().split())
if sides[0]**2 == sides[1]**2 + sides[2]**2 or\
sides[1]**2 == sides[2]**2 + sides[0]**2 or\
sides[2]**2 == sides[0]**2 + sides[1]**2:
print "YES"
else:
print "NO"
|
main.c:1:1: error: expected identifier or '(' before 'for'
1 | for i in range(int(raw_input())):
| ^~~
|
s159534060
|
p00003
|
C
|
#include<stdio.h>
#include <string.h>
#include<math.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:12:53: error: lvalue required as left operand of assignment
12 | if(a*a=b*b+c*c || b*b=c*c+a*a || c*c=a*a+b*b){
| ^
|
s754321889
|
p00003
|
C
|
#include <stdio.h>
int main(void)
{
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)
{ printf("YES\n"); }
if else (b*b==c*c+a*a)
{ printf("YES\n"); }
if else (c*c==a*a+b*b)
{ printf("YES\n"); }
else
{ printf("NO\n");}
}
return 0;
}
|
main.c: In function 'main':
main.c:16:6: error: expected '(' before 'else'
16 | if else (b*b==c*c+a*a)
| ^~~~
| (
|
s870045016
|
p00003
|
C
|
#include<stdio.h>
int main(){
int i,j,a,b,c,cnt,tmp;
scanf("%d",&cnt);
for(i=0;i<cnt;i++){
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");
}
return 0;
}
|
main.c: In function 'main':
main.c:23:24: error: lvalue required as left operand of assignment
23 | if(a*a = b*b + c*c) printf("YES\n");
| ^
|
s270275600
|
p00003
|
C
|
#include<stdio.h>
int main(){
int i,a,b,c,cnt,tmp;
scanf("%d",&cnt);
for(i=0;i<cnt;i++){
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");
}
return 0;
}
|
main.c: In function 'main':
main.c:23:24: error: lvalue required as left operand of assignment
23 | if(a*a = b*b + c*c) printf("YES\n");
| ^
|
s735143116
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d",&a);
scanf("%d%d%d",&b,&c,&d);
if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
printf("YES");
}else{
printf("YES");
}
return 0;
}
|
main.c: In function 'main':
main.c:9:17: error: lvalue required as left operand of assignment
9 | if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
| ^
main.c:9:37: error: lvalue required as left operand of assignment
9 | if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
| ^
main.c:9:57: error: lvalue required as left operand of assignment
9 | if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
| ^
|
s438031418
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d",&a);
scanf("%d%d%d",&b,&c,&d);
if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
printf("YES");
}else{
printf("NO");
}
return 0;
}
|
main.c: In function 'main':
main.c:9:17: error: lvalue required as left operand of assignment
9 | if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
| ^
main.c:9:37: error: lvalue required as left operand of assignment
9 | if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
| ^
main.c:9:57: error: lvalue required as left operand of assignment
9 | if((b^2 = c^2 + d^2) ||(c^2 = d^2 + b^2) ||(d^2 = c^2 + b^2)){
| ^
|
s595974497
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d",&a);
scanf("%d%d%d",&b,&c,&d);
if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
printf("YES");
}else{
printf("NO");
}
return 0;
}
|
main.c: In function 'main':
main.c:9:17: error: lvalue required as left operand of assignment
9 | if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
| ^
main.c:9:37: error: lvalue required as left operand of assignment
9 | if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
| ^
main.c:9:57: error: lvalue required as left operand of assignment
9 | if((b*b = c*c + d*d) ||(c*c = d*d + b*b) ||(d*d = c*c + b*b)){
| ^
|
s175950707
|
p00003
|
C
|
#include<stdio.h>
int main(void){
int a,b,c,N,i;
while(scanf("%d%d%d",&a,&b,&c)!=EOF){
if(a*a==b*b+c*c){
printf("YES\n");
}
if(b*b==a*a+c*c){
printf("YES\n");
}
if(c*c==b*b+a*a){
printf("YES\n");
}
else{
printf("NO\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:18:1: error: expected declaration or statement at end of input
18 | }
| ^
|
s932339453
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a;
int b;
int c;
int d;
int i;
scanf("%d", &d);
for(i = 0; i < d; i++){
scanf("%d %d %d", &a, &b, &c);
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");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:12:26: error: lvalue required as left operand of assignment
12 | if(a * a = b * b + c * c){
| ^
main.c:14:32: error: lvalue required as left operand of assignment
14 | }else if(b * b = a * a + c * c){
| ^
main.c:16:32: error: lvalue required as left operand of assignment
16 | }else if(c * c = a * a + b * b){
| ^
|
s161923901
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a;
int b;
int c;
int d;
int i;
scanf("%d", &d);
for(i = 0; i < d; i++){
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
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");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:14:26: error: lvalue required as left operand of assignment
14 | if(a * a = b * b + c * c){
| ^
main.c:16:32: error: lvalue required as left operand of assignment
16 | }else if(b * b = a * a + c * c){
| ^
main.c:18:32: error: lvalue required as left operand of assignment
18 | }else if(c * c = a * a + b * b){
| ^
|
s522755604
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a;
int b;
int c;
int d;
int i;
int aa;
int bb;
int cc;
scanf("%d", &d);
for(i = 0; i < d; i++){
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
aa = a**;
bb = b**;
cc = c**;
if(aa == bb + cc){
printf("Yes\n");
}else if(bb == aa + cc){
printf("Yes\n");
}else if(cc == aa + bb){
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:17:25: error: expected expression before ';' token
17 | aa = a**;
| ^
main.c:18:25: error: expected expression before ';' token
18 | bb = b**;
| ^
main.c:19:25: error: expected expression before ';' token
19 | cc = c**;
| ^
|
s040749180
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a;
int b;
int c;
int d;
int i;
int aa;
int bb;
int cc;
scanf("%d", &d);
for(i = 0; i < d; i++){
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
A = a;
B = b;
C = c;
aa = a * a;
bb = b * b;
cc = c * c;
if(aa == bb + cc){
printf("Yes\n");
}else if(bb == aa + cc){
printf("Yes\n");
}else if(cc == aa + bb){
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:17:17: error: 'A' undeclared (first use in this function)
17 | A = a;
| ^
main.c:17:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:17: error: 'B' undeclared (first use in this function)
18 | B = b;
| ^
main.c:19:17: error: 'C' undeclared (first use in this function)
19 | C = c;
| ^
|
s976078872
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a;
int b;
int c;
int d;
int i;
scanf("%d", &d);
for(i = 0; i < d; i++;){
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
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");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:10:30: error: expected ')' before ';' token
10 | for(i = 0; i < d; i++;){
| ~ ^
| )
|
s936776223
|
p00003
|
C
|
#include"bign.h"
bign p=19,g=2,x=9,p_1;
bign r,s,k,m;
bign hash(bign x){//
bign hashsize=10;
return x+hashsize;
}
int main(){
bign one=1;
p_1=p-one;
printf("select a random numble:");
cin>>k;
printf("input message:");
cin>>m;
r=pow(g,k,p);
s=(hash(m)-x*r)*inv(k,p_1)%p_1;
printf("(r,s):");
cout<<r<<" "<<s;
return 0;
}
|
main.c:1:9: fatal error: bign.h: No such file or directory
1 | #include"bign.h"
| ^~~~~~~~
compilation terminated.
|
s960723881
|
p00003
|
C
|
#include <stdio.h>
int main()
{
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a<b){
if(b<c){
t=a;a=c;c=t;
}
else if(b>c){
t=a;a=b;b=t;
if(a<c){
t=b;b=c;c=t;
}
}
}else if(a>b){
if(c>b){
t=b;b=c;c=t;
if(c>a){
t=a;a=b;b=t;
}
}
}
if(a*a==b**b+c**c){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
7 | scanf("%d",&n);
| ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: 'i' undeclared (first use in this function)
8 | for(i=0;i<n;i++){
| ^
main.c:9:35: error: 'a' undeclared (first use in this function)
9 | scanf("%d %d %d",&a,&b,&c);
| ^
main.c:9:38: error: 'b' undeclared (first use in this function)
9 | scanf("%d %d %d",&a,&b,&c);
| ^
main.c:9:41: error: 'c' undeclared (first use in this function)
9 | scanf("%d %d %d",&a,&b,&c);
| ^
main.c:12:33: error: 't' undeclared (first use in this function)
12 | t=a;a=c;c=t;
| ^
|
s968793999
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int a,b,c,t,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a<b){
if(b<c){
t=a;a=c;c=t;
}
else if(b>c){
t=a;a=b;b=t;
if(a<c){
t=b;b=c;c=t;
}
}
}else if(a>b){
if(c>b){
t=b;b=c;c=t;
if(c>a){
t=a;a=b;b=t;
}
}
}
if(a*a==b**b+c**c){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
7 | scanf("%d",&n);
| ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:27: error: invalid type argument of unary '*' (have 'int')
29 | if(a*a==b**b+c**c){
| ^~
main.c:29:32: error: invalid type argument of unary '*' (have 'int')
29 | if(a*a==b**b+c**c){
| ^~
|
s681155308
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int a,b,c,t,i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a<b){
if(b<c){
t=a;a=c;c=t;
}
else if(b>c){
t=a;a=b;b=t;
if(a<c){
t=b;b=c;c=t;
}
}
else{
t=a;a=c;c=t;
}
}else if(a>b){
if(c>b){
t=b;b=c;c=t;
if(c>a){
t=a;a=b;b=t;
}
}
}else{
if(b<c){
t=a;a=c;c=t
}
}
if(a*a==b*b+c*c){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:32:44: error: expected ';' before '}' token
32 | t=a;a=c;c=t
| ^
| ;
33 | }
| ~
|
s855777183
|
p00003
|
C
|
#include <stdio.h>
int main( void ) {
int i, n, a, b, c;
for ( scanf( "%d", &n ); n--; )
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" );
else
puts( "NO" );
}
return 0;
}
|
main.c:15:9: error: expected identifier or '(' before 'return'
15 | return 0;
| ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
16 | }
| ^
|
s123377339
|
p00003
|
C
|
#include <stdio.h>
int main(){
int n,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){
printf("YES");
}
else if(b*b==a*a+c*c){
printf("YES");
}
else if(c*c==a*a+b*b){
printf("YES");
}
else{
printf("NO");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:15: error: expected ';' before '{' token
7 | scanf("%d",&n){
| ^
| ;
main.c:26:1: error: expected declaration or statement at end of input
26 | }
| ^
|
s731535294
|
p00003
|
C
|
#include <stdio.h>
int main(void){
int N,a,b,c;
scanf("%d",&N);
while(N>0){
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");
}
N--;
}
return 0;
}
|
main.c: In function 'main':
main.c:7:45: error: lvalue required as left operand of assignment
7 | if(a*a=b*b+c*c || b*b=c*c+a*a || c*c=a*a+b*b){
| ^
|
s240182944
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int a;
int i;
int x, y, z;
int max, M, N;
scanf("%d",&a);
for(i = 0; i < a; i++){
scanf("%d %d %d",&x ,&y ,&z);
if(x > y && x > z){
max = x;
M = y;
N = z;
}
else if(y > x && y > z){
max = y;
M = x;
N = z;
}
else{
max = z;
M = x;
N = y;
}
if(max*max == M*M + N*N)
printf("YES\n");
else
printf("NO\n");
}
re
|
main.c: In function 'main':
main.c:33:9: error: 're' undeclared (first use in this function)
33 | re
| ^~
main.c:33:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:11: error: expected ';' at end of input
33 | re
| ^
| ;
main.c:33:9: error: expected declaration or statement at end of input
33 | re
| ^~
|
s666233580
|
p00003
|
C
|
#include <stdio.h>
int main(){
int n, i, j, l1, l2, l3;
scanf("%d", &n);
i = 0;
for (i<n){
scanf("%d %d %d", &l1, &l2, &l3);
if (l1*l1 == l2*l2 + l3*l3 || l2*l2 == l1*l1 +l3+l3 || l3*l3 == l1*l1 + l2*l2)
printf("YES\n");
else
printf("NO\n");
i++;
}
return 0;
}
|
main.c: In function 'main':
main.c:8:17: error: expected ';' before ')' token
8 | for (i<n){
| ^
| ;
main.c:8:17: error: expected expression before ')' token
|
s140838395
|
p00003
|
C
|
#include <stdio.h>
int main(){
int n, i, j, l1, l2, l3;
scanf("%d", &n);
i = 0;
for (i<n){
scanf("%d %d %d", &l1, &l2, &l3);
if (l1*l1 == l2*l2 + l3*l3 || l2*l2 == l1*l1 +l3*l3 || l3*l3 == l1*l1 + l2*l2)
printf("YES\n");
else
printf("NO\n");
i++;
}
return 0;
}
|
main.c: In function 'main':
main.c:8:17: error: expected ';' before ')' token
8 | for (i<n){
| ^
| ;
main.c:8:17: error: expected expression before ')' token
|
s055589017
|
p00003
|
C
|
#includ<stdio>
void judge(int *);
int main(void)
{
int i,n,a,b,c,jud=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a > b && a > c){
if(a*a==b*b+c*c)
jud=1;
}
else if(b > c){
if(b*b==a*a+c*c)
jud=1;
}
else{
if(c*c==a*a+b*b)
jud=1;
}
judge(&jud);
}
return 0;
}
void judge(int *p)
{
if(*p==1)
printf("YES\n");
else
printf("NO\n");
*p=0;
}
|
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
1 | #includ<stdio>
| ^~~~~~
| include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d",&n);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | #includ<stdio>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
7 | scanf("%d",&n);
| ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: In function 'judge':
main.c:29:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
29 | printf("YES\n");
| ^~~~~~
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
31 | printf("NO\n");
| ^~~~~~
main.c:31:17: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s181997438
|
p00003
|
C
|
#includ<stdio>
void judge(int *);
int main(void)
{
int i,n,a,b,c,jud=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a > b && a > c){
if(a*a==b*b+c*c)
jud=1;
}
else if(b > c){
if(b*b==a*a+c*c)
jud=1;
}
else{
if(c*c==a*a+b*b)
jud=1;
}
judge(&jud);
}
return 0;
}
void judge(int *p)
{
if(*p==1)
printf("YES\n");
else
printf("NO\n");
*p=0;
}
|
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
1 | #includ<stdio>
| ^~~~~~
| include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d",&n);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | #includ<stdio>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
7 | scanf("%d",&n);
| ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: In function 'judge':
main.c:29:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
29 | printf("YES\n");
| ^~~~~~
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
31 | printf("NO\n");
| ^~~~~~
main.c:31:17: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s338627970
|
p00003
|
C
|
#includ<stdio.h>
void judge(int *);
int main(void)
{
int i,n,a,b,c,jud=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a > b && a > c){
if(a*a==b*b+c*c)
jud=1;
}
else if(b > c){
if(b*b==a*a+c*c)
jud=1;
}
else{
if(c*c==a*a+b*b)
jud=1;
}
judge(&jud);
}
return 0;
}
void judge(int *p)
{
if(*p==1)
printf("YES\n");
else
printf("NO\n");
*p=0;
}
|
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
1 | #includ<stdio.h>
| ^~~~~~
| include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d",&n);
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | #includ<stdio.h>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
7 | scanf("%d",&n);
| ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: In function 'judge':
main.c:29:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
29 | printf("YES\n");
| ^~~~~~
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
31 | printf("NO\n");
| ^~~~~~
main.c:31:17: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s395461329
|
p00003
|
C
|
N = int(raw_input())
for i in range(N):
a,b,c = sorted(map(int, raw_input().split()))
print (a**2 + b**2 == c**2 and 'YES') or 'NO'
|
main.c:1:1: warning: data definition has no type or storage class
1 | N = int(raw_input())
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
1 | N = int(raw_input())
| ^~~
main.c:4:34: warning: multi-character character constant [-Wmultichar]
4 | print (a**2 + b**2 == c**2 and 'YES') or 'NO'
| ^~~~~
main.c:4:44: warning: multi-character character constant [-Wmultichar]
4 | print (a**2 + b**2 == c**2 and 'YES') or 'NO'
| ^~~~
|
s353640391
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a, b, c;
while(scanf("%d %d %d", &a, &b, &c)){
if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
print("YES\n");
} else {
print("NO\n");
}
}
}
|
main.c: In function 'main':
main.c:7:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
7 | print("YES\n");
| ^~~~~
| printf
|
s713978877
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a, b, c;
int N;
int i;
scanf("%d\n", &N);
int ans[N];
for(i=0;i<N;i++){
if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
ans[i] = 1;
} else {
ans[i] = 0;
}
}
for(i=0;i<N;i++){
if(ans[i]==1) {
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:25:1: error: expected declaration or statement at end of input
25 | }
| ^
|
s354331711
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a, b, c;
int N;
int i;
scanf("%d\n", &N);
int ans[N];
memset(x, 0, sizeof(ans));
for(i=0;i<N;i++){
if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
ans[i] = 1;
} else {
ans[i] = 0;
}
}
for(i=0;i<N;i++){
if(ans[i]==1) {
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
10 | memset(x, 0, sizeof(ans));
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 |
main.c:10:3: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
10 | memset(x, 0, sizeof(ans));
| ^~~~~~
main.c:10:3: note: include '<string.h>' or provide a declaration of 'memset'
main.c:10:10: error: 'x' undeclared (first use in this function)
10 | memset(x, 0, sizeof(ans));
| ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:1: error: expected declaration or statement at end of input
26 | }
| ^
|
s599128291
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a, b, c;
int N;
int i;
scanf("%d\n", &N);
int ans[N];
memset(x, 0, sizeof(ans));
for(i=0;i<N;i++){
if(a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a){
ans[i] = 1;
} else {
ans[i] = 0;
}
}
for(i=0;i<N;i++){
if(ans[i]==1) {
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
10 | memset(x, 0, sizeof(ans));
| ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
1 | #include<stdio.h>
+++ |+#include <string.h>
2 |
main.c:10:3: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
10 | memset(x, 0, sizeof(ans));
| ^~~~~~
main.c:10:3: note: include '<string.h>' or provide a declaration of 'memset'
main.c:10:10: error: 'x' undeclared (first use in this function)
10 | memset(x, 0, sizeof(ans));
| ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
|
s862954561
|
p00003
|
C
|
#include<stdio.h>
int main(){
int a, b, c;
while(scanf("%d %d %d", &a, &b, &c) != EOF){
if(a > b && a > c){
if(a * a == b * b + c * c){
printf("YES\n");
}
}else if(b > a && b > c){
if(b * b == a * a + c * c){
printf("YES\n");
}
}else if(c < a && c < b){
if(c * c == a * a + c * c){
printf("YES\n");
}
}else{
pritnf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:19:7: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
19 | pritnf("NO\n");
| ^~~~~~
| printf
|
s767249149
|
p00003
|
C
|
include<stdio.h>
int main(){
int a, b, c, i;
scanf("%d", &i);
for(; i != 0; i--){
scanf("%d %d %d", &a, &b, &c);
if(a > b && a > c){
if(a * a == b * b + c * c){
printf("YES\n");
}
}else if(b > a && b > c){
if(b * b == a * a + c * c){
printf("YES\n");
}
}else if(c > a && c > b){
if(c * c == a * a + b * b){
printf("YES\n");
}
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s792989080
|
p00003
|
C
|
include<stdio.h>
int main(){
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 && a > c){
if(a * a == b * b + c * c){
printf("YES\n");
}
}else if(b > a && b > c){
if(b * b == a * a + c * c){
printf("YES\n");
}
}else if(c > a && c > b){
if(c * c == a * a + b * b){
printf("YES\n");
}
}else{
printf("NO\n");
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s708847336
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int i,j,values[3];
scanf("%d\n",&i);
for(j=0;j<i;j++)
{
scanf("%d %d %d",&values[0],&values[1],&values[2]);
sort_aoj_volume0003(values);
if(values[0]*values[0] + values[1]*values[1] == values[2]*values[2])
{
printf("YES\n");
}
else
{
printf("NO\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:11:17: error: implicit declaration of function 'sort_aoj_volume0003' [-Wimplicit-function-declaration]
11 | sort_aoj_volume0003(values);
| ^~~~~~~~~~~~~~~~~~~
|
s532293970
|
p00003
|
C
|
#include <stdio.h>
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 && a>c)
a*a = b*b + c*c ? puts("YES") : puts("NO");
else if(b>a && b>c)
b*b = a*a + c*c ? puts("YES") : puts("NO");
else
c*c = a*a + b*b ? puts("YES") : puts("NO");
}
}
|
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
2 | main()
| ^~~~
main.c: In function 'main':
main.c:8:29: error: lvalue required as left operand of assignment
8 | a*a = b*b + c*c ? puts("YES") : puts("NO");
| ^
main.c:10:29: error: lvalue required as left operand of assignment
10 | b*b = a*a + c*c ? puts("YES") : puts("NO");
| ^
main.c:12:29: error: lvalue required as left operand of assignment
12 | c*c = a*a + b*b ? puts("YES") : puts("NO");
| ^
|
s066319270
|
p00003
|
C
|
#include <stdio.h>
int main(void)
{ 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 && a>c)
a*a = b*b + c*c ? puts("YES") : puts("NO");
else if(b>a && b>c)
b*b = a*a + c*c ? puts("YES") : puts("NO");
else
c*c = a*a + b*b ? puts("YES") : puts("NO");
}
}
|
main.c: In function 'main':
main.c:8:29: error: lvalue required as left operand of assignment
8 | a*a = b*b + c*c ? puts("YES") : puts("NO");
| ^
main.c:10:29: error: lvalue required as left operand of assignment
10 | b*b = a*a + c*c ? puts("YES") : puts("NO");
| ^
main.c:12:29: error: lvalue required as left operand of assignment
12 | c*c = a*a + b*b ? puts("YES") : puts("NO");
| ^
|
s450463291
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int n;
int a,b,c;
scanf("%d",&n);
for(i=0;i<n;i++){
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:13: error: 'i' undeclared (first use in this function)
9 | for(i=0;i<n;i++){
| ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:84: error: expected ')' before 'printf'
10 | if(((a*a) == (b*b+c*c) || (b*b) == (c*c+a*a) || (c*c) == (a*a+b*b))
| ~ ^
| )
11 | printf("YES\n");
| ~~~~~~
main.c:14:9: error: expected expression before '}' token
14 | }
| ^
|
s593386448
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int n;
int a,b,c;
scanf("%d",&n);
for(i=0;i<n;i++){
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:13: error: 'i' undeclared (first use in this function)
9 | for(i=0;i<n;i++){
| ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:90: error: expected ')' before 'printf'
10 | if((((a*a) == (b*b+c*c)) || ((b*b) == (c*c+a*a)) || ((c*c) == (a*a+b*b)))
| ~ ^
| )
11 | printf("YES\n");
| ~~~~~~
main.c:14:9: error: expected expression before '}' token
14 | }
| ^
|
s729353516
|
p00003
|
C
|
#include <stdio.h>
int main()
{
int n,i;
int a,b,c;
scanf("%d",&n);
for(i=0;i<n;i++){
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:10:84: error: expected ')' before 'printf'
10 | if(((a*a) == (b*b+c*c) || (b*b) == (c*c+a*a) || (c*c) == (a*a+b*b))
| ~ ^
| )
11 | printf("YES\n");
| ~~~~~~
main.c:14:9: error: expected expression before '}' token
14 | }
| ^
|
s750636272
|
p00003
|
C
|
#include<stdio.h>
#include<math.h>
int main()
{
long long int a,b,c,d,n;
scanf("%lld",&n);
if(n<=1000)
{
for(w=1;w<=n;w++)
{
scanf("%lld%lld%lld",&a,&b,&d);
if(a<=1000&&b<=1000&&d<=1000)
{
c=sqrt(a*a+b*b);
if(c==d)
printf("YES\n");
else
printf("NO\n");
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:10:13: error: 'w' undeclared (first use in this function)
10 | for(w=1;w<=n;w++)
| ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
|
s665959844
|
p00003
|
C
|
#include <stdio.h>
#include <math.h>
int main(void) {
int tmp;
int n;
scanf("%d", &n);
for(int i=0; i<n; i++){
int a=0,b=0,c=0;
scanf("%d %d %d", &a, &b, &c);
if(a<b) {tmp=a; a=b; b=tmp;}
if(a<c) {tmp=a; a=c; c=tmp;}
if( a == sqrt(b*b + c*c) ) printf("YES\n");
else printf("NO\n");
}
return 0;
}
|
/usr/bin/ld: /tmp/ccTEOM5K.o: in function `main':
main.c:(.text+0xd8): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
|
s252255322
|
p00003
|
C
|
#include <stdio.h>
#include <math.h>
int main(void) {
int tmp;
int n;
scanf("%d", &n);
for(int i=0; i<n; i++){
int a=0,b=0,c=0;
scanf("%d %d %d", &a, &b, &c);
if(a<b) {tmp=a; a=b; b=tmp;}
if(a<c) {tmp=a; a=c; c=tmp;}
if( a == sqrt(b*b + c*c) ) printf("YES\n");
else printf("NO\n");
}
return 0;
}
|
/usr/bin/ld: /tmp/cctvMuS3.o: in function `main':
main.c:(.text+0xd8): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
|
s736659797
|
p00003
|
C
|
#include<stdio.h>
#define DETA 1000
int main(void)
{
int x[1000] = {0};
int y[1000] = {0};
int z[1000] = {0};
int i,j;
scanf("%d", &i);
for(j=0; j<i; j++){
scanf("%d %d %d", &x[j], &y[j], &z[j]);
}
for(j=0; j<i; j++){
if(x[j]*x[j] == y[j]*y[j] + z[j]*z[j] || y[j]*y[j] == x[j]*x[j] + z[j]*z[j] || z[j]*z[j] == x[j]*x[j] + y[j]*y[j]){
printf("YES\n");
}else{
printf("NO\n");
}
}
|
main.c: In function 'main':
main.c:22:3: error: expected declaration or statement at end of input
22 | }
| ^
|
s617635140
|
p00003
|
C
|
#include<stdlib.h>
#include<stdio.h>
int main(){
int i,n,x[1000],y[1000],z[1000];
scanf("%d",&i);
for(n=0;n<i;++n){
scanf("%d %d %d",&x[n],&y[n],&z[n]);
}
for(n=0;n<i;++n){
x[n]=x[n]*x[n]+y[n]*y[n];
z[n]=z[n]*z[n];
if(x[n] == z[n]){
printf("YES");
}
else{
printf("NO");
}
return 0;
}
|
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
29 | }
| ^
|
s064687516
|
p00003
|
C
|
#include<stdio.h>
main(){
int a,b,c,N,i;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d %d %d",&a,&b,&c);
if(c>=a &&c>=b){
if(c*c==a*a+b*b){
printf("YES\n");
}
else{
printf("NO\n");
}
}
if(b>=a && b>=c){
if(b*b==a*a+c*c){
printf("YES\n");
}
else{
prinef("NO\n");
}
}
if(a>=b && a>=c){
if(a*a==b*b+c*c){
printf("YES\n");
}
else{
printf("NO\n");
}
}
}
return 0;
}
|
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
2 | main(){
| ^~~~
main.c: In function 'main':
main.c:20:9: error: implicit declaration of function 'prinef'; did you mean 'printf'? [-Wimplicit-function-declaration]
20 | prinef("NO\n");
| ^~~~~~
| printf
|
s490348468
|
p00003
|
C
|
#include<stdio.h>
main(){
int a,b,c,N,i;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d %d %d",&a,&b,&c);
if(c>=a &&c>=b){
if(c*c==a*a+b*b){
printf("YES\n");
}
else{
printf("NO\n");
}
}
else if(b>=a && b>=c){
if(b*b==a*a+c*c){
printf("YES\n");
}
else{
prinef("NO\n");
}
}
else if(a>=b && a>=c){
if(a*a==b*b+c*c){
printf("YES\n");
}
else{
printf("NO\n");
}
}
}
return 0;
}
|
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
2 | main(){
| ^~~~
main.c: In function 'main':
main.c:20:9: error: implicit declaration of function 'prinef'; did you mean 'printf'? [-Wimplicit-function-declaration]
20 | prinef("NO\n");
| ^~~~~~
| printf
|
s069133931
|
p00003
|
C++
|
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int n;
cin>>n;
while (n--)
{
int a,b,c;
if (a*a + b*b =c*c)
cout<<"YES";
else
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main(int, const char**)':
a.cc:10:21: error: lvalue required as left operand of assignment
10 | if (a*a + b*b =c*c)
| ~~~~^~~~~
|
s081685744
|
p00003
|
C++
|
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int n;
cin>>n;
while (n--)
{
int a,b,c;
cin>>a>>b>>c;
if (a*a + b*b =c*c)
cout<<"YES";
else
cout<<"NO";
}
return 0;
}
|
a.cc: In function 'int main(int, const char**)':
a.cc:11:21: error: lvalue required as left operand of assignment
11 | if (a*a + b*b =c*c)
| ~~~~^~~~~
|
s958723098
|
p00003
|
C++
|
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<limits>
#include<numeric>
#include<math.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
int N;
int main(){
cin>>N;
int a[N][3];
rep(i,N){
rep(j,3){
cin>>a[i][j];
}
}
rep(i,N){
sort(a[i],a[i]+3);
if(pow(a[i][0],2)+pow(a[i][1],2)==pow(a[i[2],2]){
out("Yes");
}
else{
out("No");
}
}
}
|
a.cc: In function 'int main()':
a.cc:31:50: error: invalid types 'int[int]' for array subscript
31 | if(pow(a[i][0],2)+pow(a[i][1],2)==pow(a[i[2],2]){
| ^
a.cc:31:57: error: expected ')' before '{' token
31 | if(pow(a[i][0],2)+pow(a[i][1],2)==pow(a[i[2],2]){
| ~ ^
| )
a.cc:37:5: error: expected primary-expression before '}' token
37 | }
| ^
|
s904430608
|
p00003
|
C++
|
#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <cmath>
using namespace std;
int main(){
int a, b, c;
char* str;
str = (char*)malloc(sizeof(char) * 50);
if(fgets(str, 50, stdin) == NULL) return 0; // 読み捨て
while(fgets(str, 50, stdin) != NULL) {
if(!strcmp("", str)) break;
sscanf(str, "%d%d%d", &a, &b, &c);
a = pow(a, 2);
b = pow(b, 2);
c = pow(c, 2);
cout << ((a + b == c || b + c == a || b + c == a) ? "YES" : "NO") << endl;
}
return 0;
}
|
a.cc: In function 'int main()':
a.cc:17:13: error: 'strcmp' was not declared in this scope
17 | if(!strcmp("", str)) break;
| ^~~~~~
a.cc:5:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
4 | #include <cmath>
+++ |+#include <cstring>
5 |
|
s419504431
|
p00003
|
C++
|
#include <stdio.h>
void right_triangle(int a, int b, int c)
{
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");
}
}
int main(void)
{
int n, a, b, c;
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%d %d %d", &a, &b, &c);
right_triangle(a, b, c);
}
return 0;
}
|
a.cc: In function 'void right_triangle(int, int, int)':
a.cc:5:16: error: lvalue required as left operand of assignment
5 | if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
| ~~~~~~^~~~~~~
a.cc:5:43: error: lvalue required as left operand of assignment
5 | if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
| ~~~~~~^~~~~~~
a.cc:5:70: error: lvalue required as left operand of assignment
5 | if ((a * a + b * b = c * c) || (a * a + c * c = b * b) || (b * b + c * c = a * a)) {
| ~~~~~~^~~~~~~
|
s811289118
|
p00003
|
C++
|
#include <stdio.h>
char divide(int math, int english, int japanese);
char class;
int main(void)
{
int dataset;
int math, english, japanese;
while (1){
scanf("%d", &dataset);
if (dataset == 0){
break;
} else {
while (dataset--){
scanf("%d %d %d", &math, &english, &japanese);
class = divide(math, english, japanese);
printf("%c\n", class);
}
}
}
return 0;
}
char divide(int math, int english, int japanese)
{
int sum = math + english + japanese;
if (math == 100 || english == 100 || japanese == 100){
class = 'A';
} else if (math + english >= 90 * 2){
class = 'A';
} else if (sum >= 80 * 3){
class = 'A';
} else if (sum >= 70 * 3){
class = 'B';
} else if (sum >= 50 * 3 && (math >= 80 || english >= 80)){
class = 'B';
} else {
class = 'C';
}
return class;
}
|
a.cc:4:11: error: expected identifier before ';' token
4 | char class;
| ^
a.cc:4:1: error: multiple types in one declaration
4 | char class;
| ^~~~
a.cc:4:11: error: declaration does not declare anything [-fpermissive]
4 | char class;
| ^
a.cc: In function 'int main()':
a.cc:18:17: error: expected primary-expression before 'class'
18 | class = divide(math, english, japanese);
| ^~~~~
a.cc:19:32: error: expected primary-expression before 'class'
19 | printf("%c\n", class);
| ^~~~~
a.cc: In function 'char divide(int, int, int)':
a.cc:32:9: error: expected primary-expression before 'class'
32 | class = 'A';
| ^~~~~
a.cc:34:9: error: expected primary-expression before 'class'
34 | class = 'A';
| ^~~~~
a.cc:36:9: error: expected primary-expression before 'class'
36 | class = 'A';
| ^~~~~
a.cc:38:9: error: expected primary-expression before 'class'
38 | class = 'B';
| ^~~~~
a.cc:40:9: error: expected primary-expression before 'class'
40 | class = 'B';
| ^~~~~
a.cc:42:9: error: expected primary-expression before 'class'
42 | class = 'C';
| ^~~~~
a.cc:45:12: error: expected primary-expression before 'class'
45 | return class;
| ^~~~~
a.cc:45:11: error: expected ';' before 'class'
45 | return class;
| ^~~~~~
| ;
a.cc:45:12: error: expected primary-expression before 'class'
45 | return class;
| ^~~~~
|
s522295740
|
p00003
|
C++
|
#include <stdio.h>
enum {YES, NO} yn;
int tri_judge(int x, int y, int z);
int pow2(int x);
int main(void)
{
int dataset;
scanf("%d", &dataset);
int side1, side2, side3;
while (dataset--){
scanf("%d %d %d", &side1, &side2, &side3);
yn = tri_judge(side1, side2, side3);
if (yn == YES){
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
int tri_judge(int x, int y, int z)
{
if (pow2(x) == pow2(y) + pow2(z)){
yn = YES;
} else if (pow2(y) == pow2(z) + pow2(x)){
yn = YES;
} else if (pow2(z) == pow2(x) + pow2(y)){
yn = YES;
} else {
yn = NO;
}
return yn;
}
int pow2(int x)
{
return x * x;
}
|
a.cc:3:16: warning: built-in function 'yn' declared as non-function [-Wbuiltin-declaration-mismatch]
3 | enum {YES, NO} yn;
| ^~
a.cc: In function 'int main()':
a.cc:16:23: error: invalid conversion from 'int' to '<unnamed enum>' [-fpermissive]
16 | yn = tri_judge(side1, side2, side3);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| int
|
s631980650
|
p00003
|
C++
|
#include <stdio.h>
enum {YES, NO} yn;
int tri_judge(int x, int y, int z);
int pow2(int x);
int main(void)
{
int dataset;
scanf("%d", &dataset);
int side1, side2, side3;
while (dataset--){
scanf("%d %d %d", &side1, &side2, &side3);
yn = tri_judge(side1, side2, side3);
if (yn == YES){
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
int tri_judge(int x, int y, int z)
{
if (pow2(x) == pow2(y) + pow2(z)){
yn = YES;
} else if (pow2(y) == pow2(z) + pow2(x)){
yn = YES;
} else if (pow2(z) == pow2(x) + pow2(y)){
yn = YES;
} else {
yn = NO;
}
return yn;
}
int pow2(int x)
{
return x * x;
}
|
a.cc:3:16: warning: built-in function 'yn' declared as non-function [-Wbuiltin-declaration-mismatch]
3 | enum {YES, NO} yn;
| ^~
a.cc: In function 'int main()':
a.cc:16:23: error: invalid conversion from 'int' to '<unnamed enum>' [-fpermissive]
16 | yn = tri_judge(side1, side2, side3);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| int
|
s531117039
|
p00003
|
C++
|
#include <stdio.h>
enum {YES, NO} y_n;
int tri_judge(int x, int y, int z);
int pow2(int x);
int main(void)
{
int dataset;
scanf("%d", &dataset);
int side1, side2, side3;
while (dataset--){
scanf("%d %d %d", &side1, &side2, &side3);
y_n = tri_judge(side1, side2, side3);
if (y_n == YES){
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
int tri_judge(int x, int y, int z)
{
if (pow2(x) == pow2(y) + pow2(z)){
y_n = YES;
} else if (pow2(y) == pow2(z) + pow2(x)){
y_n = YES;
} else if (pow2(z) == pow2(x) + pow2(y)){
y_n = YES;
} else {
y_n = NO;
}
return y_n;
}
int pow2(int x)
{
return x * x;
}
|
a.cc: In function 'int main()':
a.cc:16:24: error: invalid conversion from 'int' to '<unnamed enum>' [-fpermissive]
16 | y_n = tri_judge(side1, side2, side3);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| int
|
s430673992
|
p00003
|
C++
|
#include<stdio.h>
#include<stdbool.h>
bool right_triangle(int x, int y, int z);
int main(void)
{
int n, a, b, c;
scanf("%d",&n);
for(int i = 0; i < n; i++){
scanf(%d %d %d, &a, &b, &c);
if(right_triangle(a, b, c)){
printf("YES\n");
}else{
printf("NO/n");
}
return 0;
}
bool right_triangle(int x, int y, int z)
{
if(x*x + y*y = z*z || x*x + z*z = y*y || z*z+ y*y = x*x ){
return true;
}
return false;
}
|
a.cc: In function 'int main()':
a.cc:11:15: error: expected primary-expression before '%' token
11 | scanf(%d %d %d, &a, &b, &c);
| ^
a.cc:11:16: error: 'd' was not declared in this scope
11 | scanf(%d %d %d, &a, &b, &c);
| ^
a.cc:21:1: error: a function-definition is not allowed here before '{' token
21 | {
| ^
a.cc:26:2: error: expected '}' at end of input
26 | }
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s979292802
|
p00003
|
C++
|
#include<stdio.h>
#include<stdbool.h>
bool right_triangle(int x, int y, int z);
int main(void)
{
int n, a, b, c;
scanf("%d",&n);
for(int i = 0; i < n; i++){
scanf("%d %d %d", &a, &b, &c);
if(right_triangle(a, b, c)){
printf("YES\n");
}else{
printf("NO/n");
}
}
return 0;
}
bool right_triangle(int x, int y, int z)
{
if(x*x + y*y = z*z || x*x + z*z = y*y || z*z+ y*y = x*x ){
return true;
}
return false;
}
|
a.cc: In function 'bool right_triangle(int, int, int)':
a.cc:23:44: error: lvalue required as left operand of assignment
23 | if(x*x + y*y = z*z || x*x + z*z = y*y || z*z+ y*y = x*x ){
| ~~~~^~~~~~~~~~~
|
s884040945
|
p00003
|
C++
|
#include<stdio.h>
#include<stdbool.h>
bool right_triangle(int x, int y, int z);
int main(void)
{
int n, a, b, c;
scanf("%d",&n);
for(int i = 0; i < n; i++){
scanf("%d %d %d", &a, &b, &c);
if(right_triangle(a, b, c)){
printf("YES\n");
}else{
printf("NO/n");
}
}
return 0;
}
bool right_triangle(int x, int y, int z)
{
if(x*x + y*y = z*z || x*x + z*z = y*y || z*z + y*y = x*x ){
return true;
}
return false;
}
Compile Error Logs:
code.cpp: In function ‘bool right_triangle(int, int, int)’:
code.cpp:23:60: error: lvalue required as left operand of assignment
Status
Judge: 0/1 C++ CPU: 00.00 sec Memory: 0 [KB] Length: 514 [B] 2014-07-10 01:35 2014-07-10 01:35
Results for testcases
Case #1: : Compile Error - - - NA - NA
< | 1 / 1 | > : Compile Error - -
Input #1 ( ) Output #1 ( )
Not available.
Not available.
Comments
Under Construction.
Categories
Free Tags
|
a.cc:35:23: error: extended character ‘ is not valid in an identifier
35 | code.cpp: In function ‘bool right_triangle(int, int, int)’:
| ^
a.cc:35:58: error: extended character ’ is not valid in an identifier
35 | code.cpp: In function ‘bool right_triangle(int, int, int)’:
| ^
a.cc:60:7: error: stray '#' in program
60 | Case #1: : Compile Error - - - NA - NA
| ^
a.cc:68:7: error: stray '#' in program
68 | Input #1 ( ) Output #1 ( )
| ^
a.cc:68:23: error: stray '#' in program
68 | Input #1 ( ) Output #1 ( )
| ^
a.cc: In function 'bool right_triangle(int, int, int)':
a.cc:25:45: error: lvalue required as left operand of assignment
25 | if(x*x + y*y = z*z || x*x + z*z = y*y || z*z + y*y = x*x ){
| ~~~~^~~~~~~~~~~~
a.cc: At global scope:
a.cc:33:1: error: 'Compile' does not name a type
33 | Compile Error Logs:
| ^~~~~~~
|
s589008902
|
p00003
|
C++
|
#include<stdio.h>
#include<string.h>
int checkRightAngle(a,b,c){
if(a*a == b*b + c*c ||
b*b == a*a + c*c ||
c*c == a*a + b*b){
return 1;
}
return 0;
}
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(checkRightAngle(a,b,c)){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
|
a.cc:4:21: error: 'a' was not declared in this scope
4 | int checkRightAngle(a,b,c){
| ^
a.cc:4:23: error: 'b' was not declared in this scope
4 | int checkRightAngle(a,b,c){
| ^
a.cc:4:25: error: 'c' was not declared in this scope
4 | int checkRightAngle(a,b,c){
| ^
a.cc:4:26: error: expression list treated as compound expression in initializer [-fpermissive]
4 | int checkRightAngle(a,b,c){
| ^
a.cc: In function 'int main()':
a.cc:20:35: error: 'checkRightAngle' cannot be used as a function
20 | if(checkRightAngle(a,b,c)){
| ~~~~~~~~~~~~~~~^~~~~~~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.