Borderou de evaluare (job #3326075)

Utilizator ioanablidaruBlidaru Ioana ioanablidaru Data 27 noiembrie 2025 12:32:57
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(int i=1;i<=n;i++) | ^~~ main.cpp:12:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 12 | poz[n]=-1; lung[n]=1; | ^~~ main.cpp:24:13: error: 'INT_MIN' was not declared in this scope 24 | int max=INT_MIN,poz2; | ^~~~~~~ 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:28:5: error: 'poz2' was not declared in this scope; did you mean 'poz'? 28 | poz2=i;} | ^~~~ | poz main.cpp:30:11: error: 'poz2' was not declared in this scope; did you mean 'poz'? 30 | while(poz2!=-1) | ^~~~ | poz main.cpp:7:41: warning: unused variable 'scm' [-Wunused-variable] 7 | int a[100],n,i,j,poz[100],lung[100],scm[100]; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?