Borderou de evaluare (job #1625396)
Utilizator | Data | 2 martie 2016 18:40:36 | |
---|---|---|---|
Problema | Carry | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:23: error: two or more data types in declaration of ‘lg_put’
int lg_put(int a,int b)
^
user.cpp: In function ‘int main()’:
user.cpp:20:8: error: ‘n’ was not declared in this scope
f>>n>>k>>(w+1);
^
user.cpp:20:11: error: ‘k’ was not declared in this scope
f>>n>>k>>(w+1);
^
user.cpp:20:15: error: ‘w’ was not declared in this scope
f>>n>>k>>(w+1);
^
user.cpp:21:5: error: ‘l’ was not declared in this scope
l[n+1]=1;
^
user.cpp:22:9: error: ‘i’ was not declared in this scope
for(i=n;i;--i) l[i]=(l[i+1]*(9-(w[i]-'0')+1))%Xp;
^
user.cpp:23:5: error: ‘pos’ was not declared in this scope
pos[1]=w[1]-'0';
^
user.cpp:24:9: error: ‘i’ was not declared in this scope
for(i=2;i<=n;++i)
^
user.cpp:28:13: error: ‘start’ was not declared in this scope
start=i;
^
user.cpp:30:13: error: ‘finish’ was not declared in this scope
finish=i;
^
user.cpp:33:21: error: ‘j’ was not declared in this scope
for(j=finish-start+2;j<=k;++j)
^
user.cpp:35:21: error: ‘act’ was not declared in this scope
act[j]=(act[j]+P[j-(finish-start+1)]*lg_put(10,finish-start)*(w[start-1]-'0'+1))%Xp;
^
user.cpp:35:36: error: ‘P’ was not declared in this scope
act[j]=(act[j]+P[j-(finish-start+1)]*lg_put(10,finish-start)*(w[start-1]-'0'+1))%Xp;
^
user.cpp:35:80: error: ‘lg_put’ was not declared in this scope
act[j]=(act[j]+P[j-(finish-start+1)]*lg_put(10,finish-start)*(w[start-1]-'0'+1))%Xp;
^
user.cpp:38:25: error: ‘sol’ was not declared in this scope
sol=(sol+act[k]*l[finish+1])%Xp;
^
user.cpp:45:21: error: ‘j’ was not declared in this scope
for(j=1;j<k;++j) P[j]=P[j]*%Xp;
^
user.cpp:45:34: error: ‘P’ was not declared in this scope
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !