fork download
  1. double GetNumbers()[]
  2. {
  3. double number[] = { 643.18, 9.64, 48.05, 14.26, 62.55 };
  4.  
  5. return number;
  6. }
  7.  
  8. int main(){}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1: error: ‘GetNumbers’ declared as function returning an array
prog.cpp: In function ‘int GetNumbers()’:
prog.cpp:5: error: invalid conversion from ‘double*’ to ‘int’
prog.cpp:3: warning: address of local variable ‘number’ returned
stdout
Standard output is empty