Borderou de evaluare (job #3316267)
| Utilizator | Data | 18 octombrie 2025 08:43:37 | |
|---|---|---|---|
| Problema | Xspe | 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:10:5: error: expected initializer before 'for'
10 | for (int i = 1; i <= N; i++)
| ^~~
main.cpp:10:21: error: 'i' was not declared in this scope
10 | for (int i = 1; i <= N; i++)
| ^
main.cpp:16:27: error: 'stiva' was not declared in this scope
16 | while (k > 0 && x[stiva[k]] >= x[i])
| ^~~~~
main.cpp:19:32: error: 'stiva' was not declared in this scope
19 | suma[i] = x[i] + x[stiva[k]];
| ^~~~~
main.cpp:22:9: error: 'stiva' was not declared in this scope
22 | stiva[++k] = i;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
