Problem | xmas |
---|---|
User | Yizhou |
Submission Time | 2024-10-11 13:43:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
xmas.cpp:7:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin<<n;
| ^~~
| sin
xmas.cpp:8:22: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
8 | pair<int, int>arr[2e4+5];
| ~~~^~
xmas.cpp:8:22: error: could not convert ‘(2.0e+4 + (double)5)’ from ‘double’ to ‘long unsigned int’
xmas.cpp:8:22: error: size of array ‘arr’ has non-integral type ‘double’
xmas.cpp: In function ‘int main()’:
xmas.cpp:17:11: error: request for member ‘begin’ in ‘arr’, which is of non-class type ‘std::pair<int, int> [1]’
17 | sort(arr.begin(),arr.end(),cmp);
| ^~~~~
xmas.cpp:17:23: error: request for member ‘end’ in ‘arr’, which is of non-class type ‘std::pair<int, int> [1]’
17 | sort(arr.begin(),arr.end(),cmp);
| ^~~