Borderou de evaluare (job #3326059)
| Utilizator | Data | 27 noiembrie 2025 12:17:07 | |
|---|---|---|---|
| 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:7:18: error: 'scm' was not declared in this scope
7 | ifstream fin(scm.in);
| ^~~
main.cpp:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
11 | for(i=1;i<=n;i++)
| ^~~
main.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | lung[n]=1;poz[n]=-1;
| ^~~~
main.cpp:28:19: error: 'INT_MIN' was not declared in this scope
28 | int maxim=INT_MIN,pozitie;
| ^~~~~~~
main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 | using namespace std;
main.cpp:32:27: error: 'pozitie' was not declared in this scope
32 | maxim=lung[i];pozitie=1;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
