Problem | lunchbox |
---|---|
User | SheepHeads |
Submission Time | 2023-11-13 09:55:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:2: error: ‘signed’ specified with ‘double’
9 | signed double lunchbox, schools;
| ^~~~~~
lunchbox.cpp:9:2: error: ‘signed’ specified with ‘double’
lunchbox.cpp:12:2: error: ‘signed’ specified with ‘double’
12 | signed double arr[schools];
| ^~~~~~
lunchbox.cpp:12:20: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
12 | signed double arr[schools];
| ^~~~~~~
lunchbox.cpp:12:20: error: could not convert ‘schools’ from ‘double’ to ‘long unsigned int’
lunchbox.cpp:12:20: error: size of array ‘arr’ has non-integral type ‘double’
lunchbox.cpp:13:6: error: ‘signed’ specified with ‘double’
13 | for(signed double i=0; i<schools; i++){
| ^~~~~~
lunchbox.cpp:14:3: error: ‘signed’ specified with ‘double’
14 | signed double x;
| ^~~~~~
lunchbox.cpp:16:8: error: inval