这道题全WA,大佬能帮忙看看吗
#include<bits/stdc++.h>
using namespace std;
void js(int a,int b,int num)
{
num=0;
for(int i=1;i<=a;i++)
{
num++;
}
cout<<num+a-10;
}
int main()
{
int a[2],z=0;
bool s=0;
int num=0;
int i=0;
while(s==0)
{
cin>>a[i];
i++;
z++;
if(z==2)
s++;
}
js(a[1],a[2],num);
return 0;
}