Problem | fuelstation |
---|---|
User | cobnet |
Submission Time | 2023-02-01 17:23:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fuelstation.cpp: In function ‘int main()’:
fuelstation.cpp:8:18: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
8 | double fuelstat[numstations];
| ^~~~~~~~~~~
fuelstation.cpp:8:18: error: could not convert ‘numstations’ from ‘double’ to ‘long unsigned int’
fuelstation.cpp:8:18: error: size of array ‘fuelstat’ has non-integral type ‘double’
fuelstation.cpp:9:18: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
9 | double fuelimit[numstations];
| ^~~~~~~~~~~
fuelstation.cpp:9:18: error: could not convert ‘numstations’ from ‘double’ to ‘long unsigned int’
fuelstation.cpp:9:18: error: size of array ‘fuelimit’ has non-integral type ‘double’
fuelstation.cpp:10:20: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
10 | double minfuelreq[numstations];
|