Borderou de evaluare (job #2206230)

Utilizator DanutAldeaDanut Aldea DanutAldea Data 21 mai 2018 21:21:09
Problema Drept 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:9: error: expected unqualified-id before ‘,’ token int n,m,,a,b,p1,p2,u1,u2,s[2000110],f[2000110],d1[2000110],d2[2000110],t,l,x; ^ user.cpp:8:11: error: conflicting declaration ‘long long int s’ long long s; ^ user.cpp:7:26: note: previous declaration as ‘int s [2000110]’ int n,m,,a,b,p1,p2,u1,u2,s[2000110],f[2000110],d1[2000110],d2[2000110],t,l,x; ^ user.cpp: In function ‘int main()’: user.cpp:14:12: error: expected unqualified-id before ‘=’ token for(int=2;i<=n;i++){ ^ user.cpp:14:12: error: expected ‘;’ before ‘=’ token user.cpp:14:12: error: expected primary-expression before ‘=’ token user.cpp:14:15: error: ‘i’ was not declared in this scope for(int=2;i<=n;i++){ ^ user.cpp:14:19: error: expected ‘)’ before ‘;’ token for(int=2;i<=n;i++){ ^ user.cpp:14:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(int=2;i<=n;i++){ ^~~ user.cpp:14:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(int=2;i<=n;i++){ ^ user.cpp:14:20: error: ‘i’ was not declared in this scope user.cpp:38:21: error: ‘sum’ was not declared in this scope sum+=f[d2[p2]]-s[d1[p1]]+1-b+1; ^~~ user.cpp:48:11: error: ‘sum’ was not declared in this scope fout<<sum; ^~~

Ceva nu functioneaza?