Borderou de evaluare (job #3326085)
| Utilizator | Data | 27 noiembrie 2025 12:38:44 | |
|---|---|---|---|
| Problema | Subsir crescator maximal | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | for(i=1;i<=n;i++)
| ^~~
main.cpp:11:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
11 | lung[n]=1;poz[n]=-1;
| ^~~~
main.cpp:29:23: error: 'INT_MIN' was not declared in this scope
29 | int maxim=INT_MIN,pozitie;
| ^~~~~~~
main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <iostream>
+++ |+#include <climits>
2 |
main.cpp:33:31: error: 'pozitie' was not declared in this scope
33 | maxim=lung[i];pozitie=i;
| ^~~~~~~
main.cpp:37:19: error: 'pozitie' was not declared in this scope
37 | while(pozitie!=-1)
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
