Problem | sort |
---|---|
User | Kenniene |
Submission Time | 2024-03-28 09:16:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp:4:1: error: ‘::main’ must return ‘int’
4 | double main() {
| ^~~~~~
sort.cpp: In function ‘int main()’:
sort.cpp:8:14: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
8 | double a[n];
| ^
sort.cpp:8:14: error: could not convert ‘n’ from ‘double’ to ‘long unsigned int’
sort.cpp:8:14: error: size of array ‘a’ has non-integral type ‘double’
sort.cpp:10:19: error: invalid types ‘double [1][double]’ for array subscript
10 | cin >> a[i];
| ^
sort.cpp:12:15: error: invalid operands of types ‘double [1]’ and ‘double’ to binary ‘operator+’
12 | sort(a, a + n);
| ~ ^ ~
| | |
| | double
| double [1]
sort.cpp:14:20: error: invalid types ‘double [1][double]’ for array subscript
14 | cout << a[i] << " ";