online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <bits/stdc++.h> using namespace std; int count(int S[], int m, int n) { if (n == 0) return 1; if (n < 0) return 0; if (m <= 0 && n >= 1) return 0; return count(S, m - 1, n)+count(S, m, n - S[m - 1]); } int main() { int i, j; int arr[] = { 1, 2, 3 }; int m = sizeof(arr) / sizeof(arr[0]); cout<<count(arr, m, 2); return 0; }

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