Borderou de evaluare (job #2485876)

Utilizator bubukiki10Cristian Cutitei bubukiki10 Data 2 noiembrie 2019 10:24:24
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 'void rezolvare()': main.cpp:24:19: error: 'n' was not declared in this scope for(int i=1;i<n;i++) ^ main.cpp:33:35: error: 'cautbin' was not declared in this scope poz=cautbin(a[i],0,m-1); ^ main.cpp: In function 'void afisare()': main.cpp:47:23: warning: left operand of comma operator has no effect [-Wunused-value] for(int i=pozmax;i>=0,lgmax>=0;i--) ~^~~ main.cpp:51:13: error: 's' was not declared in this scope s.push(a[i]); ^ main.cpp:53:12: error: 's' was not declared in this scope while(!s.empty()) ^ main.cpp: In function 'int main()': main.cpp:64:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=0;i<n;i++) ^~~ main.cpp:67:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' rezolvare(); ^~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?