#include <stdio.h>
//MTG starting health
int main() {
int health;
for (health=0, health<=20, health++)
(printf("health is %d \n" health
); )
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiAKLy9NVEcgc3RhcnRpbmcgaGVhbHRoCiAKaW50IG1haW4oKSB7CgppbnQgaGVhbHRoOwogCmZvciAoaGVhbHRoPTAsIGhlYWx0aDw9MjAsIGhlYWx0aCsrKQoocHJpbnRmKCJoZWFsdGggaXMgJWQgXG4iIGhlYWx0aCk7CikKcmV0dXJuIDA7Cn0=
prog.c: In function ‘main’:
prog.c:9:14: warning: right-hand operand of comma expression has no effect [-Wunused-value]
for (health=0, health<=20, health++)
^
prog.c:9:36: error: expected ‘;’ before ‘)’ token
for (health=0, health<=20, health++)
^
prog.c:9:36: error: expected expression before ‘)’ token
prog.c:10:27: error: expected ‘)’ before ‘health’
(printf("health is %d \n" health);
^~~~~~
prog.c:10:21: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
(printf("health is %d \n" health);
^
prog.c:10:34: error: expected ‘)’ before ‘;’ token
(printf("health is %d \n" health);
^
prog.c:12:1: error: expected ‘;’ before ‘return’
return 0;
^~~~~~