Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

javascript style arrays in c++

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.43 sec, absolute service time: 0,5 sec 
latest |  history
Error(s):
source_file.cpp: In member function ‘T SYArray<T>::reduce(std::function<T(T, int)>)’:
source_file.cpp:280:13: error: ‘total’ was not declared in this scope
             total=f(total,arr[i]);
             ^
source_file.cpp:283:16: error: ‘total’ was not declared in this scope
         return total;
                ^

        

    
                
λ
.NET NoSQL database for rapid development