Borderou de evaluare (job #2984098)

Utilizator DevilonnetPescar Denis Devilonnet Data 23 februarie 2023 16:28:51
Problema Războiul lui Vlăduț Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: expected ',' or ';' before 'int' 5 | int max_dif=-1000; | ^~~ main.cpp: In function 'int main()': main.cpp:37:36: error: 'max_dif' was not declared in this scope 37 | if(dif>max_dif) | ^~~~~~~ main.cpp:23:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 23 | for(int i=1; i<=n ;++i ) | ^~~ main.cpp:40:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 40 | cout<<i<<":"<<max_dif; | ^~~~ main.cpp:40:27: error: 'max_dif' was not declared in this scope 40 | cout<<i<<":"<<max_dif; | ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?