using namespace std #include<iostream> int main(void){ cin>>a; cin>>b; cout>>(a+b); } /* In file included from /usr/include/c++/4.9/iostream:38:0, from Main.cc:2: /usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:186:1: error: expected ';' before 'namespace' namespace std ^ Main.cc: In function 'int main()': Main.cc:4:8: error: 'a' was not declared in this scope cin>>a; ^ Main.cc:5:10: error: 'b' was not declared in this scope cin>>b; ^ */ |
Double click to view unformatted code.