include <iostream> using namespace std; int main() {int T,N, s=0,m; cin>>T; while(T--) {cin>>N; while(N>0) {m=N%10; N=N/10; s=s+m;} cout<<s<<'\n';} return 0;} why is it wrong? - Quora
![How to remove common errors in TurboC compiler || C++ graphics || Linker error || undefined symbol - YouTube How to remove common errors in TurboC compiler || C++ graphics || Linker error || undefined symbol - YouTube](https://i.ytimg.com/vi/6rBh3-4Tcz8/maxresdefault.jpg)
How to remove common errors in TurboC compiler || C++ graphics || Linker error || undefined symbol - YouTube
![A Note for SE 116 Introduction to C++ Programming S. Kondakcı Composed from the text “Object-oriented Programming With C++”, S. Kondakcı - ppt download A Note for SE 116 Introduction to C++ Programming S. Kondakcı Composed from the text “Object-oriented Programming With C++”, S. Kondakcı - ppt download](https://images.slideplayer.com/25/7762237/slides/slide_3.jpg)
A Note for SE 116 Introduction to C++ Programming S. Kondakcı Composed from the text “Object-oriented Programming With C++”, S. Kondakcı - ppt download
![Overview of C++ Chapter C++ Language Elements t Comments make a program easier to understand t // Used to signify a comment on a single line. - ppt download Overview of C++ Chapter C++ Language Elements t Comments make a program easier to understand t // Used to signify a comment on a single line. - ppt download](https://images.slideplayer.com/25/7903576/slides/slide_5.jpg)