Borderou de evaluare (job #3218658)

Utilizator contandrei3Andrei Mihai contandrei3 Data 27 martie 2024 17:50:06
Problema Sum2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: expected ',' or ';' before 'int' 6 | int n,l1,u1,x,v[100005],p,u,i,d[100005],maxi; | ^~~ main.cpp: In function 'int main()': main.cpp:9:10: error: 'n' was not declared in this scope; did you mean 'yn'? 9 | fin>>n>>l1>>u1; | ^ | yn main.cpp:9:13: error: 'l1' was not declared in this scope; did you mean 'y1'? 9 | fin>>n>>l1>>u1; | ^~ | y1 main.cpp:9:17: error: 'u1' was not declared in this scope; did you mean 'y1'? 9 | fin>>n>>l1>>u1; | ^~ | y1 main.cpp:10:10: error: 'i' was not declared in this scope 10 | for (i=1;i<=n;i++) | ^ main.cpp:12:18: error: 'x' was not declared in this scope 12 | fin>>x; | ^ main.cpp:13:13: error: 'v' was not declared in this scope 13 | v[i]=v[i-1]+x; | ^ main.cpp:15:5: error: 'd' was not declared in this scope 15 | d[1]=1; | ^ main.cpp:16:5: error: 'p' was not declared in this scope 16 | p=u=1; | ^ main.cpp:16:7: error: 'u' was not declared in this scope 16 | p=u=1; | ^ main.cpp:17:10: error: 'i' was not declared in this scope 17 | for (i=1;i<=n;i++) | ^ main.cpp:19:24: error: 'v' was not declared in this scope 19 | while (p<=u && v[i-1]<=v[d[u]]) u--; | ^ main.cpp:23:9: error: 'maxi' was not declared in this scope 23 | maxi=max(maxi,v[i]-v[d[p]]); | ^~~~ main.cpp:23:23: error: 'v' was not declared in this scope 23 | maxi=max(maxi,v[i]-v[d[p]]); | ^ main.cpp:25:11: error: 'maxi' was not declared in this scope 25 | fout<<maxi; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?