Hello ,
I’m trying to insert values in Array and attach it to vertex set. But I get no viable alternative at input error.
Example:
ArrayAccum<SumAccum<double>> @@squares[5][10];
ArrayAccum<SumAccum<double>> @@norm[5];
SumAccum<double> @@value;
Start={Person.*}
CV = SELECT p FROM Start:p
FOREACH i IN RANGE [0,5] DO
@@value=0;
FOREACH j in RANGE [0,9] DO
@@value=(i*i) + (j*j);
p.@@squares[i][j]=(i*j);
END;
p.@norm[i]=sqrt(@@value);
END;
I tried using ACCUM and POST-ACCUM but I got an error NO VIABLE ALTERNATIVE AT INPUT error.