Problem | addition |
---|---|
User | yongteckrice |
Submission Time | 2023-01-28 16:46:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
addition.cpp:4:1: error: expected primary-expression before ‘int’
4 | int a;
| ^~~
addition.cpp:4:1: error: expected ‘}’ before ‘int’
addition.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
addition.cpp:7:6: error: ‘cin’ in namespace ‘std’ does not name a type
7 | std::cin >> a;
| ^~~
In file included from addition.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
addition.cpp:8:6: error: ‘cin’ in namespace ‘std’ does not name a type
8 | std::cin >> b;
| ^~~
In file included from addition.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
|