Borderou de evaluare (job #3365407)
| Utilizator | Data | 21 septembrie 2026 09:04:06 | |
|---|---|---|---|
| Problema | Permsplit | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: 'st' does not name a type
9 | st[1000000];
| ^~
main.cpp: In function 'int main()':
main.cpp:16:14: error: 'st' was not declared in this scope; did you mean 'std'?
16 | cin>>st[i]
| ^~
| std
main.cpp:18:10: error: 'nr' was not declared in this scope; did you mean 'n'?
18 | while(nr<=1){
| ^~
| n
main.cpp:21:24: error: 'minim' was not declared in this scope; did you mean 'cminim'?
21 | cminim=minim;
| ^~~~~
| cminim
main.cpp:22:24: error: 'maxim' was not declared in this scope; did you mean 'cmaxim'?
22 | cmaxim=maxim;
| ^~~~~
| cmaxim
main.cpp:23:20: error: 'st' was not declared in this scope; did you mean 'std'?
23 | if(st[left]==minim){
| ^~
| std
main.cpp:27:20: error: 'st' was not declared in this scope; did you mean 'std'?
27 | if(st[left]==maxim){
| ^~
| std
main.cpp:30:17: error: 'cs' was not declared in this scope
30 | cs=(cmaxim+cminim)*(cmaxim-cminim+1)/2;
| ^~
main.cpp:31:17: error: 's' was not declared in this scope
31 | s=(maxim+minim)*(maxim-minim+1)/2;
| ^
main.cpp:33:34: error: 'st' was not declared in this scope; did you mean 'std'?
33 | if(s-cs==st[l]){
| ^~
| std
main.cpp:33:37: error: 'l' was not declared in this scope
33 | if(s-cs==st[l]){
| ^
main.cpp:35:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
35 | left+=1;
| ~~~~^~~
main.cpp:35:37: error: assignment of read-only location 'std::left'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
