Problem trainorbus
User qiutian
Submission Time 2026-02-11 11:09:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:21:5: error: expected ‘,’ or ‘;’ before ‘for’
21 | for (int i = 0; i<numNodes;i++){
| ^~~
trainorbus.cpp:21:21: error: ‘i’ was not declared in this scope
21 | for (int i = 0; i<numNodes;i++){
| ^
trainorbus.cpp:26:26: error: expected ‘;’ before ‘trainNodes’
26 | getline(cin,temp)
| ^
| ;
27 | trainNodes.push_back(stoi(temp));
| ~~~~~~~~~~