Problem addition
User jasmine
Submission Time 2023-11-02 10:46:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:4:9: error: ‘c’ was not declared in this scope
4 | cin >> c;
| ^
addition.cpp:5:15: error: ‘strtok’ was not declared in this scope; did you mean ‘strtoq’?
5 | int number = strtok(c, " ");
| ^~~~~~
| strtoq
addition.cpp:6:3: error: ‘a’ was not declared in this scope
6 | a = number;
| ^
addition.cpp:7:3: error: ‘b’ was not declared in this scope
7 | b = number;
| ^
addition.cpp:8:3: error: ‘total’ was not declared in this scope
8 | total = a + b;
| ^~~~~