Language: C

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

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | d;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(s)
      | ^~~~
main.c: In function 'main':
main.c:3:1: error: type of 's' defaults to 'int' [-Wimplicit-int]
main.c:5:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         for(;~scanf("%d,%d",&s,&d);c+=d*M_PI/180)
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | d;
main.c:5:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         for(;~scanf("%d,%d",&s,&d);c+=d*M_PI/180)
      |               ^~~~~
main.c:5:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:41: error: 'M_PI' undeclared (first use in this function)
    5 |         for(;~scanf("%d,%d",&s,&d);c+=d*M_PI/180)
      |                                         ^~~~
main.c:5:41: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: implicit declaration of function 'sin' [-Wimplicit-function-declaration]
    6 |                 x+=s*sin(c),y+=s*cos(c);
      |                      ^~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'sin'
  +++ |+#include <math.h>
    1 | d;
main.c:6:22: warning: incompatible implicit declaration of built-in function 'sin' [-Wbuiltin-declaration-mismatch]
    6 |                 x+=s*sin(c),y+=s*cos(c);
      |                      ^~~
main.c:6:22: note: include '<math.h>' or provide a declaration of 'sin'
main.c:6:34: error: implicit declaration of function 'cos' [-Wimplicit-function-declaration]
    6 |                 x+=s*sin(c),y+=s*cos(c);
      |                                  ^~~
main.c:6:34: note: include '<math.h>' or provide a declaration of 'cos'
main.c:6:34: warning: incompatible implicit declaration of built-in function 'cos' [-Wbuiltin-declaration-mismatch]
main.c:6:34: note: include '<math.h>' or provide a declaration of 'cos'
main.c:7:9: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    7 |         exit(!printf("%d\n%d\n",d=x,s=y));
      |         ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | d;
main.c:7:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    7 |         exit(!printf("%d\n%d\n",d=x,s=y));
      |         ^~~~
main.c:7:9: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:7:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |         exit(!printf("%d\n%d\n",d=x,s=y));
      |               ^~~~~~
main.c:7:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:15: note: include '<stdio.h>' or provide a declaration of 'printf'