fork download
  1. #include<stdio.h>
  2. main()
  3. {
  4. int i,v,d,c=0;
  5. scanf("%d%d%d",&i,&v,&d);
  6. if(i!=0||v!=0||e!=0)
  7. {
  8. c=c+i*25+v*30+d*35;
  9. Printf("%d",c);
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
1
1
compilation info
prog.c:2:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main()
^
prog.c:6:16: error: use of undeclared identifier 'e'
if(i!=0||v!=0||e!=0)
               ^
prog.c:9:1: warning: implicit declaration of function 'Printf' is invalid in C99 [-Wimplicit-function-declaration]
Printf("%d",c);
^
2 warnings and 1 error generated.
stdout
Standard output is empty