mi aiuteresti anche a compilarlo? gcc mi da questi errori:
codice:
esercizio.c:1: error: syntax error before '{' token
esercizio.c:3: warning: data definition has no type or storage class
esercizio.c:4: warning: data definition has no type or storage class
esercizio.c:5: warning: data definition has no type or storage class
esercizio.c:6: error: initializer element is not constant
esercizio.c:6: warning: data definition has no type or storage class
esercizio.c:7: error: parse error before string constant
esercizio.c:7: warning: conflicting types for built-in function `printf'
esercizio.c:7: warning: data definition has no type or storage class
esercizio.c:10: error: syntax error before '{' token
esercizio.c:12: error: redefinition of `a'
esercizio.c:3: error: `a' previously defined here
esercizio.c:12: warning: data definition has no type or storage class
esercizio.c:13: error: redefinition of `b'
esercizio.c:4: error: `b' previously defined here
esercizio.c:13: warning: data definition has no type or storage class
esercizio.c:14: error: parse error before string constant
esercizio.c:14: warning: data definition has no type or storage class
esercizio.c:15: error: parse error before string constant
esercizio.c:15: warning: conflicting types for built-in function `scanf'
esercizio.c:15: warning: data definition has no type or storage class
esercizio.c:16: error: redefinition of `y'
esercizio.c:6: error: `y' previously defined here
esercizio.c:16: error: initializer element is not constant
esercizio.c:16: warning: data definition has no type or storage class
esercizio.c:17: error: parse error before string constant
esercizio.c:17: warning: data definition has no type or storage class
scusa ma sono proprio niubbo