Borderou de evaluare (job #2665462)

Utilizator ion232323Varga Ionut Antonio ion232323 Data 30 octombrie 2020 20:37:31
Problema Alibaba 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:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=0;i<n;i++) ^~~ main.cpp:12:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' while(in>0 && nr[in-1]<nr[in]&& c<k) ^~~~~ main.cpp:12:19: error: 'nr' was not declared in this scope while(in>0 && nr[in-1]<nr[in]&& c<k) ^~ main.cpp:16:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=0;i<n-k;i++) ^~~ main.cpp:18:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' return 0; ^~~~~~ main.cpp:7:7: warning: unused variable 'j' [-Wunused-variable] int i,j,n,k,c=0,in=0; ^ Non zero exit status: 1

Ceva nu functioneaza?