-4
#include <stdio.h>
#include <locale.h>
#include <string.h>
int main () {
    setlocale (LC_ALL,"Portuguese");
    int num,escolha; char nome[20];
    printf ("\nDigite seu nome: ");
    gets (nome);
    printf ("\nInforme um número: ");
    scanf ("%d",&num);
    printf ("\nDigite 1 para ver os números pares ou 2 para ver os números ímpares: ");
    scanf ("%i",&escolha);
    switch (escolha){
        case 1: for (int i = 0; i < num; i ++){
                    if (i%2==0){
                        printf ("\n%i",i); } }
        break;
        case 2: for (int h = 0; h < num; h ++){
                    if (h%2==1){
                        printf ("\n%i",h); } }
        break;
        default: printf ("\nOpção invalida.");
    }
    num % 2==0 ? printf("\n\n%s o número digitado por você é par !\n\a",nome) : printf("\n\n%s o número digitado por você é ímpar !\n\a",nome);
    getchar ();
    return 0;
}
Someone can tell me why this code compiles in dev, but in Blocks it gives this error ( ps has already happened with several codes this stop not to compile and use it because as I read in cprogressivo.net it has far more advantages than others ) :
The compiler : mingw


I put everything in order, the code is with the identation ok, just missed the comments so what am I doing wrong ? ( valeu I will not use gets ! )
– user48471