fork download
  1. #include<stdio.h>
  2. main( )
  3. {
  4. int si,prin,time,rate;
  5. scant("%d%d%d",&prin,&time,&rate);
  6. si =(prin*time*rate/100;
  7. pirntf("%d",si);
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1000
5
15
compilation info
prog.c:2:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main( )
^
prog.c:5:1: warning: implicit declaration of function 'scant' is invalid in C99 [-Wimplicit-function-declaration]
scant("%d%d%d",&prin,&time,&rate);
^
prog.c:6:24: error: expected ')'
si =(prin*time*rate/100;
                       ^
prog.c:6:5: note: to match this '('
si =(prin*time*rate/100;
    ^
prog.c:7:1: warning: implicit declaration of function 'pirntf' is invalid in C99 [-Wimplicit-function-declaration]
pirntf("%d",si);
^
3 warnings and 1 error generated.
stdout
Standard output is empty