online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; #define ll unsigned long long int bool isSorted(ll arr[], ll n) { if (n == 0 || n == 1) { return true; } if (arr[0] < arr[1] and isSorted(arr + 1, n - 1)) { return true; } return false; } int main() { ll n; cin >> n; ll arr[n]; for (ll i = 0; i < n; i++) { cin >> arr[i]; } if (isSorted(arr, n)) { cout << "true" << endl; } else { cout << "false" << endl; } }

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