Problem | addition |
---|---|
User | shannen |
Submission Time | 2024-06-24 20:46:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:3:8: error: found ‘:’ in nested-name-specifier, expected ‘::’
3 | int a,b: cin >> a >> b;
| ^
| ::
addition.cpp:3:7: error: ‘b’ has not been declared
3 | int a,b: cin >> a >> b;
| ^
addition.cpp:3:14: error: qualified-id in declaration before ‘>>’ token
3 | int a,b: cin >> a >> b;
| ^~
addition.cpp:4:5: error: redeclaration of ‘int a’
4 | int a=1;
| ^
addition.cpp:3:5: note: ‘int a’ previously declared here
3 | int a,b: cin >> a >> b;
| ^
addition.cpp: At global scope:
addition.cpp:8:1: error: expected unqualified-id before ‘return’
8 | return 0;
| ^~~~~~
addition.cpp:9:1: error: expected declaration before ‘}’ token
9 | }
| ^