| Problem | mountainjourney |
|---|---|
| User | wey7777777 |
| Submission Time | 2026-06-24 10:25:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
mountainjourney.cpp: In function ‘int main()’:
mountainjourney.cpp:9:3: error: expected initializer before ‘cin’
9 | cin >> N >> M;
| ^~~
mountainjourney.cpp:12:22: error: ‘M’ was not declared in this scope
12 | vector<long long> B(M);
| ^
mountainjourney.cpp:27:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
27 | cout>> A[i] <<" ";
mountainjourney.cpp:27:7: note: candidate: ‘operator>>(int, __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int})’ <built-in>
mountainjourney.cpp:27:7: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from