| Problem | trainorbus |
|---|---|
| User | wahjsodhowasd |
| Submission Time | 2026-02-18 14:57:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:10:8: error: expected primary-expression before ‘int’
10 | cin >> int x;
| ^~~
trainorbus.cpp:11:6: error: ‘x’ was not declared in this scope
11 | a[i]=x;}
| ^
trainorbus.cpp:14:8: error: expected primary-expression before ‘int’
14 | cin >> int x;
| ^~~
trainorbus.cpp:15:9: error: ‘x’ was not declared in this scope
15 | if(a[i]>x){
| ^
trainorbus.cpp:17:15: error: expected ‘;’ before ‘}’ token
17 | else{Ans+=a[i]}
| ^
| ;