online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <cmath> #include <climits> using namespace std; bool czy_pal(long long n); int main() { cout<<"long long: "<<sizeof(long long)<<endl; cout<<"max long long: "<<LLONG_MAX<<endl; long long liczba; for (int i=0;i<7;i++) { cout<<"Podaj liczbe: "; cin>>liczba; cout<<liczba<<" - "<<czy_pal(liczba)<<endl; } return 0; } bool czy_pal(long long n) { int i=1; long long temp=n; while (temp/10>0) { temp=temp/10; i++; } if (i==1) return true; long long rj, ri; rj=n%10; ri=n/(long long)pow(10,i-1); while (rj==ri) { n=(n-ri*(long long)pow(10,i-1))/10; if (n<10) break; i=i-2; rj=n%10; ri=n/(long long)pow(10,i-1); } if (n<10) return true; else return false; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue