Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

single_digit

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.48 sec, absolute service time: 0,58 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp: In function ‘void single_digit(char*)’:
source_file.cpp:10:7: error: incompatible types in assignment of ‘char*’ to ‘char [10]’
   sum = sum + n[i];
       ^
source_file.cpp:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  if(sum>=10)
          ^
source_file.cpp:15:2: error: expected ‘;’ before ‘}’ token
  }
  ^

        

    
                
λ
.NET NoSQL database for rapid development