| Problem | trainorbus |
|---|---|
| User | NikhilSiddharth67 |
| Submission Time | 2026-02-25 17:58:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:12:19: error: invalid types ‘long long int[long long int]’ for array subscript
12 | cin >> a[i];
| ^
trainorbus.cpp:15:19: error: invalid types ‘long long int[long long int]’ for array subscript
15 | cin >> b[i];
| ^
trainorbus.cpp:22:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
22 | cout>>a;
| ~~~~^~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
trainorbus.cpp:22:6: note: candidate: ‘operator>>(int, long long int)’ <built-in>
22 | cout>>a;
| ~~~~^~~
trainorbus.cpp:22:6: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr