Problem | sort |
---|---|
User | Kenniene |
Submission Time | 2024-03-28 09:13:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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);e
| ~ ^ ~
| | |
| | double
| double [1]
sort.cpp:12:20: error: ‘e’ was not declared in this scope
12 | sort(a, a + n);e
| ^
sort.cpp:13:24: error: ‘i’ was not declared in this scope
13 | for (double i = 0; i < n; i++){<