submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s902509597
|
p00004
|
C
|
#include<stdio.h>
int main(void){
float a,b,c,d,e,f,x,y;
scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)
x=(f-e*c/b)/(d-e*a/b);
y=(c-a*x)/b;
printf("%.3f %.3f\n",x,y);
return 0;
}
|
main.c: In function 'main':
main.c:8:53: error: expected ';' before 'x'
8 | scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)
| ^
| ;
9 | x=(f-e*c/b)/(d-e*a/b);
| ~
|
s570423460
|
p00004
|
C
|
//
#include "stdafx.h"
int main()
{
double a[7];
int i;
int flag = 1;
double x, y;
while (flag) {
for (i = 0; i < 6;i++) {
scanf("%lf",&a[i]);
}
if (i == 6) {
if (getchar() != '\n') {
flag = 0;
}
else {
flag = 1;
}
}
y = (a[5] - a[3] * a[2] / a[0]) / (-a[3] * a[1] / a[0] + a[4]);
x = (a[2] / a[0]) - a[1] * ((a[5] - a[3] * a[2] / a[0]) / (-a[3] * a[1] / a[0] + a[4])) / a[0];
printf("%.3f %.3f\n", x, y);
}
return 0;
}
|
main.c:3:10: fatal error: stdafx.h: No such file or directory
3 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s523918740
|
p00004
|
C
|
#include<stdio.h>
int main(void){
float a,b,c,d,e,f;
while(scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=EOF){
x=(c*e-b*f)/(a*e-b*d);
y=(f-d*x)/e;
printf("%.3f %f.3\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:7:1: error: 'x' undeclared (first use in this function)
7 | x=(c*e-b*f)/(a*e-b*d);
| ^
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: 'y' undeclared (first use in this function)
8 | y=(f-d*x)/e;
| ^
|
s448937328
|
p00004
|
C
|
#include<stdio.h>
int main(void){
float a,b,c,d,e,f,g,h;
scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f);
g=b;
h=c;
b=b*d-e*a;//y????????°
c=c*d-f*a;
b=c/b;/y????§£
g=(h-g*b)/a;//x????§£
printf("%.4f %.4f\n",b,g);
return 0;
}
|
main.c: In function 'main':
main.c:11:7: error: expected expression before '/' token
11 | b=c/b;/y????§£
| ^
main.c:11:13: error: stray '\302' in program
11 | b=c/b;/y????<U+00A7><U+00A3>
| ^~~~~~~~
main.c:11:14: error: stray '\302' in program
11 | b=c/b;/y????<U+00A7><U+00A3>
| ^~~~~~~~
|
s038133067
|
p00004
|
C
|
#include<stdio.h>
int main(void){
while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
double x,y;
x=(c*e-b*f)/(a*e-b*d),y=(a*f-c*d)/(a*e-b*d);
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:36: error: 'a' undeclared (first use in this function)
4 | while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:4:36: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:39: error: 'b' undeclared (first use in this function)
4 | while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:4:42: error: 'c' undeclared (first use in this function)
4 | while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:4:45: error: 'd' undeclared (first use in this function)
4 | while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:4:48: error: 'e' undeclared (first use in this function)
4 | while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:4:51: error: 'f' undeclared (first use in this function)
4 | while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
|
s789933708
|
p00004
|
C
|
#include <stdio.h>
int main(void){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f)!=EOF)
{
x=(c*e-b*f)/(a*e-b*f),y=(a*f-c*d)/(a*e-b*f);
x=((int)(1000*x+0.5))/1000,y=((int)(1000*y+0.5))/1000
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:9:54: error: expected ';' before 'printf'
9 | x=((int)(1000*x+0.5))/1000,y=((int)(1000*y+0.5))/1000
| ^
| ;
10 | printf("%.3f %.3f\n",x,y);
| ~~~~~~
|
s216214318
|
p00004
|
C
|
#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
int a, b, c, d, e, f;
double x, y;
while(cin >> a >> b >> c >> d >> e >> f){
x = (c*e-b*f) / (a*e-b*d);
y = (f-d*x) / e;
printf("%.3f %.3f\n", x, y);
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s158786712
|
p00004
|
C
|
include <stdio.h>
int main (void) {
double a, b, c, d, e, f;
double x=0, y=0;
scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f);
x = (f*b-c*e)/(b*d-a*e);
y = (c-a*x)/b;
printf("%.3f %.3f\n", x, y);
return 0;
}
|
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s997194910
|
p00004
|
C
|
#include<stdio.h>
#include<stdlib.h>
int main(){
int a,b,c,d,e,f;
float x,y;
while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
if((b>=0&&e>=0)||(b<0&&e<0)){
x=(c*abs(e)-f*abs(b))/(a*abs(e)-d*abs(b));
}
else{
x=(c*abs(e)+f*abs(b))/(a*abs(e)+d*abs(b));
}
y=(c-a*x)/b;]
if(-0.0005<x && x<=0)x=0;
if(-0.0005<y && y<=0)y=0;
printf("%1.3f %1.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:13:29: error: expected statement before ']' token
13 | y=(c-a*x)/b;]
| ^
|
s818906929
|
p00004
|
C
|
#include <stdio.h>
int main(){
int aa,bb,cc,dd,ee,ff;
double x,y;
while(scanf("%d %d %d %d %d %d",&aa ,&bb ,&cc, &dd, &ee ,&ff)){
double a=aa,b=bb,c=cc,d=dd,e=ee,f=ff;
double tmp=(d/e)-(a/b);
x=((f/e)-(c/b))/tmp;
y=(c-(a*x))/b;
x=x*1000;y=y*1000;
if(x<0) x-=0.5;
else x+=0.5;
if(y<0) y-=0.5;
else y+=0.5;
x=int(x);y=int(y);
x/=1000;
y/=1000;
printf("%.3lf %.3lf\n", x , y );
}
}
|
main.c: In function 'main':
main.c:15:19: error: expected expression before 'int'
15 | x=int(x);y=int(y);
| ^~~
main.c:15:28: error: expected expression before 'int'
15 | x=int(x);y=int(y);
| ^~~
|
s546066113
|
p00004
|
C
|
#include <stdio.h>
int main(){
int aa,bb,cc,dd,ee,ff;
double x,y;
while(scanf("%d %d %d %d %d %d",&aa ,&bb ,&cc, &dd, &ee ,&ff)){
double a=aa,b=bb,c=cc,d=dd,e=ee,f=ff;
double tmp=(d/e)-(a/b);
x=((f/e)-(c/b))/tmp;
y=(c-(a*x))/b;
x=x*1000;y=y*1000;
if(x<0) x-=0.5;
else x+=0.5;
if(y<0) y-=0.5;
else y+=0.5;
x=int(x);y=int(y);
x/=1000;
y/=1000;
printf("%.3lf %.3lf\n", x , y );
}
return 0;
}
|
main.c: In function 'main':
main.c:15:19: error: expected expression before 'int'
15 | x=int(x);y=int(y);
| ^~~
main.c:15:28: error: expected expression before 'int'
15 | x=int(x);y=int(y);
| ^~~
|
s521211516
|
p00004
|
C
|
#include<stdio.h>
int main()
{
double a,b,c,d,e,f,i,x,y;
double x=c*e-b*f/a*f-b*d;
double y=a*c-d*c/a*f-b*d;
scanf("%d %d %d %d %d %d\n",&a,&b,&c,&d,&e,&f);
printf("%.3lf %.3lf\n",x,y);
return 0;
}
|
main.c: In function 'main':
main.c:6:16: error: redeclaration of 'x' with no linkage
6 | double x=c*e-b*f/a*f-b*d;
| ^
main.c:5:30: note: previous declaration of 'x' with type 'double'
5 | double a,b,c,d,e,f,i,x,y;
| ^
main.c:7:16: error: redeclaration of 'y' with no linkage
7 | double y=a*c-d*c/a*f-b*d;
| ^
main.c:5:32: note: previous declaration of 'y' with type 'double'
5 | double a,b,c,d,e,f,i,x,y;
| ^
|
s621905793
|
p00004
|
C
|
#include <stdio.h>
/*
??£???????¨????
ax+by=c
dx+ey=f
????§£???x, y ???????????????????????°?????????????????????????????????a, b, c, d, e, f ??????
???????????? -1,000 ??\??? 1,000 ??\???????????°??¨????????£???????¨????????§£?????????????????¨
??????????????????????????????????????¨????????????
Input
?????°???????????????????????????????????????????????\?????????????????§????????????????????????1??????
?????????????????????1???????????????????????????1??????????????????????????? a, b, c, d, e, f
???1????????????????????§????????????????????????????????????
Output
????????????????????????????????????x, y ???1????????????????????§????????£???1?????????????????????
???????????????????°???°?????\????¬¬3????????§?????????????????????????°???°?????\????¬¬4???????????¨???
??\??????????????????
*/
//
// ??£???2???????¬?????¨????(?????\??° x, y????????° a, b, c, d, e, f )
//
// ax + by = c
// dx + ey = f
//
// ?§£
//
// x = ( c * e - b * f ) / ( a * e - b * d )
// y = ( f * a - c * d ) / ( a * e - d * b )
int main( void )
{
int a, b, c, d, e, f;
double x, y;
scanf( "%d %d %d %d %d %d ", &a, &b, &c, &d, &e, &f );
x = ( double )( c * e - b * f ) / ( double )( a * e - b * d )
y = ( double )( f * a - c * d ) / ( double )( a * e - d * b )
printf( "%lf %lf\n", x, y );
return 0;
}
|
main.c: In function 'main':
main.c:47:70: error: expected ';' before 'y'
47 | x = ( double )( c * e - b * f ) / ( double )( a * e - b * d )
| ^
| ;
48 | y = ( double )( f * a - c * d ) / ( double )( a * e - d * b )
| ~
|
s422671440
|
p00004
|
C
|
#include <stdio.h>
/*
??£???????¨????
ax+by=c
dx+ey=f
????§£???x, y ???????????????????????°?????????????????????????????????a, b, c, d, e, f ??????
???????????? -1,000 ??\??? 1,000 ??\???????????°??¨????????£???????¨????????§£?????????????????¨
??????????????????????????????????????¨????????????
Input
?????°???????????????????????????????????????????????\?????????????????§????????????????????????1??????
?????????????????????1???????????????????????????1??????????????????????????? a, b, c, d, e, f
???1????????????????????§????????????????????????????????????
Output
????????????????????????????????????x, y ???1????????????????????§????????£???1?????????????????????
???????????????????°???°?????\????¬¬3????????§?????????????????????????°???°?????\????¬¬4???????????¨???
??\??????????????????
*/
//
// ??£???2???????¬?????¨????(?????\??° x, y????????° a, b, c, d, e, f )
//
// ax + by = c
// dx + ey = f
//
// ?§£
//
// x = ( c * e - b * f ) / ( a * e - b * d );
// y = ( f * a - c * d ) / ( a * e - d * b );
int main( void )
{
int a, b, c, d, e, f;
double x, y;
scanf( "%d %d %d %d %d %d ", &a, &b, &c, &d, &e, &f );
x = ( double )( c * e - b * f ) / ( double )( a * e - b * d )
y = ( double )( f * a - c * d ) / ( double )( a * e - d * b )
printf( "%lf %lf\n", x, y );
return 0;
}
|
main.c: In function 'main':
main.c:47:70: error: expected ';' before 'y'
47 | x = ( double )( c * e - b * f ) / ( double )( a * e - b * d )
| ^
| ;
48 | y = ( double )( f * a - c * d ) / ( double )( a * e - d * b )
| ~
|
s048856517
|
p00004
|
C
|
#include<stdio.h)
int main(){
int i,n=0,a,b,c,d,e,f;
double x[100],y[100];
while(scanf("%d %d %d %d %d %d",&a ,&b ,&c ,&d ,&e ,&f )!=EOF){
x[n]=(double)((a*c-b*f)/(a*e-b*d));
y[n]=(double)((d*c-a*f)/(b*d-a*e));
n++;
}
for(i=0;i<n;i++){
printf("%5f %5f",x[i],y[y]);
}
return 0;
}
|
main.c:1:18: error: missing terminating > character
1 | #include<stdio.h)
| ^
main.c:1:9: fatal error: stdio.h): No such file or directory
1 | #include<stdio.h)
| ^
compilation terminated.
|
s093215814
|
p00004
|
C
|
#include<stdio.h>
int main(){
int i,n=0,a,b,c,d,e,f;
double x[100],y[100];
while(scanf("%d %d %d %d %d %d",&a ,&b ,&c ,&d ,&e ,&f )!=EOF){
x[n]=(double)((a*c-b*f)/(a*e-b*d));
y[n]=(double)((d*c-a*f)/(b*d-a*e));
n++;
}
for(i=0;i<n;i++){
printf("%5f %5f",x[i],y[y]\n);
}
return 0;
}
|
main.c: In function 'main':
main.c:18:24: error: array subscript is not an integer
18 | printf("%5f %5f",x[i],y[y]\n);
| ^
main.c:18:27: error: stray '\' in program
18 | printf("%5f %5f",x[i],y[y]\n);
| ^
main.c:18:27: error: expected ')' before 'n'
18 | printf("%5f %5f",x[i],y[y]\n);
| ~ ^~
| )
|
s503947306
|
p00004
|
C
|
#include<stdio.h>
int main(){
int i,n=0,a,b,c,d,e,f;
double x[100],y[100];
while(scanf("%d %d %d %d %d %d",&a ,&b ,&c ,&d ,&e ,&f )!=EOF){
x[n]=(double)((a*c-b*f)/(a*e-b*d));
y[n]=(double)((d*c-a*f)/(b*d-a*e));
n++;
}
for(i=0;i<n;i++){
printf("%5f %5f\n",x[i],y[y]);
}
return 0;
}
|
main.c: In function 'main':
main.c:18:26: error: array subscript is not an integer
18 | printf("%5f %5f\n",x[i],y[y]);
| ^
|
s114235337
|
p00004
|
C
|
#include<stdio.h>
int main(){
int i,n=0,a,b,c,d,e,f;
float x[100],y[100];
while(scanf("%d %d %d %d %d %d",&a ,&b ,&c ,&d ,&e ,&f )!=EOF){
x[n]=(float)((a*c-b*f)/(a*e-b*d));
y[n]=(float)((d*c-a*f)/(b*d-a*e));
n++;
}
for(i=0;i<n;i++){
printf("%5f %5f\n",x[i],y[y]);
}
return 0;
}
|
main.c: In function 'main':
main.c:18:26: error: array subscript is not an integer
18 | printf("%5f %5f\n",x[i],y[y]);
| ^
|
s110668113
|
p00004
|
C
|
include<stdio.h>
int main(void){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != EOF){
x=(c*e-b*f)/(a*e-d*b);
y=(a*f-c*d)/(a*e-d*b);
if(-0.0005<x && x<0.0005) x=0;
if(-0.0005<y && y<0.0005) y=0;
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s118689788
|
p00004
|
C
|
#include <stdio.h>
int main( void )
{
int a,b,c,d,e,f;
float x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f) != -1){
y = (float)(( c*d -a*f ) / (b*d-a*e));
x = (float)(( c*e -b*f ) / (a*e-b*d));
printf( "%.3lf %.3f\n",x,y);
???
return 0;
}
|
main.c: In function 'main':
main.c:12:5: error: expected expression before '?' token
12 | ???
| ^
main.c:14:1: error: expected declaration or statement at end of input
14 | }
| ^
|
s685181329
|
p00004
|
C
|
#include <stdio.h>
int main()
{
int a, b, c, e, f, g;
float x, y;
while(scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e ,&f) != -1){
x = (float)(e*c - b*f) / (a*e - b*d);
y = (float)(a*f - c*d) /(a*e - b*d);
if(-0,0005 < x && x <= 0) x = 0;
if(-0,0005 < y && y <= 0) y = 0;
printf("%.3f %.3f\n", x, y);
}
return 0;
}
|
main.c: In function 'main':
main.c:9:49: error: 'd' undeclared (first use in this function)
9 | while(scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e ,&f) != -1){
| ^
main.c:9:49: note: each undeclared identifier is reported only once for each function it appears in
|
s907794946
|
p00004
|
C
|
#include <stdio.h>
??
int main() {
????????double a, b, c, d, e, f;
????????double x, y;
??
????????while (scanf("%f", &a) != EOF) {
????????????????scanf("%f %f %f %f %f", &b, &c, &d, &e, &f);
????????????????b *= d / a;
????????????????c *= d / a;
????????????????a = d;
????????????????if ((a > 0 && d > 0) || (a < 0 && d < 0)) {
????????????????????????a *= -1;
????????????????????????b *= -1;
????????????????????????c *= -1;
????????????????}
????????????????e += b;
????????????????f += c;
????????????????y = f / e;
????????????????x = (-1 * b * y + c) / a;
????????????????if (x == -0) x = 0;
????????????????else if (y == -0) y = 0;
??
????????????????printf("%.3lf %.3lf\n", x, y);
????????}
??
????????return 0;
}
|
main.c:2:1: error: expected identifier or '(' before '?' token
2 | ??
| ^
|
s844285733
|
p00004
|
C
|
include<stdio.h>
int main(){
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
y=(c*d-f*a)/(b*d-e*a);
x=(c-b*y)/a;
printf("%.3f %.3f\n",x,y);
}
return 0;}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s922785663
|
p00004
|
C
|
#include<stdio.h>
int main()
{
double a,b,c,d,e,f,x,x1,x2,and,then;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,%f)!=EOF)
{
x2=(c*e)-(b*f);
then=(a*e)-(b*d);
and=(a*f)-(d*c);
x=(x2)/(then);
x1=(and)/(then);
if((x2/then)==-0)
{
x=0;
}
printf("%0.3lf %0.3lf\n",x,x1);
}
return 0;
}
|
main.c: In function 'main':
main.c:5:54: error: expected expression before '%' token
5 | while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,%f)!=EOF)
| ^
|
s489643985
|
p00004
|
C
|
#include<stdio.h>
int main(void){
int a,b,c,d,e,f,i;
double x,y;
for(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
y=(c*d-a*f)/(b*d-a*e);
x=(c*e-f*b)/(a*e-b*d);
printf("%.3f %.3f\n\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:5:62: error: expected ';' before ')' token
5 | for(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:5:62: error: expected expression before ')' token
|
s931842558
|
p00004
|
C
|
#include <stdio.h>
#include <math.h>
using namespace std;
int main(){
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
x=(c*e-b*f)/(a*e-d*b);
y=(a*f-c*d)/(a*e-b*d);
if(x == 0)x=0;
if(y == 0)y=0;
printf("%.3lf %.3lf\n",x,y);
}
return 0;
}
|
main.c:4:1: error: unknown type name 'using'
4 | using namespace std;
| ^~~~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
4 | using namespace std;
| ^~~
|
s493746663
|
p00004
|
C
|
#include<stdio.h>
int main()
{
float a,b,c,d,e,f,s,t;
while(scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f)!=EOF)
{
t=(c*d-f*a)/(b*d-e*a);
s=(c-b*t)/a;
printf(“%.3f %.3f\n”,s,t);
}
return 0;
}
|
main.c: In function 'main':
main.c:9:9: error: stray '\342' in program
9 | printf<U+FF08><U+201C>%.3f %.3f\n<U+201D>,s,t);
| ^~~~~~~~
main.c:9:1: error: 'printf\U0000ff08' undeclared (first use in this function); did you mean 'printf'?
9 | printf(“%.3f %.3f\n”,s,t);
| ^~~~~~~~
| printf
main.c:9:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:19: error: stray '\' in program
9 | printf(“%.3f %.3f\n”,s,t);
| ^
main.c:9:19: error: expected ';' before 'n'
9 | printf(“%.3f %.3f\n”,s,t);
| ^~
| ;
main.c:9:21: error: stray '\342' in program
9 | printf<U+FF08><U+201C>%.3f %.3f\n<U+201D>,s,t);
| ^~~~~~~~
main.c:9:26: error: expected statement before ')' token
9 | printf(“%.3f %.3f\n”,s,t);
| ^
|
s034627814
|
p00004
|
C
|
#include<stdio.h>
int main(void){
double a, b, c, d, e, f;
double A,B;
double x, y;
while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
if ( (a >= 0 && d < =0)|| (a >= 0 && d >= 0)) {
A = c*d - f*a;
B = b*d - e*a;
y = A / B;
}
else if ((a < 0 && d > 0) || (a < 0 && d < 0)) {
A = c*d + f*a;
B = b*d + e*a;
y = A / B;
}
x = (c - y * b) / a;
printf("%.3f %.3f\n" ,x , y);
}
return 0;
}
|
main.c: In function 'main':
main.c:11:30: error: expected expression before '=' token
11 | if ( (a >= 0 && d < =0)|| (a >= 0 && d >= 0)) {
| ^
|
s656571190
|
p00004
|
C
|
#include<stdio.h>
int main(void){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
y=(a*f-d*c)/(a*e-d*b);
x=(b*f-e*c)/(b*d-a*e);
if(y%0.01>0.004){
y+=0.001;
}
if(x%0.01>0.004){
x+=0.001;
}
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:21: error: invalid operands to binary % (have 'double' and 'double')
8 | if(y%0.01>0.004){
| ^
main.c:11:21: error: invalid operands to binary % (have 'double' and 'double')
11 | if(x%0.01>0.004){
| ^
|
s184017859
|
p00004
|
C
|
#include <stdio.h>
main(){
double x=0,y=0,a,b,c,d,e,f;
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f) !=EOF){
if(a!=0||a*e!=0||c/a-(b*f)/(a*e)!=0||1-b*d/(a*e)!=0){
x=(c/a-(b*f)/(a*e))/(1-b*d/(a*e));
y=(f-d*x)/e;
}
else if(a==0){
y=c/b;
x=(f-e*y)/d;
}
else if(e==0){
x=f/d;
y=(c-a*x)/b;
}
else{
x=(f/d-(e*c)/(b*d))/(1-a*e/(b*d));
y=(f-d*x)/e;
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
2 | main(){
| ^~~~
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
24 | }
| ^
|
s083806072
|
p00004
|
C
|
main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^~~~
main.c: In function 'main':
main.c:1:53: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
main.c:1:53: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^~~~~
main.c:1:53: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:208: error: lvalue required as left operand of assignment
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^
main.c:1:215: error: lvalue required as left operand of assignment
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^
main.c:1:218: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^~~~~~
main.c:1:218: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:218: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:218: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:247: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
+++ |+#include <stdlib.h>
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
main.c:1:247: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
1 | main(){double a,b,c,d,e,f,g,h,i,j,k,l,x,y,t,u;while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=-1){j=g=a*d;k=e*a;h=d*b;i=c*d;l=f*a;t=h-k;u=i-l;y=u/t;h=k=b*e;g=e*a;i=c*e;j=d*b;l=f*b;t=g-j;u=i-l;x=u/t;x||x=0;y||y=0;printf("%.3lf %.3lf\n",x,y);}exit(0);}
| ^~~~
main.c:1:247: note: include '<stdlib.h>' or provide a declaration of 'exit'
|
s049241578
|
p00004
|
C
|
b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
|
main.c:1:1: warning: data definition has no type or storage class
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
main.c:1:5: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
main.c:1:7: error: type defaults to 'int' in declaration of 'e' [-Wimplicit-int]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
main.c:1:9: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
main.c:1:11: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
main.c:1:13: error: return type defaults to 'int' [-Wimplicit-int]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^~~~
main.c: In function 'main':
main.c:1:13: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:27: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
main.c:1:27: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^~~~~
main.c:1:27: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:119: error: 't0' undeclared (first use in this function); did you mean 't'?
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^~
| t
main.c:1:119: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:122: error: expected identifier before ')' token
1 | b,c,d,e,f,t;main(a){for(;~scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c*e-b*f+0.)/t+0.,(a*f-c*d+0.)/t0.))t=a*e-b*d;}
| ^
|
s598660817
|
p00004
|
C
|
#include <cstdio>
int main(){
int a, b, c, d, e, f;
double x, y;
while(scanf("%d %d %d %d %d %d\n", &a, &b, &c, &d, &e, &f) != EOF){
y = (double)(a * f - c * d) / (double)(a * e - b * d);
x = ((double)c - (double)b * y) / (double)a;
printf("%.3f %.3f\n", x, y);
}
return 0;
}
|
main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s496326640
|
p00004
|
C
|
#include <stdio.h>
#include <cstdio>
int main(){
int a, b, c, d, e, f;
double x, y;
while(scanf("%d %d %d %d %d %d\n", &a, &b, &c, &d, &e, &f) != EOF){
y = (double)(a * f - c * d) / (double)(a * e - b * d);
x = ((double)c - (double)b * y) / (double)a;
printf("%.3f %.3f\n", x, y);
}
return 0;
}
|
main.c:2:10: fatal error: cstdio: No such file or directory
2 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s642255178
|
p00004
|
C
|
#include "stdafx.h"
#include <stdio.h>
int main()
{
int a,b,c,d,e,f,i;
double anx,any;
while(1)
{
if (scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)==EOF) break;
anx=(double)(c/b);
any=(double)((f-e*(int)anx)/d);
printf("%.3lf %.3lf\n",any,anx);
}
return 0;
}
|
main.c:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s157039142
|
p00004
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
x=(1/(a*e-b*d))(e*c-b*f);
y=(1/(a*e-b*d))(-d*c+a*f);
printf("%f %f\n",x,y);
}
|
main.c: In function 'main':
main.c:8:7: error: called object is not a function or function pointer
8 | x=(1/(a*e-b*d))(e*c-b*f);
| ~~^~~~~~~~~~~
main.c:9:7: error: called object is not a function or function pointer
9 | y=(1/(a*e-b*d))(-d*c+a*f);
| ~~^~~~~~~~~~~
main.c:11:2: error: expected declaration or statement at end of input
11 | }
| ^
|
s885653845
|
p00004
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF){
x=(1/(a*e-b*d))(e*c-b*f);
y=(1/(a*e-b*d))(-d*c+a*f);
printf("%f %f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:7: error: called object is not a function or function pointer
8 | x=(1/(a*e-b*d))(e*c-b*f);
| ~~^~~~~~~~~~~
main.c:9:7: error: called object is not a function or function pointer
9 | y=(1/(a*e-b*d))(-d*c+a*f);
| ~~^~~~~~~~~~~
|
s106204996
|
p00004
|
C
|
include <stdio.h>
int main(void)
{
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)==6){
if(c>f)x=(c*e-f*b)/(e*a-b*d);
else x=(f*b-c*e)/(b*d-e*a);
y=(c-a*x)/b;
if((int)(x*10000)%10>=5)x=x+0.001;
if((int)(y*10000)%10>=5)y=y+0.001;
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s947072392
|
p00004
|
C
|
include <stdio.h>
int main(void)
{
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)==6){
x=(f*b-c*e)/(b*d-e*a);
y=(c-a*x)/b;
if((int)(x*10000)%10>=5)x=x+0.001;
if((int)(y*10000)%10>=5)y=y+0.001;
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s077404328
|
p00004
|
C
|
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double a,b,c,d,e,f;
double x,y;
while (1) {
cin>>a>>b>>c>>d>>e>>f;
if (cin.eof())break;
y = (c * d - a * f) / (b * d - e * a);
x = (c - (b * y)) / a;
cout<<setprecision(3)<<setiosflags(ios::fixed)<<x<<" "<<y<<endl;
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s158515636
|
p00004
|
C
|
int main(void){
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
y=(c*d-a*f)/(b*d-e*a);
x=(c-(b*y))/a;
printf("%.3f %.3f\n",x,y);
}
return(0);
}
|
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
5 | while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | int main(void){
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
5 | while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
| ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:56: error: 'EOF' undeclared (first use in this function)
5 | while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF){
| ^~~
main.c:5:56: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:5:56: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
8 | printf("%.3f %.3f\n",x,y);
| ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s593620047
|
p00004
|
C
|
double x,y;
char line[256];
fgets(line,sizeof(line),stdin);
sscanf(line,"%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
x=(d*f-b*e)/(a*d-b*c);
y=(a*f-c*e)/(a*d-b*c);
if(x>0){
if((int)(x*10000) % 10>=5){
x=x+0.001;
}
}
else if(x<0){
if((int)(x*10000)%10<5)
x=x-0.001;
}
else x=0.000;
if(y>0){
if((int)(y*10000) % 10>=5){
y=y+0.001;
}
}
else if(y<0){
if((int)(y*10000)%10<5)
y=y-0.001;
}
else y=0.000;
printf("%.3lf %.3lf\n",x,y);
return 0;
}
|
main.c:4:14: error: expected ')' before 'sizeof'
4 | fgets(line,sizeof(line),stdin);
| ^~~~~~
| )
main.c:5:15: error: expected ')' before string constant
5 | sscanf(line,"%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| )
main.c:7:3: warning: data definition has no type or storage class
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:7:3: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:7:3: error: conflicting types for 'x'; have 'int'
main.c:1:10: note: previous declaration of 'x' with type 'double'
1 | double x,y;
| ^
main.c:7:6: error: 'd' undeclared here (not in a function)
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:7:8: error: 'f' undeclared here (not in a function)
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:7:10: error: 'b' undeclared here (not in a function)
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:7:12: error: 'e' undeclared here (not in a function)
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:7:16: error: 'a' undeclared here (not in a function)
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:7:22: error: 'c' undeclared here (not in a function)
7 | x=(d*f-b*e)/(a*d-b*c);
| ^
main.c:8:3: warning: data definition has no type or storage class
8 | y=(a*f-c*e)/(a*d-b*c);
| ^
main.c:8:3: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
main.c:8:3: error: conflicting types for 'y'; have 'int'
main.c:1:12: note: previous declaration of 'y' with type 'double'
1 | double x,y;
| ^
main.c:10:3: error: expected identifier or '(' before 'if'
10 | if(x>0){
| ^~
main.c:15:3: error: expected identifier or '(' before 'else'
15 | else if(x<0){
| ^~~~
main.c:19:3: error: expected identifier or '(' before 'else'
19 | else x=0.000;
| ^~~~
main.c:21:3: error: expected identifier or '(' before 'if'
21 | if(y>0){
| ^~
main.c:26:3: error: expected identifier or '(' before 'else'
26 | else if(y<0){
| ^~~~
main.c:30:3: error: expected identifier or '(' before 'else'
30 | else y=0.000;
| ^~~~
main.c:32:10: error: expected declaration specifiers or '...' before string constant
32 | printf("%.3lf %.3lf\n",x,y);
| ^~~~~~~~~~~~~~~
main.c:32:26: error: expected declaration specifiers or '...' before 'x'
32 | printf("%.3lf %.3lf\n",x,y);
| ^
main.c:32:28: error: expected declaration specifiers or '...' before 'y'
32 | printf("%.3lf %.3lf\n",x,y);
| ^
main.c:34:3: error: expected identifier or '(' before 'return'
34 | return 0;
| ^~~~~~
main.c:35:1: error: expected identifier or '(' before '}' token
35 | }
| ^
|
s453241441
|
p00004
|
C
|
#include<stdio.h>
int main(void)
{
double x=0 , y=0 ;
int a , b , c , d , e , f , p=0 , r=0 , s=0 ;
while(scanf("%d %d %d %d %d %d",&a ,&b ,&c ,&d ,&e ,&f) != EOF)
{
p=a*e-b*d ;
q=c*e-b*f ;
x=(double)q/p ;
r=b*d-a*e ;
s=c*d-a*f ;
y=(double)s/r ;
if(x==-0) x=0 ;
if(y==-0) y=0 ;
printf("% .3f % .3f\n",x ,y) ;
}
return 0;
}
|
main.c: In function 'main':
main.c:10:1: error: 'q' undeclared (first use in this function)
10 | q=c*e-b*f ;
| ^
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
|
s884407289
|
p00004
|
C
|
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
double a,b,c,d,e,f,x,y;
while(cin>>a>>b>>c>>d>>e>>f){
y=(d*c-f*a)/(b*d-e*a);
x=(c-b*y)/a;
//cout<<x<<" "<<y<<endl;
printf("%.3f %.2f%d",x,y);
}
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s174357014
|
p00004
|
C
|
//#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
double a,b,c,d,e,f,x,y;
while(cin>>a>>b>>c>>d>>e>>f){
y=(d*c-f*a)/(b*d-e*a);
x=(c-b*y)/a;
//cout<<x<<" "<<y<<endl;
printf("%.3f %.2f%d",x,y);
}
}
|
main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
main.c: In function 'main':
main.c:6:15: error: 'cin' undeclared (first use in this function)
6 | while(cin>>a>>b>>c>>d>>e>>f){
| ^~~
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
|
s070496752
|
p00004
|
C
|
//#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
double a,b,c,d,e,f,x,y;
//while(cin>>a>>b>>c>>d>>e>>f){
while(scanf("%d,%d,%d,%d,%d,%d",&a,&b,&c,&d,&e,&f)!=EOF)
y=(d*c-f*a)/(b*d-e*a);
x=(c-b*y)/a;
//cout<<x<<" "<<y<<endl;
printf("%.3f %.2f%d",x,y);
}
}
|
main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
main.c:13:1: error: expected identifier or '(' before '}' token
13 | }
| ^
|
s921616098
|
p00004
|
C
|
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
double a,b,c,d,e,f,x,y;
//while(cin>>a>>b>>c>>d>>e>>f){
while(scanf("%d,%d,%d,%d,%d,%d",&a,&b,&c,&d,&e,&f)!=EOF){
y=(d*c-f*a)/(b*d-e*a);
x=(c-b*y)/a;
//cout<<x<<" "<<y<<endl;
printf("%.3f %.2f%d",x,y);
}
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s937591978
|
p00004
|
C
|
#include<stdio.h>
using namespace std;
int main(){
double a,b,c,d,e,f,x,y;
while(scanf("%d,%d,%d,%d,%d,%d",&a,&b,&c,&d,&e,&f)!=EOF){
y=(d*c-f*a)/(b*d-e*a);
x=(c-b*y)/a;
printf("%.3f %.2f%d",x,y);
}
}
|
main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
|
s831024603
|
p00004
|
C
|
main(float a,b,c,d,e,f){for(;~scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*d)/a,d=(a*f-c*d)/(a*e-b*d)));}
|
main.c:1:14: error: unknown type name 'b'
1 | main(float a,b,c,d,e,f){for(;~scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*d)/a,d=(a*f-c*d)/(a*e-b*d)));}
| ^
main.c:1:16: error: unknown type name 'c'
1 | main(float a,b,c,d,e,f){for(;~scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*d)/a,d=(a*f-c*d)/(a*e-b*d)));}
| ^
main.c:1:18: error: unknown type name 'd'
1 | main(float a,b,c,d,e,f){for(;~scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*d)/a,d=(a*f-c*d)/(a*e-b*d)));}
| ^
main.c:1:20: error: unknown type name 'e'
1 | main(float a,b,c,d,e,f){for(;~scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*d)/a,d=(a*f-c*d)/(a*e-b*d)));}
| ^
main.c:1:22: error: unknown type name 'f'
1 | main(float a,b,c,d,e,f){for(;~scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);printf("%.3f %.3f\n",(c-b*d)/a,d=(a*f-c*d)/(a*e-b*d)));}
| ^
|
s484516002
|
p00004
|
C
|
/*
AIZU ONLINE A0004
Simultaneous Equation
*/
#include <stdio.h>
#include <float.h>
main()
{ float a,b,c,d,e,f,x,y;
float det;
while(EOF != scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f))
{ det = a*e - b*d;
x = (e*c - b*f)/det;
y = (-d*c+ a*f)/det;
printf("%.3f %.3f\n",x,y);
}
print(0);
}
|
main.c:9:1: error: return type defaults to 'int' [-Wimplicit-int]
9 | main()
| ^~~~
main.c: In function 'main':
main.c:19:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
19 | print(0);
| ^~~~~
| printf
|
s492224297
|
p00004
|
C
|
#include <stdio.h>
int main(){
double a,b,c,d,e,f;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)>0){
f = ((a*f)-(c*d))/(a*e)
c = ((c*e)-(a*b*f)+(b*c*d))/(a*e)
printf("%.3f %.3f\n",c,f);
}
return 0;
}
|
main.c: In function 'main':
main.c:6:40: error: expected ';' before 'c'
6 | f = ((a*f)-(c*d))/(a*e)
| ^
| ;
7 | c = ((c*e)-(a*b*f)+(b*c*d))/(a*e)
| ~
|
s784439120
|
p00004
|
C
|
#include <stdio.h>
using namespace std;
int main ()
{
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)){
y=(c*d-f*a)/(b*d-a*e);
x=(c-b*y)/a;
printf("%.3f %.3f",x,y);
}
return 0;
}
|
main.c:3:1: error: unknown type name 'using'
3 | using namespace std;
| ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
3 | using namespace std;
| ^~~
|
s771257266
|
p00004
|
C
|
#include<iostream>
#include<iomanip>
using namespace std;
int main(){
cout << setprecision(3) << setiosflags(ios::fixed);
double a, b, c, d, e, f;
while(cin >> a >> b >> c >> d >> e >> f){
cout << (c*e-f*b)/(a*e-d*b) + 0.000001<< " " << (c*d-f*a)/(b*d-a*e) + 0.000001 << '\n';
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s969443620
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y;
while(0){
scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f);
x=(e*c-b*f)/(a*e-d*b);
y=(c-a*x)/b;
if(x*10000%10>4)x=x+0.001;
if(y*10000%10>4)y=y+0.001;
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:11: error: invalid operands to binary % (have 'double' and 'int')
8 | if(x*10000%10>4)x=x+0.001;
| ~~~~~~~^
| |
| double
main.c:9:11: error: invalid operands to binary % (have 'double' and 'int')
9 | if(y*10000%10>4)y=y+0.001;
| ~~~~~~~^
| |
| double
|
s517263457
|
p00004
|
C
|
#include<stdio.h>
int main(void){
double a,b,c,d,e,f,x,y;
while(0){
scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f);
x=(e*c-b*f)/(e*a-b*d);
y=(c-a*x)/b;
if(x*10000.0%10.0>4.0)x=x+0.001;
if(y*10000.0%10.0>4.0)y=y+0.001;
printf("%f %f",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:13: error: invalid operands to binary % (have 'double' and 'double')
8 | if(x*10000.0%10.0>4.0)x=x+0.001;
| ~~~~~~~~~^
| |
| double
main.c:9:13: error: invalid operands to binary % (have 'double' and 'double')
9 | if(y*10000.0%10.0>4.0)y=y+0.001;
| ~~~~~~~~~^
| |
| double
|
s789358986
|
p00004
|
C
|
#include<stdi.h>
int main ()
double a,b,c,d,e,f;{
for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));
}
|
main.c:1:9: fatal error: stdi.h: No such file or directory
1 | #include<stdi.h>
| ^~~~~~~~
compilation terminated.
|
s854681479
|
p00004
|
C
|
main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~
main.c: In function 'main':
main.c:1:25: error: declaration for parameter 'f' but no such parameter
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:23: error: declaration for parameter 'e' but no such parameter
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:21: error: declaration for parameter 'd' but no such parameter
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:19: error: declaration for parameter 'c' but no such parameter
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:17: error: declaration for parameter 'b' but no such parameter
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:15: error: declaration for parameter 'a' but no such parameter
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:33: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
main.c:1:33: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~~
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:79: error: 'EOF' undeclared (first use in this function)
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~
main.c:1:79: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:79: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:83: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~~~
main.c:1:83: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:83: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:83: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:141: error: expected statement before ')' token
1 | main ()double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %F",&a,&b,&c,&d,&e,&f)!=EOF;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
|
s166206300
|
p00004
|
C
|
main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~
main.c: In function 'main':
main.c:1:34: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
main.c:1:34: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~~
main.c:1:34: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:83: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^~~~~~
main.c:1:83: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:83: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:83: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:141: error: expected statement before ')' token
1 | main (){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d))));return 0;}
| ^
main.c:1:141: error: expected declaration or statement at end of input
|
s120226020
|
p00004
|
C
|
main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
|
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
| ^~~~
main.c: In function 'main':
main.c:1:33: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
1 | main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
main.c:1:33: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
| ^~~~~
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:82: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
| ^~~~~~
main.c:1:82: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:82: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:82: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:1: error: expected declaration or statement at end of input
1 | main(){double a,b,c,d,e,f;{for(;scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f)!=-1;printf("%f %f\n",(e*c-f*b)/(e*a-b*d),(a*f-c*d)/(a*e-b*d)));return 0;}
| ^~~~
|
s923470234
|
p00004
|
C
|
#include<stdio.h>
int gcd(int m, int n){
if( (m == 0) || (n == 0) ){
return 0;
}
while( m != n ){
if(m>n){ m = m - n; }
else { n = n - m; }
}
return m;
}
int lcm(int m, int n){
if( (m==0) || (n==0) ){
return 0;
}
return ( (m / gcd(m , n)) * n);
}
int main(){
int a,b,c.,d,e,f;
int multi_a, multi_b;
int x,y;
while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
multi_a = lcm(a,d)/a;
multi_b = lcm(a,d)/d;
a = a * multi_a;
b = b * multi_a;
c = c * multi_a;
d = d * multi_b;
e = e * multi_b;
f = f * multi_b;
y = (c - f) / (b - e);
x = (c - (y * b)) / a;
printf("%d %d\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:24:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
24 | int a,b,c.,d,e,f;
| ^
main.c:28:37: error: 'c' undeclared (first use in this function)
28 | while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:28:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:40: error: 'd' undeclared (first use in this function)
28 | while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:28:43: error: 'e' undeclared (first use in this function)
28 | while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
main.c:28:46: error: 'f' undeclared (first use in this function)
28 | while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f)!=EOF){
| ^
|
s071265816
|
p00004
|
C
|
#include <stdio.h>
int main(){
double a,b,c,d,e,f;
double x,y;
while(scanf("%if %if %if %if %if %if",&a,&b,&c,&d,&e,&f)!=EOF){
y = (c * d - a * f) / (b * d - e * a);
x = (c - (b * y)) / a;
printf("%.3if %.3if\n",x,y)
}
return 0;
}
|
main.c: In function 'main':
main.c:8:36: error: expected ';' before '}' token
8 | printf("%.3if %.3if\n",x,y)
| ^
| ;
9 | }
| ~
|
s619285351
|
p00004
|
C
|
#include<stdio.h>
int main(void)
{
int a,b,c,d,e,f,A;
while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)!=EOF)
{
A = (a*e-b*d);
printf("%.3f %.3f\n",(float)(c*e-b*f)/A+0,(float)(a*f-c*d)/A+0));
}
return 0;
}
|
main.c: In function 'main':
main.c:9:80: error: expected ';' before ')' token
9 | printf("%.3f %.3f\n",(float)(c*e-b*f)/A+0,(float)(a*f-c*d)/A+0));
| ^
| ;
main.c:9:80: error: expected statement before ')' token
|
s374098331
|
p00004
|
C
|
#include <stdio.h>
int main(){
double a,b,c,d,e,f,i,x,y;
scanf("%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f)
x = (c*e-b*f)/(a*e-b*d);
y = (c*d-a*f)/(b*d-a*e);
printf("%f %f\n",x,y);
return 0;
}
|
main.c: In function 'main':
main.c:4:46: error: expected ';' before 'x'
4 | scanf("%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f)
| ^
| ;
5 | x = (c*e-b*f)/(a*e-b*d);
| ~
|
s774942374
|
p00004
|
C
|
#include<stdio.h>
#include<math.h>
int main(){
double A[2][3],x,y;
printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);
printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
//掃き出し法で
for(int i=2;i>=0;i--){
A[0][i] /= A[0][0];
}
for(int i=2;i>=0;i--){
A[1][i] -= A[0][i] * A[1][0];
}
if(A[1][1] == 0){
if(A[1][2] == 0){
printf("解はすべての実数\n");
}else{
printf("解無し\n");
}
return 0;
}
y = A[1][2] / A[1][1];
x = A[0][2] - A[0][1]*y;
printf("x = %lf ,y = %lf\n",x,y);
x *= 1e+3;
y *= 1e+3;
//切上げ処理
x = floor(x+0.5)*(1e-3);
y = floor(y+0.5)*(1e-3);
printf("x = %.3lf ,y = %.3lf\n",x,y);
return 0;
}
|
/usr/bin/ld: /tmp/ccOqpFuc.o: in function `main':
main.c:(.text+0x223): undefined reference to `floor'
/usr/bin/ld: main.c:(.text+0x254): undefined reference to `floor'
collect2: error: ld returned 1 exit status
|
s647633869
|
p00004
|
C
|
#include<stdio.h>
#include<math.h>
int main(){
double A[2][3],x,y;
/*
printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);
printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
*/
while(scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]) != EOF){
//掃き出し法で
for(int i=2;i>=0;i--){
A[0][i] /= A[0][0];
}
for(int i=2;i>=0;i--){
A[1][i] -= A[0][i] * A[1][0];
}
if(A[1][1] == 0){
if(A[1][2] == 0){
printf("解はすべての実数\n");
}else{
printf("解無し\n");
}
return 0;
}
y = A[1][2] / A[1][1];
x = A[0][2] - A[0][1]*y;
printf("x = %lf ,y = %lf\n",x,y);
x *= 1e+3;
y *= 1e+3;
//切上げ処理
x = floor(x+0.5)*(1e-3);
y = floor(y+0.5)*(1e-3);
printf("x = %.3lf ,y = %.3lf\n",x,y);
}
return 0;
}
|
/usr/bin/ld: /tmp/ccPz6oqT.o: in function `main':
main.c:(.text+0x17d): undefined reference to `floor'
/usr/bin/ld: main.c:(.text+0x1ae): undefined reference to `floor'
collect2: error: ld returned 1 exit status
|
s288664164
|
p00004
|
C
|
#include<stdio.h>
#include<math.h>
int main(){
double A[2][3],x,y,i;
/*
printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);
printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
*/
while(scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]) != EOF){
//掃き出し法で
for(i=2;i>=0;i--){
A[0][i] /= A[0][0];
}
for(int i=2;i>=0;i--){
A[1][i] -= A[0][i] * A[1][0];
}
if(A[1][1] == 0){
if(A[1][2] == 0){
printf("解はすべての実数\n");
}else{
printf("解無し\n");
}
return 0;
}
y = A[1][2] / A[1][1];
x = A[0][2] - A[0][1]*y;
printf("x = %lf ,y = %lf\n",x,y);
x *= 1e+3;
y *= 1e+3;
//切上げ処理
x = floor(x+0.5)*(1e-3);
y = floor(y+0.5)*(1e-3);
printf("x = %.3lf ,y = %.3lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:18:29: error: array subscript is not an integer
18 | A[0][i] /= A[0][0];
| ^
|
s325117446
|
p00004
|
C
|
#include<stdio.h>
#include<math.h>
int main(){
double A[2][3],x,y;
int i;
/*
printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);
printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
*/
while(scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]) != EOF){
//掃き出し法で
for(i=2;i>=0;i--){
A[0][i] /= A[0][0];
}
for(int i=2;i>=0;i--){
A[1][i] -= A[0][i] * A[1][0];
}
if(A[1][1] == 0){
if(A[1][2] == 0){
printf("解はすべての実数\n");
}else{
printf("解無し\n");
}
return 0;
}
y = A[1][2] / A[1][1];
x = A[0][2] - A[0][1]*y;
printf("x = %lf ,y = %lf\n",x,y);
x *= 1e+3;
y *= 1e+3;
//切上げ処理
x = floor(x+0.5)*(1e-3);
y = floor(y+0.5)*(1e-3);
printf("x = %.3lf ,y = %.3lf\n",x,y);
}
return 0;
}
|
/usr/bin/ld: /tmp/ccpNQbJl.o: in function `main':
main.c:(.text+0x17d): undefined reference to `floor'
/usr/bin/ld: main.c:(.text+0x1ae): undefined reference to `floor'
collect2: error: ld returned 1 exit status
|
s147282437
|
p00004
|
C
|
#include<stdio.h>
#include<math.h>
int main(){
double A[2][3],x,y;
int i;
/*
printf("6つの実数を入力してください 例:6 3 4 8 9 1\n");
scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]);
printf("連立方程式%lfx+%lfy=%lf,%lfx+%lfy=%lfを解きます\n",A[0][0],A[0][1],A[0][2],A[1][0],A[1][1],A[1][2]);
*/
while(scanf("%lf%lf%lf%lf%lf%lf",&A[0][0],&A[0][1],&A[0][2],&A[1][0],&A[1][1],&A[1][2]) != EOF){
//掃き出し法で
for(i=2;i>=0;i--){
A[0][i] /= A[0][0];
}
for(int i=2;i>=0;i--){
A[1][i] -= A[0][i] * A[1][0];
}
if(A[1][1] == 0){
if(A[1][2] == 0){
printf("解はすべての実数\n");
}else{
printf("解無し\n");
}
return 0;
}
y = A[1][2] / A[1][1];
x = A[0][2] - A[0][1]*y;
printf("x = %lf ,y = %lf\n",x,y);
x *= 1e+3;
y *= 1e+3;
//切上げ処理
x = floor(x+0.5)*(1e-3);
y = floor(y+0.5)*(1e-3);
printf("x = %.3lf ,y = %.3lf\n",x,y);
}
return 0;
}
|
/usr/bin/ld: /tmp/ccYNew9X.o: in function `main':
main.c:(.text+0x17d): undefined reference to `floor'
/usr/bin/ld: main.c:(.text+0x1ae): undefined reference to `floor'
collect2: error: ld returned 1 exit status
|
s538220870
|
p00004
|
C
|
#include<math.h>
double a1,b1,c1,a2,b2,c2,delta,x,y;
int main(){
while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
delta = a1*b2 - b1*a2;
x = (c1*b2 - b1*c2)/delta;
y = (a1*c2 - a2*c1)/delta;
x = floor(10000*x+0.5)/10000;
y = floor(10000*y+0.5)/10000;
printf("%.3lf %.3lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:6:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
6 | while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
| ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
1 | #include<math.h>
+++ |+#include <stdio.h>
2 |
main.c:6:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
6 | while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
| ^~~~~
main.c:6:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:62: error: 'EOF' undeclared (first use in this function)
6 | while(scanf("%lf%lf%lf%lf%lf%lf",&a1,&b1,&c1,&a2,&b2,&c2) != EOF){
| ^~~
main.c:6:62: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:6:62: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
12 | printf("%.3lf %.3lf\n",x,y);
| ^~~~~~
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:2: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s019585155
|
p00004
|
C
|
#include<stdio.h>
int main()
{
int a,b,c,d,e,f;
float x,y;
while(scanf("%d %d %d %d %d %d", &a,&b,&c,&d,&e,&f)!=EOF)
{
x=float(c*e-b*f)/(a*e-b*d);
y=float(a*f-c*d)/(a*e-b*d);
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:15: error: expected expression before 'float'
8 | x=float(c*e-b*f)/(a*e-b*d);
| ^~~~~
main.c:9:15: error: expected expression before 'float'
9 | y=float(a*f-c*d)/(a*e-b*d);
| ^~~~~
|
s608383021
|
p00004
|
C
|
#include<stdio.h>
int main()
{
int a,b,c,d,e,f;
float x,y;
while(scanf("%d %d %d %d %d %d", &a,&b,&c,&d,&e,&f)!=EOF)
{
x=float(c*e-b*f)/(a*e-b*d);
y=float(a*f-c*d)/(a*e-b*d);
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:15: error: expected expression before 'float'
8 | x=float(c*e-b*f)/(a*e-b*d);
| ^~~~~
main.c:9:15: error: expected expression before 'float'
9 | y=float(a*f-c*d)/(a*e-b*d);
| ^~~~~
|
s810208176
|
p00004
|
C
|
#include<stdio.h>
int main(void)
{
float a,b,c,d,e,f,g,h,x,y;
scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);
g=b*d-a*e;
i=c*d-a*f;
y=i/g;
x=(-b*y+c)/a;
printf("%.3f %.3f\n",x,y);
return 0;
}
|
main.c: In function 'main':
main.c:7:1: error: 'i' undeclared (first use in this function)
7 | i=c*d-a*f;
| ^
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
|
s745475665
|
p00004
|
C
|
#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<iterator>
#include<stack>
#include<queue>
#include<set>
#include<algorithm>
using namespace std;
float a,b,c,d,e,f;
void main()
{
float x,y;
scanf("%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f);
y=(c*d-a*f)/(b*d-a*e);
x=(c-b*y)/a;
printf("x=%3f,y=%3f",x,y);
}
|
main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s910026020
|
p00004
|
C
|
#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<iterator>
#include<stack>
#include<queue>
#include<set>
#include<algorithm>
using namespace std;
double a,b,c,d,e,f;
int main()
{
double x,y,z;
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF)
{
z=a*e-b*d;
x=c*e-b*f;
y=a*f-c*d;
printf("%.3f %.3f\n",x/z,y/z);
}
return 0;
}
|
main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s784326522
|
p00004
|
C
|
#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<iterator>
#include<stack>
#include<queue>
#include<set>
#include<algorithm>
using namespace std;
double a,b,c,d,e,f;
int main()
{
double x,y,z;
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF)
{
z=a*e-b*d;
x=c*e-b*f;
y=a*f-c*d;
printf("x= %.3f y= %.3f\n",x/z,y/z);
}
return 0;
}
|
main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s638252137
|
p00004
|
C
|
#include <stdio.h>
int main(void){
dobule a,b,c,d,e,f,x,y;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
x =(ce-fb)/(ae-db);
y =(cd-af)/(bd-ae);
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:11: error: unknown type name 'dobule'; did you mean 'double'?
4 | dobule a,b,c,d,e,f,x,y;
| ^~~~~~
| double
main.c:5:71: error: expected ')' before ';' token
5 | while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
| ~ ^
| )
main.c:6:24: error: 'ce' undeclared (first use in this function); did you mean 'e'?
6 | x =(ce-fb)/(ae-db);
| ^~
| e
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: 'fb' undeclared (first use in this function); did you mean 'f'?
6 | x =(ce-fb)/(ae-db);
| ^~
| f
main.c:6:32: error: 'ae' undeclared (first use in this function); did you mean 'e'?
6 | x =(ce-fb)/(ae-db);
| ^~
| e
main.c:6:35: error: 'db' undeclared (first use in this function); did you mean 'd'?
6 | x =(ce-fb)/(ae-db);
| ^~
| d
main.c:7:24: error: 'cd' undeclared (first use in this function); did you mean 'd'?
7 | y =(cd-af)/(bd-ae);
| ^~
| d
main.c:7:27: error: 'af' undeclared (first use in this function); did you mean 'f'?
7 | y =(cd-af)/(bd-ae);
| ^~
| f
main.c:7:32: error: 'bd' undeclared (first use in this function); did you mean 'd'?
7 | y =(cd-af)/(bd-ae);
| ^~
| d
|
s952617959
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
x =(ce-fb)/(ae-db);
y =(cd-af)/(bd-ae);
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:5:71: error: expected ')' before ';' token
5 | while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
| ~ ^
| )
main.c:6:24: error: 'ce' undeclared (first use in this function); did you mean 'e'?
6 | x =(ce-fb)/(ae-db);
| ^~
| e
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: 'fb' undeclared (first use in this function); did you mean 'f'?
6 | x =(ce-fb)/(ae-db);
| ^~
| f
main.c:6:32: error: 'ae' undeclared (first use in this function); did you mean 'e'?
6 | x =(ce-fb)/(ae-db);
| ^~
| e
main.c:6:35: error: 'db' undeclared (first use in this function); did you mean 'd'?
6 | x =(ce-fb)/(ae-db);
| ^~
| d
main.c:7:24: error: 'cd' undeclared (first use in this function); did you mean 'd'?
7 | y =(cd-af)/(bd-ae);
| ^~
| d
main.c:7:27: error: 'af' undeclared (first use in this function); did you mean 'f'?
7 | y =(cd-af)/(bd-ae);
| ^~
| f
main.c:7:32: error: 'bd' undeclared (first use in this function); did you mean 'd'?
7 | y =(cd-af)/(bd-ae);
| ^~
| d
|
s471682924
|
p00004
|
C
|
#include <stdio.h>
int main(void){
dobule a,b,c,d,e,f,x,y;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
x =(c*e-f*b)/(a*e-d*b);
y =(c*d-a*f)/(b*d-a*e);
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:11: error: unknown type name 'dobule'; did you mean 'double'?
4 | dobule a,b,c,d,e,f,x,y;
| ^~~~~~
| double
main.c:5:71: error: expected ')' before ';' token
5 | while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);) != EOF){
| ~ ^
| )
|
s473087265
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y; int xx,yy;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)) != EOF){
x =(c*e-f*b)/(a*e-d*b);
y =(c*d-a*f)/(b*d-a*e);
xx = x*1000;
yy = y*1000;
x =xx; x=x/1000; y=yy; y=y/1000;
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
4 | double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
| ^~~~~~~~
|
s655144703
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y; int xx,yy;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)) != EOF){
x =(c*e-f*b)/(a*e-d*b);
y =(c*d-a*f)/(b*d-a*e);
xx = x*1000;
yy = y*1000;
x =xx; x=x/1000; y=yy; y=y/1000;
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
4 | double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
| ^~~~~~~~
|
s504746611
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y; int xx,yy;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)) != EOF){
x =(c*e-f*b)/(a*e-d*b);
y =(c*d-a*f)/(b*d-a*e);
xx = x*1000;
yy = y*1000;
x =xx;
x=x/1000;
y=yy;
y=y/1000;
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
4 | double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
| ^~~~~~~~
|
s141729572
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y; int xx,yy;
while (( scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)) != EOF){
x =(c*e-f*b)/(a*e-d*b);
y =(c*d-a*f)/(b*d-a*e);
xx = x*1000; yy = y*1000;
x =xx;
x=x/1000;
y=yy;
y=y/1000;
printf("%lf %lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:4:34: error: stray '\343' in program
4 | double a,b,c,d,e,f,x,y;<U+3000>int xx,yy;
| ^~~~~~~~
|
s731416962
|
p00004
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,,&e,&f) != EOF){
y = (c*d - a*f) / (b*d - a*e);
x = (c - b*y) / a;
printf("%1.4f%1.4f",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:7:48: error: expected expression before ',' token
7 | while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,,&e,&f) != EOF){
| ^
|
s766591997
|
p00004
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,,&e,&f) != EOF){
y = (c*d - a*f) / (b*d - a*e);
x = (c - b*y) / a;
printf("%1.4f%1.4f",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:7:48: error: expected expression before ',' token
7 | while(scanf("%d%d%d%d%d%d",&a,&b,&c,&d,,&e,&f) != EOF){
| ^
|
s810316527
|
p00004
|
C
|
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
double x,y;
while(scanf("%d%d%d%d%d%d%d",a,b,c,d,e,f){
y = (double) (c*d-a*f) / (b*d-a*e);
x = (double) (c*e-b*f) / (a*e-b*d);
printf("%0.3f %0.3f",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:7:50: error: expected ')' before '{' token
7 | while(scanf("%d%d%d%d%d%d%d",a,b,c,d,e,f){
| ~ ^
| )
main.c:14:1: error: expected expression before '}' token
14 | }
| ^
|
s270241495
|
p00004
|
C
|
#include"bign.h"
int main(){
printf("claimer(P) select a random numble r(1<=r<=q-1)");
printf(",calculate x,then send (Cerp,x) to verifier(V):");
cin>>r;
cout<<r;
x=pow(b,r,p);
cout<<" "<<x;
printf("verifier(V) select a numble e(1<=e<=2^t-1),send e to claimer(P)");
cin>>e;
cout<<e;
y=(r+s*e)%q;
printf("claimer(P) calculate y=(se+r)mod q),send verifier(V)");
printf("verifier(V) verify x=(b^y+v^e)mod,if true,authentication succeed!!!");
mid=pow(b,y,q)*pow(v,e,q)%mod;
if(mid==x)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
|
main.c:1:9: fatal error: bign.h: No such file or directory
1 | #include"bign.h"
| ^~~~~~~~
compilation terminated.
|
s689316609
|
p00004
|
C
|
#include<stdio.h>
int main(){
float a,b,c,d,e,f,det;
float det;
float x,y;
while(scanf("%f %f %f %f %f %f",&a,&b,&c,&d,&e,&f) != EOF){
det=(e*a)-(b*d);
x=(e*c-b*f)/det;
y=(-d*c+a*f)/det;
if(x==0){
x=0;
}else if (y==0){
y=0;
}
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:5:9: error: redeclaration of 'det' with no linkage
5 | float det;
| ^~~
main.c:4:21: note: previous declaration of 'det' with type 'float'
4 | float a,b,c,d,e,f,det;
| ^~~
|
s896877233
|
p00004
|
C
|
#include<stdio.h>
int main(){
double a, b, c, d, e, f;
double x, y;
while(scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF){
y = (c * d - a * f) / (b * d - e * a);
y *= 1000;
if(y > 0) y += 0.5;
if(y < 0) y -= 0.5;
y = floot(y);
y /= 1000;
x = (c - b * y) / a;
x *= 1000;
if(x > 0) x += 0.5;
if(x < 0) x -= 0.5;
x = floot(x);
x /= 1000;
printf("%.3f %.3f\n", x, y);
}
return 0;
}
|
main.c: In function 'main':
main.c:11:21: error: implicit declaration of function 'floot' [-Wimplicit-function-declaration]
11 | y = floot(y);
| ^~~~~
|
s995546629
|
p00004
|
C
|
#include<stdio.h>
int main()
{
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
y = (c*d)-(a*f) /(b*d)-(a*e);
x = ((c-b*y)/a;
printf("%.3lf %.3lf\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:7:17: error: expected ')' before ';' token
7 | x = ((c-b*y)/a;
| ~ ^
| )
main.c:8:31: error: expected ';' before '}' token
8 | printf("%.3lf %.3lf\n",x,y);
| ^
| ;
9 | }
| ~
|
s147446398
|
p00004
|
C
|
#include<stdio.h>
int main(void){
double a,b,c,d,e,f,x,y,r;
int p,q;
r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
while(r!=EOF){
x=((c*e)-(b*f))/((a*e)-(b*d));
y=((c*d)-(a*f))/((b*d)-(a*e));
p=(int)(x*10000);
q=(int)(y*10000);
printf("%d,%d")
r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
}
return 0;
}
|
main.c: In function 'main':
main.c:11:24: error: expected ';' before 'r'
11 | printf("%d,%d")
| ^
| ;
12 | r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
| ~
|
s321855568
|
p00004
|
C
|
#include<stdio.h>
int main(void){
double a,b,c,d,e,f,x,y;
int r;
r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
while(r!=EOF){
x=((c*e)-(b*f))/((a*e)-(b*d));
y=((c*d)-(a*f))/((b*d)-(a*e));
printf("%d %d")
r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
}
return 0;
}
|
main.c: In function 'main':
main.c:9:24: error: expected ';' before 'r'
9 | printf("%d %d")
| ^
| ;
10 | r=scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
| ~
|
s382528290
|
p00004
|
C
|
#include<stdio.h>
int main(void){
double a,b,c,d,e,f,x,y,return;
int p,q;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
x=((c*e)-(b*f))/((a*e)-(b*d));
y=((c*d)-(a*f))/((b*d)-(a*e));
p=(int)(x*10000);
q=(int)(y*10000);
if((p%10)<=4){
p/=10;
}else{
p/=10;
p++;
}
if((q%10)<=4){
q/=10;
}else{
q/=10;
q++;
}
x=(double)p/1000;
y=(double)q/1000;
printf("%f %f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:3:28: error: expected identifier or '(' before 'return'
3 | double a,b,c,d,e,f,x,y,return;
| ^~~~~~
|
s042608089
|
p00004
|
C
|
#include <cstdio>
double a,b,c,d,e,f,x,y;
int main()
{
while (~scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f))
{
x = (c*e-f*b)/(a*e-d*b);
y = (c-a*x)/b;
printf("%.3f %.3f\n",x+(1e-10),y+(1e-10));
}
}
|
main.c:2:10: fatal error: cstdio: No such file or directory
2 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s037700637
|
p00004
|
C
|
#include <cstdio>
double a,b,c,d,e,f,x,y;
int main()
{
while(scanf("%lf%lf%lf%lf%lf%lf",&a,&b,&c,&d,&e,&f)!=EOF)
{
x = (c*e-f*b)/(a*e-d*b);
y = (c-a*x)/b;
printf("%.3f %.3f\n",x+(1e-10),y+(1e-10));
}
}
|
main.c:2:10: fatal error: cstdio: No such file or directory
2 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s480922081
|
p00004
|
C
|
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
x=(c*e-b*f)/(a*e-b*d);
if(x==-0){
x=0;
}
y=(d*c-a*f)/(d*b-a*e);
if(y==-0){
y=0;
}
cout << x <<" "<< y << endl;
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s603680635
|
p00004
|
C
|
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
x=(c*e-b*f)/(a*e-b*d);
if(x==-0){
x=0;
}
y=(d*c-a*f)/(d*b-a*e);
if(y==-0){
y=0;
}
cout << x <<" "<< y << endl;
}
return 0;
}
|
main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s995882598
|
p00004
|
C
|
#include <stdio.h>
int main(){
double a,b,c,d,e,f;
double x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f) != EOF){
x=c/a-(b*(a*f-d*c))/(a*a*e-a*d*b)
y=(a*f-d*c)/(a*e-d*b);
printf("%4.3f %4.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:8:34: error: expected ';' before 'y'
8 | x=c/a-(b*(a*f-d*c))/(a*a*e-a*d*b)
| ^
| ;
9 | y=(a*f-d*c)/(a*e-d*b);
| ~
|
s838856115
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
y=(c-b*(a/d))/(f-e*(a/d));
x=(c-b*y)/a
printf("%.3f %.3f\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'printf'
6 | x=(c-b*y)/a
| ^
| ;
7 | printf("%.3f %.3f\n");
| ~~~~~~
|
s302783316
|
p00004
|
C
|
#include <stdio.h>
int main(void){
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
y=(c-b*(a/d))/(f-e*(a/d));
x=(c-b*y)/a
printf("%.3f %.3f\n",x,y);
}
return 0;
}
|
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'printf'
6 | x=(c-b*y)/a
| ^
| ;
7 | printf("%.3f %.3f\n",x,y);
| ~~~~~~
|
s572123730
|
p00004
|
C
|
#include<stdio.h>
int main(){
double a,b,c,d,e,f,x,y;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){
x=(c*e-f*b)/(a*e-d*b);
y=(c*d-f*a)/(b*d-e*a);
if((int)(x==0)x=0;
if((int)(y==0)y=0;
printf("%.3f %.3f\n",x,y);
}
}
|
main.c: In function 'main':
main.c:7:15: error: expected ')' before 'x'
7 | if((int)(x==0)x=0;
| ~ ^
| )
main.c:11:1: error: expected expression before '}' token
11 | }
| ^
main.c:11:1: error: expected declaration or statement at end of input
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.