criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		int ang = 90;
		for(;;){
			int d = scan.nextInt();
			int a = scan.nextInt();
			if(d == 0 && a == 0){
				break;
			}
			double x = (double) d * Math.cos(Math.toRadians((double) ang));
			double y = (double) d * Math.sin(Math.toRadians((double) ang));
		}

		System.out.printf("%d\n", (int) x);
		System.out.printf("%d\n", (int) y);
	}
}

Compiler output:
Main.java:18: error: cannot find symbol
		System.out.printf("%d\n", (int) x);
		                                ^
  symbol:   variable x
  location: class Main
Main.java:19: error: cannot find symbol
		System.out.printf("%d\n", (int) y);
		                                ^
  symbol:   variable y
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in).useDelimiter("[ \t\n,]);

	public static void main(String[] args){
		double x = 0;
		double y = 0;
		int ang = 90;
		for(;;){
			int d = scan.nextInt();
			int a = scan.nextInt();
			if(d == 0 && a == 0){
				break;
			}
			x = (double) d * Math.cos(Math.toRadians((double) ang));
			y = (double) d * Math.sin(Math.toRadians((double) ang));
		}

		System.out.printf("%d\n", (int) x);
		System.out.printf("%d\n", (int) y);
	}
}

Compiler output:
Main.java:4: error: unclosed string literal
	private static final Scanner scan = new Scanner(System.in).useDelimiter("[ \t\n,]);
	                                                                        ^
1 error
Language: Java

import java.util.*;

public class Main2{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	double x = 0.0;
	double y = 0.0;
	double angle = 0.0;

	while(sc.hasNext()){
	    String[] line = (sc.next()).split(",");
	    int step = Integer.parseInt(line[0]);
	    int dir = Integer.parseInt(line[1]);
	    if(step==0 && dir==0)break;
	    x += (double)step * Math.sin(Math.toRadians(angle));
	    y += (double)step * Math.cos(Math.toRadians(angle));
	    angle += (double)dir;
	}

	System.out.println((int)x);
	System.out.println((int)y);
    }
}

Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2{
       ^
1 error
Language: C

#incl ude <stdio.h>
#include <math.h>

#define PI 3.141592

int main(void) {
	int angle = 0;
	double x = 0, y = 0;
	double rad;
	int step, rotate;
	scanf("%d,%d", &step, &rotate);
	while (step != 0 || rotate != 0) {
		rad = (double)(angle % 90) * PI / 180.0;
		
		if( angle == 0)
			y += (double)step;
		else if( angle < 90) {
			x += (double)step * sin(rad);
			y += (double)step * cos(rad);
		}
		else if( angle == 90)
			x += (double)step;
		else if( angle < 180) {
			x += (double)step * cos(rad);
			y -= (double)step * sin(rad);
		}
		else if( angle == 180)
			y -= (double)step;
		else if( angle < 270) {
			x -= (double)step * sin(rad);;
			y -= (double)step * cos(rad);
		}
		else if( angle == 270)
			x -= (double)step;
		else if( angle < 360) {
			x -= (double)step * cos(rad);
			y += (double)step * sin(rad);
		}
		
		if( (angle = (angle + rotate) % 360) < 0)
			angle = 360 + angle;
		scanf("%d,%d", &step, &rotate);
	}
	printf("%d\n\d\n", (int)x, (int)y);
	
	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incl; did you mean #include?
    1 | #incl ude <stdio.h>
      |  ^~~~
      |  include
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%d,%d", &step, &rotate);
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%d,%d", &step, &rotate);
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:44:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   44 |         printf("%d\n\d\n", (int)x, (int)y);
      |         ^~~~~~
main.c:44:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:44:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:44:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:44:26: warning: unknown escape sequence: '\d'
   44 |         printf("%d\n\d\n", (int)x, (int)y);
      |                          ^
Language: C

#incl ude <stdio.h>
#include <math.h>

#define PI 3.141592

int main(void) {
	int angle = 0;
	double x = 0.0, y = 0.0;
	double rad;
	int step, rotate;
	scanf("%d,%d", &step, &rotate);
	while (step != 0 || rotate != 0) {
		rad = (double)(angle % 90) * PI / 180.0;
		
		if( angle == 0)
			y += (double)step;
		else if( angle < 90) {
			x += (double)step * sin(rad);
			y += (double)step * cos(rad);
		}
		else if( angle == 90)
			x += (double)step;
		else if( angle < 180) {
			x += (double)step * cos(rad);
			y -= (double)step * sin(rad);
		}
		else if( angle == 180)
			y -= (double)step;
		else if( angle < 270) {
			x -= (double)step * sin(rad);;
			y -= (double)step * cos(rad);
		}
		else if( angle == 270)
			x -= (double)step;
		else if( angle < 360) {
			x -= (double)step * cos(rad);
			y += (double)step * sin(rad);
		}
		
		if( (angle = (angle + rotate) % 360) < 0)
			angle = 360 + angle;
		scanf("%d,%d", &step, &rotate);
	}
	printf("%d\n\d\n", (int)x, (int)y);
	
	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incl; did you mean #include?
    1 | #incl ude <stdio.h>
      |  ^~~~
      |  include
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%d,%d", &step, &rotate);
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%d,%d", &step, &rotate);
      |         ^~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:44:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   44 |         printf("%d\n\d\n", (int)x, (int)y);
      |         ^~~~~~
main.c:44:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:44:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:44:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:44:26: warning: unknown escape sequence: '\d'
   44 |         printf("%d\n\d\n", (int)x, (int)y);
      |                          ^
Language: C

#include<stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>

int main(void) {
	double	x = 0, y = 0;
	while (1) {
		double arg2 = M_PI / 180.0;
		int arg1 = 90;
		int Arg = 0, Len = 0;
		scanf("%d,%d", &Len, &Arg);
		if (Len == 0 && Arg == 0) {
			break;
		}
		else {
			arg1 -= Arg;
			arg2 += (arg1 % 360)*M_PI / 180.0;
			x += cos(arg2)*Len;
			y += sin(arg2)*Len;
????????????????????????????????????continue;
		}
	}
	printf("%d\n%d\n", (int)x, (int)y);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected expression before '?' token
   20 | ????????????????????????????????????continue;
      | ^
Language: C

#include<stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>

int main(void) {
	double	x = 0, y = 0;
	while (1) {
		double arg2 = M_PI / 180.0;
		int arg1 = 90;
		int Arg = 0, Len = 0;
		scanf("%d,%d", &Len, &Arg);
		if (Len == 0 && Arg == 0) {
			break;
		}
		else {
			arg1 -= Arg;
			arg2 += (arg1 % 360)*M_PI / 180.0;
			x += cos(arg2)*Len;
			y += sin(arg2)*Len;
?????????????????????????????????
		}
	}
	printf("%d\n%d\n", (int)x, (int)y);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected expression before '?' token
   20 | ?????????????????????????????????
      | ^
Language: C

#include<stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>

int main(void) {
	while (1) {
                double	x = 0, y = 0;
		double arg2 = 0;
		int arg1 = 90;
		int Arg = 0, Len = 0;
		scanf("%d,%d", &Len, &Arg);
		if (Len == 0 && Arg == 0) {
			break;
		}
		else {
			arg1 -= Arg;
			arg2 += (arg1 % 360)*M_PI / 180.0;
			x += cos(arg2)*Len;
			y += sin(arg2)*Len;
		}
	}
	printf("%d\n%d\n", (int)x, (int)y);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:33: error: 'x' undeclared (first use in this function)
   22 |         printf("%d\n%d\n", (int)x, (int)y);
      |                                 ^
main.c:22:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:41: error: 'y' undeclared (first use in this function); did you mean 'yn'?
   22 |         printf("%d\n%d\n", (int)x, (int)y);
      |                                         ^
      |                                         yn
Language: C

#include <stdio.h>
#include <math.h>
 
int main(int argc,char* argv[]){
  double x,y;
  double rad;
  int run;
  int shita;
  x = y = 0;
  rad = m_PI / 2;
   
  for(;;){
    scanf("%d,%d",&run,&shita);
    if(run == 0 && shita == 0){
break;
}
     
    x += cos(rad) * run;
    y += sin(rad) * run;
     
    rad -= shita / 180.0 * m_PI;
  }
   
  modf(x, &x);
  modf(y, &y);
  printf("%.0lf\n%.0lf\n",x,y);
   
  return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'm_PI' undeclared (first use in this function); did you mean 'M_PI'?
   10 |   rad = m_PI / 2;
      |         ^~~~
      |         M_PI
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<iostream>
#include<math.h>
 
#define PI 3.14159265359
using namespace std;
 
int main(){
    int n,r;
    char c;
    double nx=0,ny=0;
    int nr=90;
    while(cin>>n>>c>>r &&n+r){
        nx+=cos(nr*PI/180.0)*n;
        ny+=sin(nr*PI/180.0)*n;
        nr+=-1*r;
    }
     
    cout<<(int)nx<<endl<<(int)ny<<endl;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include "stdafx.h"
#include <math.h>       /* cos */
double last_turn;
#define PI 3.14159265

double walk(double go,double turn,double* x,double* y) {
			*x -= go * sin(last_turn* PI / 180.0);
			*y += go * cos(last_turn* PI / 180.0);
			return -turn; 

}
int main(void)
{
	double gx = 0,gy = 0,now_x = 0, now_y = 0;
	double go = 0, turn = 0;

	last_turn = 0;
	now_x = 0, now_y = 0;
	for(;;){
		go = 0, turn = 0;
		scanf("%lf,%lf",&go,&turn);
		last_turn += walk(go,turn,&now_x,&now_y);
		if(go==0 && turn==0) break;
	}

		printf("%d\n%d\n",(int)now_x,(int)now_y);
	return 0;
}

Compiler output:
main.c:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include "stdafx.h"
#include <math.h>       /* cos */
double last_turn;
#define PI 3.14159265

double walk(double go,double turn,double* x,double* y) {
			*x -= go * sin(last_turn* PI / 180.0);
			*y += go * cos(last_turn* PI / 180.0);
			return -turn; 

}
int main()
{
	double gx = 0,gy = 0,now_x = 0, now_y = 0;
	double go = 0, turn = 0;

	last_turn = 0;
	now_x = 0, now_y = 0;
	for(;;){
		go = 0, turn = 0;
		scanf("%lf,%lf",&go,&turn);
		last_turn += walk(go,turn,&now_x,&now_y);
		if(go==0 && turn==0) break;
	}

		printf("%d\n%d\n",(int)now_x,(int)now_y);
	return 0;
}

Compiler output:
main.c:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <math.h>
#define PI 3.141592653589

int main()
{
  double x = 0, y = 0, angle = 90;
  double d, a;

  while (1) {
    scanf("%f,%f", &d, &a);

    if (d == 0 && a == 0)
      break;

    x += cos(angle * PI / 180.0) * d;
    y += sin(angle * PI / 180.0) * d;

    angle -= a;
  }

  printf("%d\n%d\n", int(x), int(y));

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:22: error: expected expression before 'int'
   22 |   printf("%d\n%d\n", int(x), int(y));
      |                      ^~~
Language: C

#include <stdio.h>
#include <math.h>

int main(void)
{
  double x, y, r;
  double d, a;

  x = y = 0.0;
  r = 90.0;
  while (true){
    scanf("%lf,%lf", &d, &a);
    if (d == 0.0 && a == 0.0){
      break;
    }

    x += cos(r / 180 * M_PI) * d;
    y += sin(r / 180 * M_PI) * d;
    r -= a;
  }

  printf("%d\n%d\n", (int)x, (int)y);

  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:11:10: error: 'true' undeclared (first use in this function)
   11 |   while (true){
      |          ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <math.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:11:10: note: each undeclared identifier is reported only once for each function it appears in
   11 |   while (true){
      |          ^~~~
Language: C

#include<stdio.h>
int main(){
int angle=90,m,n;
double x=0,y=0;
while(scanf("%d,%d",&m,&n),m||n){
x+=m*cos(pai*angle/180);
y+=m*sin(pai*angle/180);
angle=(angle-n)%360;
}
printf("%d\n%d\n",(int)x,(int)y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: implicit declaration of function 'cos' [-Wimplicit-function-declaration]
    6 | x+=m*cos(pai*angle/180);
      |      ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'cos'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main(){
main.c:6:6: warning: incompatible implicit declaration of built-in function 'cos' [-Wbuiltin-declaration-mismatch]
    6 | x+=m*cos(pai*angle/180);
      |      ^~~
main.c:6:6: note: include '<math.h>' or provide a declaration of 'cos'
main.c:6:10: error: 'pai' undeclared (first use in this function)
    6 | x+=m*cos(pai*angle/180);
      |          ^~~
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:6: error: implicit declaration of function 'sin' [-Wimplicit-function-declaration]
    7 | y+=m*sin(pai*angle/180);
      |      ^~~
main.c:7:6: note: include '<math.h>' or provide a declaration of 'sin'
main.c:7:6: warning: incompatible implicit declaration of built-in function 'sin' [-Wbuiltin-declaration-mismatch]
main.c:7:6: note: include '<math.h>' or provide a declaration of 'sin'
Language: C

#include <stdio.h>

int main(void){
	float d , r , x = 0 , y = 0 , r_now = 90;
	while(1){
		scanf("%f,%f" , &d , &r);
		if(d==0&&r==0) break;
		x += d * cos(r_now * M_PI / 180);
		y += d * sin(r_now * M_PI / 180);
		r_now -= r;
	}
	printf("%d\n%d\n" , (int)x , (int)y);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:26: error: implicit declaration of function 'cos' [-Wimplicit-function-declaration]
    8 |                 x += d * cos(r_now * M_PI / 180);
      |                          ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'cos'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:8:26: warning: incompatible implicit declaration of built-in function 'cos' [-Wbuiltin-declaration-mismatch]
    8 |                 x += d * cos(r_now * M_PI / 180);
      |                          ^~~
main.c:8:26: note: include '<math.h>' or provide a declaration of 'cos'
main.c:8:38: error: 'M_PI' undeclared (first use in this function)
    8 |                 x += d * cos(r_now * M_PI / 180);
      |                                      ^~~~
main.c:8:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:26: error: implicit declaration of function 'sin' [-Wimplicit-function-declaration]
    9 |                 y += d * sin(r_now * M_PI / 180);
      |                          ^~~
main.c:9:26: note: include '<math.h>' or provide a declaration of 'sin'
main.c:9:26: warning: incompatible implicit declaration of built-in function 'sin' [-Wbuiltin-declaration-mismatch]
main.c:9:26: note: include '<math.h>' or provide a declaration of 'sin'
Language: C

#include <stdio.h>
#include <math.h>

int main(){
  int dist, rad;
  int rad_amount;
  double x, y;
  int a, b;
  double TRANS=3.14159/180.0;

  x=0.0; y=0.0; rad_amount=0;
  while(1){
    scanf("%d,%d", &dist, &rad);
    if(dist==0 && rad==0) break;
    x+=(double)dist*sin((double)rad_amount*TRANS);
    y+=(double)dist*cos((double)rad_amount*TRANS);
    rad_amount+=rad;
    if(rad_amount>180) rad_amount-=360;
    if(rad_amount<-180) rad_amount+=360;
  }
  printf("%.0lf\n%.0lf\n", x-floor(0.5), -floor(0.5));

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:42: error: stray '\302' in program
   21 |   printf("%.0lf\n%.0lf\n", x-floor(0.5), <U+0082><U+0099>-floor(0.5));
      |                                          ^~~~~~~~
main.c:21:43: error: stray '\302' in program
   21 |   printf("%.0lf\n%.0lf\n", x-floor(0.5), <U+0082><U+0099>-floor(0.5));
      |                                                  ^~~~~~~~
Language: C

include <stdio.h>
#include <math.h>

#define PI 3.141592

int main(){
  int a,b;
  double v=.0,x=.0,y=.0;
  while(scanf("%d,%d",&a,&b)){
    if(a==0 && b==0)break;
    x+=sin(v*PI/180)*a;
    y+=cos(v*PI/180)*a;
    v+=b;
  }
  printf("%.0f\n%.0f\n",x,y);
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   while(scanf("%d,%d",&a,&b)){
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:9:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   while(scanf("%d,%d",&a,&b)){
      |         ^~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |   printf("%.0f\n%.0f\n",x,y);
      |   ^~~~~~
main.c:15:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
#include<math.h>
#define PI 3.141592
int main()
{
	int a,b;
	double x=0,y=0,r=90;
	while(scanf("%d,%d",&a,&b) && a || b)
	{
		y+=a*sin((r/180)*PI);
		x+=a*cos((r/180)*PI);
		r-=b;
	}
	printf("%.0lf\n%.0lf",x,y);
　　　　return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: stray '\343' in program
   15 | <U+3000><U+3000><U+3000><U+3000>return 0;
      | ^~~~~~~~
main.c:15:3: error: stray '\343' in program
   15 | <U+3000><U+3000><U+3000><U+3000>return 0;
      |         ^~~~~~~~
main.c:15:5: error: stray '\343' in program
   15 | <U+3000><U+3000><U+3000><U+3000>return 0;
      |                 ^~~~~~~~
main.c:15:7: error: stray '\343' in program
   15 | <U+3000><U+3000><U+3000><U+3000>return 0;
      |                         ^~~~~~~~
Language: C

#include<stdio.h>
#include<math.h>
#define PAI 3.141592

int main()
{
	double hos,x=0.0,y=0.0;
	double rad[2]={90.0};
	char c;

	while(1)
	{
		scanf("%lf,%lf",&hos,rad+1);
		if(hos==0.0 && rad==0.0)
			break;
		x+=hos*cos(rad[0]*PAI/180.0);
		y+=hos*sin(rad[0]*PAI/180.0);
		rad[0]-=rad[1];
				
	}

	printf("%d\n%d\n",(int)x,(int)y);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:35: error: invalid operands to binary == (have 'double *' and 'double')
   14 |                 if(hos==0.0 && rad==0.0)
      |                             ~~    ^~
      |                             |
      |                             double *
Language: C

#include <stdio.h>
#include <math.h>

int main()
{	int r,p;
	double x,y;
	scanf("%d,%d",&r,&p);
	y=r;
	t=p;
	while(1){
		scanf("%d,%d",&r,&p);
		if(r==0&&p==0) break;
		y+=r*sin(M_PI_2 - t*M_PI/180);
		x+=r*cos(M_PI_2 - t*M_PI/180);
		t=p;
	}
	printf("%d\n%d\n",(int)x,(int)y)
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 't' undeclared (first use in this function)
    9 |         t=p;
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:41: error: expected ';' before 'return'
   17 |         printf("%d\n%d\n",(int)x,(int)y)
      |                                         ^
      |                                         ;
   18 |         return 0;
      |         ~~~~~~
Language: C

#include <stdio.h>
#include <math.h>

int main(){
  int n,m;
  int x,y;

  x = y = 0;

  for(;;){
    scanf("%d,%d" ,&n ,&m);
    if(n == 0 && m == 0) break;
    
    x += n*cos(m);
    y += n*sin(m);      

  }

  printf("%d\n%d\n ,x ,y);

  return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:19:10: warning: missing terminating " character
   19 |   printf("%d\n%d\n ,x ,y);
      |          ^
main.c:19:10: error: missing terminating " character
   19 |   printf("%d\n%d\n ,x ,y);
      |          ^~~~~~~~~~~~~~~~~
main.c:21:3: error: expected expression before 'return'
   21 |   return 0;
      |   ^~~~~~
main.c:21:12: error: expected ';' before '}' token
   21 |   return 0;
      |            ^
      |            ;
   22 | }
      | ~
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
  double a,b,c=0;
  double x=0.0,y=0.0;

  for(;;){
    scanf(''%lf,%lf'',&a,&c);
    if(a==0||c==0)
      break;
    b+=c;
    b=b*M_PAI/180;
    x+=a*cos(b);
    y+=a*sin(b);
  }

  printf(''%f %f\n'',x,y);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: empty character constant
    9 |     scanf(''%lf,%lf'',&a,&c);
      |           ^~
main.c:9:14: error: 'lf' undeclared (first use in this function)
    9 |     scanf(''%lf,%lf'',&a,&c);
      |              ^~
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: expected expression before '%' token
    9 |     scanf(''%lf,%lf'',&a,&c);
      |                 ^
main.c:9:20: error: empty character constant
    9 |     scanf(''%lf,%lf'',&a,&c);
      |                    ^~
main.c:13:9: error: 'M_PAI' undeclared (first use in this function); did you mean 'M_PI'?
   13 |     b=b*M_PAI/180;
      |         ^~~~~
      |         M_PI
main.c:18:10: error: empty character constant
   18 |   printf(''%f %f\n'',x,y);
      |          ^~
main.c:18:13: error: 'f' undeclared (first use in this function)
   18 |   printf(''%f %f\n'',x,y);
      |             ^
main.c:18:17: error: stray '\' in program
   18 |   printf(''%f %f\n'',x,y);
      |                 ^
main.c:18:17: error: expected ')' before 'n'
   18 |   printf(''%f %f\n'',x,y);
      |         ~       ^~
      |                 )
main.c:18:19: error: empty character constant
   18 |   printf(''%f %f\n'',x,y);
      |                   ^~
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
  double a,b,c=0;
  double x=0.0,y=0.0;

  for(;;){
    scanf("%lf,%lf",&a,&c);
    if(a==0||c==0)
      break;
    b+=c;
    b=b*M_PAI/180;
    x+=a*cos(b);
    y+=a*sin(b);
  }

  printf("%f %f\n",x,y);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'M_PAI' undeclared (first use in this function); did you mean 'M_PI'?
   13 |     b=b*M_PAI/180;
      |         ^~~~~
      |         M_PI
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<cstdio>
#include<iostream>
#include<cmath>
using namespace std;
#define pi 3.14


int main()
{
	int x = 0, y = 0;
	double d = 0, a = 90, r = 360;
	while (d != 0 || r != 0) {
		scanf_s("%lf,%lf", &d, &r);
		x = x + d * cos(a / 360 * 2 * pi);
		y = y + d * sin(a / 360 * 2 * pi);
		a = a + r;
	}
	cout << x << endl << y << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   13 |                 scanf_s("%lf,%lf", &d, &r);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<iostream>
#include<queue>
#include<map>
#include<set>
#include<complex>
#include<stack>a
#include<cmath>

using namespace std;

#define reps(i,f,n) for(int i=f;i<int(n);i++)
#define rep(i,n) reps(i,0,n)


#define X real()
#define Y imag()
typedef complex<double> P;

const double EPS = 0.000000001;

int main(){
	
	int a,b;
	double angle = M_PI/2;
	P pos = P(0,0);
	
	while(scanf("%d,%d",&a,&b)){
		if(a==0 && b==0)break;
		pos += P(cos(angle),sin(angle))*(double)a;
		angle -= b/180.0*M_PI;
	}
	
	printf("%d %d\n",int(pos.X-0.5+EPS),int(pos.Y-0.5+EPS));
}

Compiler output:
a.cc:10:9: fatal error: stack>: No such file or directory
   10 | #include<stack>a
      |         ^~~~~~~~
compilation terminated.
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
#include <map>
#include <fstream>
#include <array>
#include <utility>
#include <functional>
#include <stack>
#include <math.h>

using namespace std;
typedef long long Int;
#define REP(i , x) for(Int i = 0 ; i < x ; ++i)
typedef pair<int, int> P;


int main()
{
	int a, b;

	double x = 0; 
	double y = 0;
	int radius = 0;


	while (scanf_s("%d,%d", &a, &b), a&&b){
		y += a*sin(radius*M_PI/180);
		x += a*cos(radius*M_PI/180);
		radius += b;
	}
	y *= 10;
	y %= 10;
	y /= 10;

	x *= 10;
	x %= 10;
	x /= 10;

	cout << (int)y << endl << (int)x << endl;                                                        
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   30 |         while (scanf_s("%d,%d", &a, &b), a&&b){
      |                ^~~~~~~
      |                scanf
a.cc:36:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   36 |         y %= 10;
      |         ~~^~~~~
a.cc:36:11: note:   in evaluation of 'operator%=(double, int)'
a.cc:40:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   40 |         x %= 10;
      |         ~~^~~~~
a.cc:40:11: note:   in evaluation of 'operator%=(double, int)'
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
#include <map>
#include <fstream>
#include <array>
#include <utility>
#include <functional>
#include <stack>
#include <math.h>

using namespace std;
typedef long long Int;
#define REP(i , x) for(Int i = 0 ; i < x ; ++i)
typedef pair<int, int> P;


int main()
{
	int a, b;

	double x = 0; 
	double y = 0;
	int radius = 0;


	while (scanf("%d,%d", &a, &b), a&&b){
		y += a*sin(radius*M_PI/180);
		x += a*cos(radius*M_PI/180);
		radius += b;
	}
	y *= 10;
	y %= 10;
	y /= 10;

	x *= 10;
	x %= 10;
	x /= 10;

	cout << (int)y << endl << (int)x << endl;                                                        
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   36 |         y %= 10;
      |         ~~^~~~~
a.cc:36:11: note:   in evaluation of 'operator%=(double, int)'
a.cc:40:11: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   40 |         x %= 10;
      |         ~~^~~~~
a.cc:40:11: note:   in evaluation of 'operator%=(double, int)'
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
#include <map>
#include <fstream>
#include <array>
#include <utility>
#include <functional>
#include <stack>
#include <math.h>

using namespace std;
typedef long long Int;
#define REP(i , x) for(Int i = 0 ; i < x ; ++i)
typedef pair<int, int> P;


int main()
{
	int a, b;

	double x = 0; 
	double y = 0;
	int radius = 0;


	while (scanf("%d,%d", &a, &b), a&&b){
		y += a*sin(radius*M_PI/180);
		x += a*cos(radius*M_PI/180);
		radius += b;
	}
	y *= 10;
	int y_ = y;
	y_ %= 10;
	y_ /= 10;

	x *= 10;
	int x_ x;
	x_ %= 10;
	x_ /= 10;

	cout << (int)y_ << endl << (int)x_ << endl;                                                        
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:16: error: expected initializer before 'x'
   41 |         int x_ x;
      |                ^
a.cc:42:9: error: 'x_' was not declared in this scope; did you mean 'y_'?
   42 |         x_ %= 10;
      |         ^~
      |         y_
Language: C++

#include <iostream>
#include <math.h>
#include <stdlib>
using namespace std;
#define PI 3.14159265
int main()
{
    double x=0,y=0;
	int r,dth,th=0;
	while(true){
		scanf("%d,%d",&r,&dth);
		if(!r&&!dth)break;
		x+=r*sin((double)th*PI/180);
		y+=r*cos((double)th*PI/180);
		th+=dth;
	}
	cout<<int(x)<<endl;
	cout<<int(y)<<endl;
    return 0;
}

Compiler output:
a.cc:3:10: fatal error: stdlib: No such file or directory
    3 | #include <stdlib>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <math.h>
#include <stdlib>
#include <cstdio>
using namespace std;
#define PI 3.14159265
int main()
{
    double x=0,y=0;
	int r,dth,th=0;
	while(true){
		scanf("%d,%d",&r,&dth);
		if(!r&&!dth)break;
		x+=r*sin((double)th*PI/180);
		y+=r*cos((double)th*PI/180);
		th+=dth;
	}
	cout<<int(x)<<endl;
	cout<<int(y)<<endl;
    return 0;
}

Compiler output:
a.cc:3:10: fatal error: stdlib: No such file or directory
    3 | #include <stdlib>
      |          ^~~~~~~~
compilation terminated.
Language: C++

//
#include <iostream>
#include <cstdio>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <array>
#include <numeric>
#include <functional>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<utility>
#include<complex>

using namespace std;

#define REP(i,m,n) for(int i=m;i<(n);i++)
#define rep(i,n) REP(i,0,n)
#define ALL(x) (x).begin(),(x).end()

typedef long long ll;
typedef pair<int, int> pii;

const ll inf = INT_MAX;
const double eps = 1e-10;
const double pi = acos(-1.0);
const int di[][2] = {{1,0},{0,1},{-1,0},{0,-1},{1,1},{1,-1},{-1,1},{-1,-1}};

int main(){

	int r;
	double x=0, y=0;
	double ini = pi/2, alpha, theta;
	cout << endl;
	while(scanf("%d,%lf\n", &r, &theta)){
		if(r == 0 && std::abs(theta - 0.0) < eps){
			// printf("finished\n");
			break;
		}
		else{
			x += r*cos(ini);
			y += r*sin(ini);
			alpha = pi*theta/180;
			ini -= alpha;
		}
	}
	printf("%d %d\n", (int)x, (int)y);
	return 0;
}

Compiler output:
a.cc:29:16: error: 'INT_MAX' was not declared in this scope
   29 | const ll inf = INT_MAX;
      |                ^~~~~~~
a.cc:19:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   18 | #include<complex>
  +++ |+#include <climits>
   19 |
Language: C++

import sys
import itertools
import math

curdeg = 0
xstep = 0
ystep = 0
for line in sys.stdin.readlines():
    step, deg = map(int, line.split(","))
    xstep += step * math.cos(math.pi * curdeg / 180)
    ystep += step * math.sin(math.pi * curdeg / 180)
    curdeg += deg 


print("{:.0f}".format(ystep))
print("{:.0f}".format(xstep))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
#include<cmath>
#difine PI 3.14159265359
using namespace std;

int main(){
  int d, a = 90, a2; 
  double x,y;
  char c;
  while(cin >> d >> c >> a2){
    if(d == 0 && a == 0) break;
    double rad = a * (PI / 180);
    x += d * cos(rad);
    y += d * sin(rad);
    a += a2;
    }
  }
  cout << (int)x << "\n" << (int)y << endl;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #difine; did you mean #define?
    3 | #difine PI 3.14159265359
      |  ^~~~~~
      |  define
a.cc: In function 'int main()':
a.cc:12:23: error: 'PI' was not declared in this scope
   12 |     double rad = a * (PI / 180);
      |                       ^~
a.cc: At global scope:
a.cc:18:3: error: 'cout' does not name a type
   18 |   cout << (int)x << "\n" << (int)y << endl;
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
#include<cmath>
#define PI 3.14159265359
using namespace std;

int main(){
  int d, a = 90, a2; 
  double x,y;
  char c;
  while(cin >> d >> c >> a2){
    if(d == 0 && a == 0) break;
    double rad = a * (PI / 180);
    x += d * cos(rad);
    y += d * sin(rad);
    a += a2;
    }
  }
  cout << (int)x << "\n" << (int)y << endl;
}

Compiler output:
a.cc:18:3: error: 'cout' does not name a type
   18 |   cout << (int)x << "\n" << (int)y << endl;
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
#include<math.h>
#include<stdio.h>
using namespace std;
int main() {
	double sum,x,y,b,c;
	int a, d;
	a = 0;
	x = 0;
	y = 0;
	sum = 0;
	while (scanf_s("%d,%d",&d,&a)) {
		if (a == 0 && d == 0) break;
		b = (double)a;
		c = (double)d;
		x += c*cos(sum*3.1416/180);
		y += c*sin(sum*3.1416/180);
		sum += b;
	}
	cout << (int)y << " " << (int)x << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   12 |         while (scanf_s("%d,%d",&d,&a)) {
      |                ^~~~~~~
      |                scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
	cout << fixed << setprecision(0);
	ios :: sync_with_stdio(false);
	db d, t; char c;
	db x, y, a;
	while(cin >> d >> c >> t) {
		a -= t;
		x += d * cos(a);
		y += d * sin(a);
	}
	cout << x << ' ' << y << '\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'db' was not declared in this scope
    7 |         db d, t; char c;
      |         ^~
a.cc:8:11: error: expected ';' before 'x'
    8 |         db x, y, a;
      |           ^~
      |           ;
a.cc:9:22: error: 'd' was not declared in this scope
    9 |         while(cin >> d >> c >> t) {
      |                      ^
a.cc:9:32: error: 't' was not declared in this scope
    9 |         while(cin >> d >> c >> t) {
      |                                ^
a.cc:10:17: error: 'a' was not declared in this scope
   10 |                 a -= t;
      |                 ^
a.cc:11:17: error: 'x' was not declared in this scope
   11 |                 x += d * cos(a);
      |                 ^
a.cc:12:17: error: 'y' was not declared in this scope
   12 |                 y += d * sin(a);
      |                 ^
a.cc:14:17: error: 'x' was not declared in this scope
   14 |         cout << x << ' ' << y << '\n';
      |                 ^
a.cc:14:29: error: 'y' was not declared in this scope
   14 |         cout << x << ' ' << y << '\n';
      |                             ^
Language: C++

import Data.List.Split
type Dir = [Double]
type Round = Double

solve :: Round -> Dir -> [Double] -> Dir
solve _ d [] = d
solve r [f,s] (x:y:xs) = solve (y+r) (f+x*sin (pi/180*r) : s+x*cos (pi/180*r):[]) xs

floor' :: Double -> Int
floor' d
  | d < 0 = (0-) $ floor $ -d
  | otherwise = floor d

main = getContents >>= putStr . unlines . map (show . floor') . solve 0 [0,0] . map read . concat . map (splitOn ",") . lines

Compiler output:
a.cc:9:6: warning: missing terminating ' character
    9 | floor' :: Double -> Int
      |      ^
a.cc:9:6: error: missing terminating ' character
    9 | floor' :: Double -> Int
      |      ^~~~~~~~~~~~~~~~~~
a.cc:10:6: warning: missing terminating ' character
   10 | floor' d
      |      ^
a.cc:10:6: error: missing terminating ' character
   10 | floor' d
      |      ^~~
a.cc:14:60: warning: missing terminating ' character
   14 | main = getContents >>= putStr . unlines . map (show . floor') . solve 0 [0,0] . map read . concat . map (splitOn ",") . lines
      |                                                            ^
a.cc:14:60: error: missing terminating ' character
   14 | main = getContents >>= putStr . unlines . map (show . floor') . solve 0 [0,0] . map read . concat . map (splitOn ",") . lines
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List.Split
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <stack>
using namespace std;


double rad(int degree){
	return (M_PI*degree) / 180;
}


int main(){
	double x = 0, y = 0;
	int d, dir = 90, a;
	char comma;

	while (cin >> d >> comma >> a, d || a){
		x += d * cos(rad(dir));
		y += d * sin(rad(dir));
		dir -= a;
	}

	cout << (int)x << endl;
	cout << (int)y << endl;

	return 0;
}

Compiler output:
a.cc: In function 'double rad(int)':
a.cc:8:17: error: 'M_PI' was not declared in this scope
    8 |         return (M_PI*degree) / 180;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:18:26: error: 'cos' was not declared in this scope
   18 |                 x += d * cos(rad(dir));
      |                          ^~~
a.cc:19:26: error: 'sin' was not declared in this scope
   19 |                 y += d * sin(rad(dir));
      |                          ^~~
Language: C++

/*
C++ ???????????????????????????????????¬??????
??????AOJ-ITP1??????????????????
*/
#define _USE_MATH_DEFINES

#include <iostream> // ?¨??????\??????
#include <fstream>  // ??????????????\??????
#include <string>   // ???????????¢???
#include <vector>   // ???????????????
#include <cmath>    // ??°??????
#include <iomanip>  // stream???????????¢???
#include <algorithm>// max??¢??°??????

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;        // ????´???°????????????????????????
using std::fixed;         // ???????????????????¨???????????????????????????????
using std::setprecision;  // ?????°????°???°?????\???????????°????????????????????¨????????\???

int main() {
	double d = 0.0;	// ????????????????????¢
	double a = 0.0;	// ?????????????????????
	double x = 0.0;
	double y = 0.0;
	int ak = 90;	// ???????????????90????????????
	while (true)
	{
		scanf_s("%lf,%lf", &d, &a);	// double?????????????????????%f??§????????????%lf?????????
		if (d == 0 && a == 0) { break; }
		x += cos(ak*M_PI / 180) * d;
		y += sin(ak*M_PI / 180) * d;
		ak -= a;
		ak %= 360;
	}
	// ??????
	cout << (int)x << "\n" << (int)y << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   31 |                 scanf_s("%lf,%lf", &d, &a);     // double?????????????????????%f??§????????????%lf?????????
      |                 ^~~~~~~
      |                 scanf
Language: C++

import math
x = y = n= 0
while True:
	d,a = map(int,input().split(','))
	if d == a == 0: break
	x += d*math.sin(math.radians(n))
	y += d*math.cos(math.radians(n))
	n+=a
print(*map(int,(x,y)),sep='\n')


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#define _USE_MATH_DEFINES
#include<iostream>
int main()
{
	double x = 0, y = 0;
	int a = 90;
	while (true)
	{
		int di, ai;
		char temp;
		std::cin >> di >> temp >> ai;
		if (di == 0 && ai == 0)
		{
			break;
		}
		x += di * cos(a * M_PI / 180);
		y += di * sin(a * M_PI / 180);
		a -= ai;
	}
	std::cout << static_cast<int>(floor(x)) << std::endl;
	std::cout << static_cast<int>(floor(y)) << std::endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:35: error: 'M_PI' was not declared in this scope
   16 |                 x += di * cos(a * M_PI / 180);
      |                                   ^~~~
a.cc:16:27: error: 'cos' was not declared in this scope
   16 |                 x += di * cos(a * M_PI / 180);
      |                           ^~~
a.cc:17:27: error: 'sin' was not declared in this scope
   17 |                 y += di * sin(a * M_PI / 180);
      |                           ^~~
a.cc:20:39: error: 'floor' was not declared in this scope
   20 |         std::cout << static_cast<int>(floor(x)) << std::endl;
      |                                       ^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<string.h>

#define add push_back
#define inf 2147000000
#define pi 3.1415926535

#define rep(i,n) for(int i=0;i<n;i++)
#define out(a) cout<<a<<endl;

using namespace std;

int main(void){
	double x,y,kk=pi/2;
	string str;
	char* bin;
	x=0;y=0;
	while(1){
		cin>>str;
		int t = str.find(',');
		string st1 = str.substr(0,t);
		string st2 = str.substr(t+1);
		
		double a1,a2;
		bin = &st1[0];
		a1=atoi(bin);
		bin = &st2[0];
		a2=atoi(bin);
		
		if(a1==0 && a2==0){
			break;
		}
		x+=cos(kk)*a1;
		y+=sin(kk)*a1;
		
		kk-=(double)a2/180*pi;
	}
	printf("%.0lf\n%.0lf\n",x,y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:20: error: 'cos' was not declared in this scope
   36 |                 x+=cos(kk)*a1;
      |                    ^~~
a.cc:37:20: error: 'sin' was not declared in this scope; did you mean 'bin'?
   37 |                 y+=sin(kk)*a1;
      |                    ^~~
      |                    bin
Language: C++

#include <iostream>
#include <numeric>
#include <cstdlib>
using namespace std;

int main(){
	double x = 0.0;
	double y = 0.0;
	double angle = 90.0;
	for(;;){
		double hos;
		double change;
		char c;
		cin >> hos >> c >> change;
		if(hos == 0 && change == 0) break;
		x += hos * cos(angle * 3.14159 / 180);
		y += hos * sin(angle * 3.14159 / 180);
		angle -= change;
	}
	cout << (int)x << endl;
	cout << (int)y << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: 'cos' was not declared in this scope; did you mean 'hos'?
   16 |                 x += hos * cos(angle * 3.14159 / 180);
      |                            ^~~
      |                            hos
a.cc:17:28: error: 'sin' was not declared in this scope
   17 |                 y += hos * sin(angle * 3.14159 / 180);
      |                            ^~~
Language: C++

#include <iostream>
#include <numeric>
#include <cstdlib>
using namespace std;

int main(){
	double x = 0.0;
	double y = 0.0;
	double angle = 90.0;
	for(;;){
		double hos;
		double change;
		char c;
		cin >> hos >> c >> change;
		if(hos == 0 && change == 0) break;
		x += hos * std::cos(angle * 3.14159 / 180);
		y += hos * std::sin(angle * 3.14159 / 180);
		angle -= change;
	}
	cout << (int)x << endl;
	cout << (int)y << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:33: error: 'cos' is not a member of 'std'; did you mean 'ios'?
   16 |                 x += hos * std::cos(angle * 3.14159 / 180);
      |                                 ^~~
      |                                 ios
a.cc:17:33: error: 'sin' is not a member of 'std'; did you mean 'min'?
   17 |                 y += hos * std::sin(angle * 3.14159 / 180);
      |                                 ^~~
      |                                 min
Language: C++

#include <iostream>
using namespace std;

int main(){
	double x = 0.0, y = 0.0;
	double hosu;
	double angle = 90.0;
	double change;
	char c;
	while(cin >> hosu >> c >> change){
		if(hosu == 0 && change == 0) break;
		x += hosu * cos(angle / 180 * 3.14159);
		y += hosu * sin(angle / 180 * 3.14159);
		angle -= change;
	}
	cout << (int)x << endl;
	cout << (int)y << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: 'cos' was not declared in this scope
   12 |                 x += hosu * cos(angle / 180 * 3.14159);
      |                             ^~~
a.cc:13:29: error: 'sin' was not declared in this scope
   13 |                 y += hosu * sin(angle / 180 * 3.14159);
      |                             ^~~
Language: C++

d;double x,y,c;main(s){for(;~scanf("%d,%d",&s,&d);c+=d/57.29578)x+=s*sin(c),y+=s*cos(c);exit(!printf("%d\n%d\n",d=x,s=y));}

Compiler output:
a.cc:1:1: error: 'd' does not name a type
    1 | d;double x,y,c;main(s){for(;~scanf("%d,%d",&s,&d);c+=d/57.29578)x+=s*sin(c),y+=s*cos(c);exit(!printf("%d\n%d\n",d=x,s=y));}
      | ^
a.cc:1:20: error: expected constructor, destructor, or type conversion before '(' token
    1 | d;double x,y,c;main(s){for(;~scanf("%d,%d",&s,&d);c+=d/57.29578)x+=s*sin(c),y+=s*cos(c);exit(!printf("%d\n%d\n",d=x,s=y));}
      |                    ^
Language: C++

#include <iostream>

#define M_PI 3.141592653589793

using namespace std;

int debug = 0;

int main(void){
	int len, deg, direction=90;
	double x=0, y=0;
	int i_x, i_y;

	while(cin >> len){
		cin.ignore(); //read ,
		cin >> deg;

		if(len == 0 && deg == 0) break;

		//proceed
		x += len * cos(direction * M_PI / 180);
		y += len * sin(direction * M_PI / 180);
		
		//turn clockwise
		direction -= deg;

		if(debug) cout << "(x, y) = ("<< x << ", "<< y << ")"<< endl;
	}

	i_x = (int)x;
	i_y = (int)y;

	cout << i_x << endl;
	cout << i_y << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:28: error: 'cos' was not declared in this scope
   21 |                 x += len * cos(direction * M_PI / 180);
      |                            ^~~
a.cc:22:28: error: 'sin' was not declared in this scope
   22 |                 y += len * sin(direction * M_PI / 180);
      |                            ^~~
Language: C++

#include <iostream>

using namespace std;

int debug = 0;

int main(void){
	int len, deg, direction=90;
	double x=0, y=0;
	int i_x, i_y;

	while(cin >> len){
		cin.ignore(); //read ,
		cin >> deg;

		if(len == 0 && deg == 0) break;

		//proceed
		x += len * cos(direction * 3.14159265358979 / 180);
		y += len * sin(direction * 3.14159265358979 / 180);
		
		//turn clockwise
		direction -= deg;

		if(debug) cout << "(x, y) = ("<< x << ", "<< y << ")"<< endl;
	}

	i_x = (int)x;
	i_y = (int)y;

	cout << i_x << endl;
	cout << i_y << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:28: error: 'cos' was not declared in this scope
   19 |                 x += len * cos(direction * 3.14159265358979 / 180);
      |                            ^~~
a.cc:20:28: error: 'sin' was not declared in this scope
   20 |                 y += len * sin(direction * 3.14159265358979 / 180);
      |                            ^~~
Language: C++

#include <iostream>

#define M_PI 3.141592653589793

using namespace std;

int debug = 0;

int main(void){
	int len, deg, direction=90;
	double x=0, y=0;
	int i_x, i_y;

	while(cin >> len){
		cin.ignore(); //read ,
		cin >> deg;

		if(len == 0 && deg == 0) break;

		//proceed
		x += len * cos(direction * M_PI / 180);
		y += len * sin(direction * M_PI / 180);
		
		//turn clockwise
		direction -= deg;

	}

	i_x = x;
	i_y = y;

	cout << i_x << endl;
	cout << i_y << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:28: error: 'cos' was not declared in this scope
   21 |                 x += len * cos(direction * M_PI / 180);
      |                            ^~~
a.cc:22:28: error: 'sin' was not declared in this scope
   22 |                 y += len * sin(direction * M_PI / 180);
      |                            ^~~
Language: C++

#include <iostream>

#define M_PI 3.141592653589793

using namespace std;

int debug = 0;

int main(void){
	int len, deg, direction=90;
	double x=0, y=0;
	int i_x, i_y;

	while(cin >> len){
		cin.ignore();
		cin >> deg;

		if(len == 0 && deg == 0) break;

		x += len * cos(direction * M_PI / 180);
		y += len * sin(direction * M_PI / 180);
		
		direction -= deg;
	}

	i_x = x;
	i_y = y;

	cout << i_x << endl;
	cout << i_y << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:28: error: 'cos' was not declared in this scope
   20 |                 x += len * cos(direction * M_PI / 180);
      |                            ^~~
a.cc:21:28: error: 'sin' was not declared in this scope
   21 |                 y += len * sin(direction * M_PI / 180);
      |                            ^~~