Borderou de evaluare (job #3349602)

Utilizator mrvalentynTime Limit Exceeded mrvalentyn Data 1 aprilie 2026 00:53:32
Problema Strabunica 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:60:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 60 | for(int i=1;i<=n;++i) | ^~~ main.cpp:62:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 62 | ans=max(ans,tmp); | ^~~ main.cpp:61:12: warning: unused variable 'tmp' [-Wunused-variable] 61 | ll tmp=dr[i]-st[i]-1*a[i]; | ^~~ main.cpp:62:21: error: 'tmp' was not declared in this scope; did you mean 'tm'? 62 | ans=max(ans,tmp); | ^~~ main.cpp:59:25: note: in definition of macro 'max' 59 | #define max(a,b) (a>b?a:b) | ^ Non zero exit status: 1

Ceva nu functioneaza?