foo.cpp:2:7: error: expected nested-name-specifier before 'namesapce'
using namesapce std;
^
foo.cpp:2:7: error: 'namesapce' has not been declared
foo.cpp:2:17: error: expected ';' before 'std'
using namesapce std;
^
foo.cpp:2:17: error: 'std' does not name a type
foo.cpp: In function 'int main()':
foo.cpp:7:5: error: 'cin' was not declared in this scope
cin >> n;
^
foo.cpp:7:5: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
foo.cpp:13:9: error: 'cout' was not declared in this scope
cout << a;
^
foo.cpp:13:9: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
foo.cpp:23:9: error: 'cout' was not declared in this scope
cout << total %7654321;
^
foo.cpp:23:9: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^