Borderou de evaluare (job #2783211)
Utilizator | Data | 13 octombrie 2021 23:21:51 | |
---|---|---|---|
Problema | Cuburi2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:9: error: 'i' was not declared in this scope
15 | for(i=1;i<=n;i++)
| ^
main.cpp:20:9: error: 'i' was not declared in this scope
20 | for(i=n;i>=1;i--)
| ^
main.cpp:22:23: error: 'a' was not declared in this scope
22 | ss[i]=ss[i+1]+a[i];
| ^
main.cpp:24:9: error: 'i' was not declared in this scope
24 | for(i=1;i<=n;i++)
| ^
main.cpp:26:9: error: 'sp1' was not declared in this scope
26 | sp1[i]=sp1[i-1]+sd[i-1];
| ^~~
main.cpp:28:9: error: 'i' was not declared in this scope
28 | for(i==n;i>=1;i--)
| ^
main.cpp:30:9: error: 'sp2' was not declared in this scope
30 | sp2[i]=sp2[i+1]+ss[i+1];
| ^~~
main.cpp:32:9: error: 'i' was not declared in this scope
32 | for(i=1;i<=m;i++)
| ^
main.cpp:49:14: error: 's1' was not declared in this scope; did you mean 'st'?
49 | cost=s1[p]-s1[x]-sd[x-1]*(p-x)+s2[p]-s2[y]-sp[y+1]*(y-p);
| ^~
| st
main.cpp:49:40: error: 's2' was not declared in this scope; did you mean 'st'?
49 | cost=s1[p]-s1[x]-sd[x-1]*(p-x)+s2[p]-s2[y]-sp[y+1]*(y-p);
| ^~
| st
main.cpp:49:52: error: 'sp' was not declared in this scope; did you mean 'st'?
49 | cost=s1[p]-s1[x]-sd[x-1]*(p-x)+s2[p]-s2[y]-sp[y+1]*(y-p);
| ^~
| st
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !