#include<iostream> using namespcae std; int main(){ int a,b; cin>>a,b; count>>(a+b); return 0; } /* Main.cc:2:7: error: expected nested-name-specifier before 'namespcae' using namespcae std; ^ Main.cc: In function 'int main()': Main.cc:5:3: error: 'cin' was not declared in this scope cin>>a,b; ^ Main.cc:5:3: note: suggested alternative: In file included from Main.cc:1:0: /usr/include/c++/4.9/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ Main.cc:6:3: error: 'count' was not declared in this scope count>>(a+b); ^ */ |
Double click to view unformatted code.