[ create a new paste ] login | about

Link: http://codepad.org/iCsGg1qq    [ raw code | output | fork ]

C, pasted on May 14:
/*Erro menu >>>>>menuprinc*/


printf("teste 1 a 6 \n\n");
    scanf("%d",&menuprinc);

 if((menuprinc>6) && (menuprinc!=0)){
             printf("OPÇÃO INVÁLIDA – DIGITE NOVAMENTE.\n\n");
        }



/*Erro menu >>>>menubat1*/

printf("teste 1 a 6 \n\n");
    scanf("%d",&menubat1);
 if((menubat1>6) && (menubat1!=0)){
             printf("OPÇÃO INVÁLIDA – DIGITE NOVAMENTE.\n\n");
        }

/*Erro menu >>>>menubat2*/

printf("teste 1 a 6 \n\n");
    scanf("%d",&menubat2);
 if((menubat2>6) && (menubat2!=0)){
             printf("OPÇÃO INVÁLIDA – DIGITE NOVAMENTE.\n\n");
        }

/*Erro menu >>>>menubat3*/

printf("teste 1 a 6 \n\n");
    scanf("%d",&menubat3);
 if((menubat3>6) && (menubat3!=0)){
             printf("OPÇÃO INVÁLIDA – DIGITE NOVAMENTE.\n\n");
        }


Output:
Line 4: error: expected declaration specifiers or '...' before string constant
Line 4: warning: data definition has no type or storage class
Line 4: error: conflicting types for 'printf'
t.c:5: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 5: error: expected declaration specifiers or '...' before string constant
Line 5: error: expected declaration specifiers or '...' before '&' token
Line 5: warning: data definition has no type or storage class
Line 5: error: conflicting types for 'scanf'
t.c:6: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 7: error: expected identifier or '(' before 'if'
Line 15: error: expected declaration specifiers or '...' before string constant
Line 15: warning: data definition has no type or storage class
Line 15: error: conflicting types for 'printf'
t.c:16: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 16: error: expected declaration specifiers or '...' before string constant
Line 16: error: expected declaration specifiers or '...' before '&' token
Line 16: warning: data definition has no type or storage class
Line 16: error: conflicting types for 'scanf'
t.c:17: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 17: error: expected identifier or '(' before 'if'
Line 23: error: expected declaration specifiers or '...' before string constant
Line 23: warning: data definition has no type or storage class
Line 23: error: conflicting types for 'printf'
t.c:24: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 24: error: expected declaration specifiers or '...' before string constant
Line 24: error: expected declaration specifiers or '...' before '&' token
Line 24: warning: data definition has no type or storage class
Line 24: error: conflicting types for 'scanf'
t.c:25: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 25: error: expected identifier or '(' before 'if'
Line 31: error: expected declaration specifiers or '...' before string constant
Line 31: warning: data definition has no type or storage class
Line 31: error: conflicting types for 'printf'
t.c:32: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 32: error: expected declaration specifiers or '...' before string constant
Line 32: error: expected declaration specifiers or '...' before '&' token
Line 32: warning: data definition has no type or storage class
Line 32: error: conflicting types for 'scanf'
t.c:33: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
Line 33: error: expected identifier or '(' before 'if'


Create a new paste based on this one


Comments: