Problem | brick |
---|---|
User | Runjia |
Submission Time | 2025-03-08 10:55:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:13:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’})
13 | cout>>A.size();
| ~~~~^~~~~~~~~~
| | |
| | std::vector<int>::size_type {aka long unsigned int}
| std::ostream {aka std::basic_ostream<char>}
brick.cpp:13:6: note: candidate: ‘operator>>(int, std::vector<int>::size_type {aka long unsigned int})’ <built-in>
13 | cout>>A.size();
| ~~~~^~~~~~~~~~
brick.cpp:13:6: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from brick.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _IntegerType>