fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.  
  9. int ptr;
  10. bool flag = false;
  11. string temp = "0000000000000000000000000000000000000000000000000";
  12. for(ptr=0;ptr<temp.length();ptr++){
  13. if(temp[ptr]!='0')
  14. flag=true;
  15. }
  16. if(!flag)
  17. cout<<"error" <<endl;
  18. else
  19. cout<<"Normal" <<endl;
  20. return 0;
  21. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
error