#include<stdio.h>
int main()
{
int a, k=0;
scanf("%d", &a);
int s=0;
while(k!=a);
{
int b;
scanf("%d", &b);
s+=b;
k+=1;
}
printf("%d", s);
return 0;
}
while(k!=a);
main.c:9:16: warning: while loop has empty body [-Wempty-body]
while(k!=a);
^
main.c:9:16: note: put the semicolon on a separate line to silence this warning