| Problem | trainorbus |
|---|---|
| User | qiutian |
| Submission Time | 2026-02-11 11:08:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:15:13: error: ‘nullprt’ was not declared in this scope; did you mean ‘nullptr_t’?
15 | cin.tie(nullprt);
| ^~~~~~~
| nullptr_t
trainorbus.cpp:16:5: error: ‘sync_with_stdio’ was not declared in this scope
16 | sync_with_stdio(false);
| ^~~~~~~~~~~~~~~
trainorbus.cpp:22:5: error: expected ‘,’ or ‘;’ before ‘for’
22 | for (int i = 0; i<numNodes;i++){
| ^~~
trainorbus.cpp:22:21: error: ‘i’ was not declared in this scope
22 | for (int i = 0; i<numNodes;i++){
| ^
trainorbus.cpp:27:26: error: expected ‘;’ before ‘trainNodes’
27 | getline(cin,temp)
| ^
| ;
28 | trainNodes.push_back(stoi(temp));
| ~~~~~~~~~~