- Owner
- Tasnádi Zoltán
- Problem
- Lumber Jack and Grammar
- Source
- 0.54KB
- Result
- Compile error (Non-zero exit status: 1)
Compiler output
prog.cpp: In function 'int main()': prog.cpp:12:9: error: redeclaration of 'int c' int c = s.find('.'); ^ prog.cpp:7:9: note: 'int c' previously declared here int c = s.find('-'); ^ prog.cpp:18:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(c != -1 && c < s.length()){ ^