Borderou de evaluare (job #1644689)

Utilizator NikkaFericean Razvan Mihai Nikka Data 10 martie 2016 08:21:25
Problema Expresie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:15:9: error: ‘s’ was not declared in this scope s+=v[i]; ^ user.cpp:17:5: error: ‘s’ was not declared in this scope aux=s; ^ user.cpp:20:41: warning: capture of variable ‘v’ with non-automatic storage duration [enabled by default] aux=s-v[i]-v[i+1]-v[i+2]+v[i]*[v+1]*v[2]; ^ user.cpp:3:6: note: ‘int* v’ declared here int *v; ^ user.cpp:20:42: error: expected ‘,’ before ‘+’ token aux=s-v[i]-v[i+1]-v[i+2]+v[i]*[v+1]*v[2]; ^ user.cpp:20:42: error: expected identifier before ‘+’ token user.cpp: In lambda function: user.cpp:20:45: error: expected ‘{’ before ‘*’ token aux=s-v[i]-v[i+1]-v[i+2]+v[i]*[v+1]*v[2]; ^ user.cpp: In function ‘int main()’: user.cpp:20:39: error: no match for ‘operator*’ (operand types are ‘int’ and ‘main()::__lambda0’) aux=s-v[i]-v[i+1]-v[i+2]+v[i]*[v+1]*v[2]; ^ user.cpp:28:41: warning: capture of variable ‘v’ with non-automatic storage duration [enabled by default] aux=s-v[i]-v[i+1]-v[j]+v[j-1]+v[i]*[v+1]+v[j]*v[j+1]; ^ user.cpp:3:6: note: ‘int* v’ declared here int *v; ^ user.cpp:28:42: error: expected ‘,’ before ‘+’ token aux=s-v[i]-v[i+1]-v[j]+v[j-1]+v[i]*[v+1]+v[j]*v[j+1]; ^ user.cpp:28:42: error: expected identifier before ‘+’ token user.cpp: In lambda function: user.cpp:28:45: error: expected ‘{’ before ‘+’ token aux=s-v[i]-v[i+1]-v[j]+v[j-1]+v[i]*[v+1]+v[j]*v[j+1]; ^ user.cpp: In function ‘int main()’: user.cpp:28:39: error: no match for ‘operator*’ (operand types are ‘int’ and ‘main()::__lambda1’) aux=s-v[i]-v[i+1]-v[j]+v[j-1]+v[i]*[v+1]+v[j]*v[j+1]; ^ user.cpp:9:19: warning: unused variable ‘S’ [-Wunused-variable] long long aux,S=0,Max=0; ^

Ceva nu functioneaza?