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

Variable Length Arrays in C++14?

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,52 sec, absolute service time: 1,55 sec 
fork mode |  history  | discussion
Error(s):
source_file.cpp(6): error C2131: expression did not evaluate to a constant
source_file.cpp(6): note: failure was caused by non-constant arguments or reference to a non-constant symbol
source_file.cpp(6): note: see usage of 'n'
source_file.cpp(8): error C3863: array type 'int [n]' is not assignable

        

    
                
λ
.NET NoSQL database for rapid development