Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

ATM

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.13 sec, absolute service time: 0,21 sec 
edit mode |  history  | discussion
Error(s):
source_file.c: In function ‘main’:
source_file.c:30:29: error: ‘deposit’ undeclared (first use in this function)
                 scanf("%d",&deposit);
                             ^
source_file.c:30:29: note: each undeclared identifier is reported only once for each function it appears in
source_file.c:7:9: warning: unused variable ‘deposite’ [-Wunused-variable]
     int deposite,accountnumber, pin,choice,a,balance =10000;
         ^
source_file.c:9:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&accountnumber);
     ^
source_file.c:11:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&pin);
     ^
source_file.c:18:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&choice);
     ^
source_file.c:25:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
              scanf("%d",&a);
              ^