Problem tourist_noi
User hitarthdangra
Submission Time 2026-02-20 05:18:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:20:23: error: expected ‘;’ before ‘}’ token
20 | val += min(a[i]*x,y)
| ^
| ;
21 | }
| ~
tourist_noi.cpp:23:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
23 | cout >> val;
| ~~~~ ^~ ~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
tourist_noi.cpp:23:7: note: candidate: ‘operator>>(int, int)’ <built-in>
23 | cout >> val;
| ~~~~~^~~~~~
tourist_noi.cpp:23:7: 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 tourist_noi.cpp:1:
/usr/include/c++/9/cstdd