Problem | basketball_cpic |
---|---|
User | aiden |
Submission Time | 2025-07-19 14:28:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
basketball_cpic.cpp:4:7: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
4 | int a[1e6];
| ^~~
basketball_cpic.cpp:4:7: error: could not convert ‘1.0e+6’ from ‘double’ to ‘long unsigned int’
basketball_cpic.cpp:4:7: error: size of array ‘a’ has non-integral type ‘double’
basketball_cpic.cpp: In function ‘int main()’:
basketball_cpic.cpp:7:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
7 | cin << n;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
basketball_cpic.cpp:7:6: note: candidate: ‘operator<<(int, int)’ <built-in>
7 | cin << n;
| ~~~~^~~~
basketball_cpic.cpp:7:6: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included fro