0_0_35692890_30986.cpp:3:1: error: 'll' does not name a type
ll sum[50],a[50],ans;
^
0_0_35692890_30986.cpp: In function 'void div(int, int, int)':
0_0_35692890_30986.cpp:5:13: error: 'ans' was not declared in this scope
if(dif==0&&ans<su) {
^
0_0_35692890_30986.cpp:10:14: error: 'sum' was not declared in this scope
if(abs(dif)>sum[p]) return;
^
0_0_35692890_30986.cpp:11:5: error: 'sum' was not declared in this scope
if(sum[p]+su<ans) return;
^
0_0_35692890_30986.cpp:11:15: error: 'ans' was not declared in this scope
if(sum[p]+su<ans) return;
^
0_0_35692890_30986.cpp:12:14: error: 'a' was not declared in this scope
div(p-1,dif+a[p],su+a[p]);
^
0_0_35692890_30986.cpp: In function 'int main()':
0_0_35692890_30986.cpp:20:18: error: 'a' was not declared in this scope
scanf("%lld",&a[i]);
^
0_0_35692890_30986.cpp:21:13: error: 'sum' was not declared in this scope
if(i==0) sum[i]=a[i];
^
0_0_35692890_30986.cpp:22:9: error: 'sum' was not declared in this scope
else sum[i]=sum[i-1]+a[i];
^
0_0_35692890_30986.cpp:24:3: error: 'ans' was not declared in this scope
ans=0;
^
0_0_35692890_30986.cpp:26:19: error: 'sum' was not declared in this scope
printf("%lld\n",sum[n-1]-ans);
^
|