Problem | lis_easy |
---|---|
User | Xiangyu |
Submission Time | 2025-06-07 16:01:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:7:17: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
7 | for (int *x:arr) cin >> x;
| ^~~
| |
| int
lis_easy.cpp:7:26: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int*’)
7 | for (int *x:arr) cin >> x;
| ~~~ ^~ ~
| | |
| | int*
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from lis_easy.cpp:1:
/usr/include/c++/9/istream:168:7: note: can