Problem sumint
User CSiyu03
Submission Time 2024-11-22 21:22:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:17:13: error: ‘str’ was not declared in this scope; did you mean ‘std’?
17 | vector <str> tokens;
| ^~~
| std
sumint.cpp:17:16: error: template argument 1 is invalid
17 | vector <str> tokens;
| ^
sumint.cpp:17:16: error: template argument 2 is invalid
sumint.cpp:28:26: error: request for member ‘push_back’ in ‘tokens’, which is of non-class type ‘int’
28 | n = (long)tokens.push_back(temptoken);
| ^~~~~~~~~