| Problem | trainorbus |
|---|---|
| User | NikhilSiddharth67 |
| Submission Time | 2026-02-25 17:51:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:10:24: error: ‘j’ was not declared in this scope
10 | for(int b = 1; j <= w; j++) {
| ^
trainorbus.cpp:10:29: error: ‘w’ was not declared in this scope
10 | for(int b = 1; j <= w; j++) {
| ^
trainorbus.cpp:13:9: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
13 | cout>>a;
| ~~~~^~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
trainorbus.cpp:13:9: note: candidate: ‘operator>>(int, long long int)’ <built-in>
13 | cout>>a;
| ~~~~^~~
trainorbus.cpp:13:9: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from