Problem xmas
User Yizhou
Submission Time 2024-10-11 13:43:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp:7:22: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
7 | pair<int, int>arr[2e4+5];
| ~~~^~
xmas.cpp:7:22: error: could not convert ‘(2.0e+4 + (double)5)’ from ‘double’ to ‘long unsigned int’
xmas.cpp:7:22: error: size of array ‘arr’ has non-integral type ‘double’
xmas.cpp: In function ‘int main()’:
xmas.cpp:12:5: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
12 | cin<<n;
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
xmas.cpp:12:5: note: candidate: ‘operator<<(int, int)’ <built-in>
12 | cin<<n;
| ~~~^~~
xmas.cpp:12:5: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,