You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
fnsquare_sum(vec:Vec<i32>) -> i32{let total = 0for n in vec {
total += n.pow(2)}}
i get this error
errorerror: expected one of `.`, `;`, `?`, or an operator, found `for`: expected one of `.`, `;`, `?`, or an operator, found `for`
--> src/lib.rs:3:3
--> src/lib.rs:3:3|
2|
| let total = 02
| | let total = 0-
expected one of `.`, `;`, `?`, or an operator here
| 3 -| for n in vec {
expected one of `.`, `;`, `?`, or an operator here
| 3 ^^^ | unexpected token for n in vec {
| ^^^ unexpected token
error: aborting due to previous error
warning: build failed, waiting for other jobs to finish...
error: aborting due to previous error
error: Could not compile `qualified-rust`.
NOTE: Line numbers in error messages can be incorrect due to concatenation.
in the first part of this error message there is a lot of duplicate stuff .. this can't be right
The text was updated successfully, but these errors were encountered:
On this kata https://www.codewars.com/kata/square-n-sum/train/rust
with this code
i get this error
in the first part of this error message there is a lot of duplicate stuff .. this can't be right
The text was updated successfully, but these errors were encountered: