Submission #201161
Source Code Expand
#include<iostream> using namespace; int main(){ int n,m; char s[15]; cin >> n >> m; int t = n; n = m; m = t; cout << n << " " << m <<endl;; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | startcpp |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 175 Byte |
Status | CE |
Compile Error
./Main.cpp:2:16: error: expected identifier before ‘;’ token ./Main.cpp: In function ‘int main()’: ./Main.cpp:8:2: error: ‘cin’ was not declared in this scope ./Main.cpp:8:2: note: suggested alternative: /usr/include/c++/4.6/iostream:61:18: note: ‘std::cin’ ./Main.cpp:12:2: error: ‘cout’ was not declared in this scope ./Main.cpp:12:2: note: suggested alternative: /usr/include/c++/4.6/iostream:62:18: note: ‘std::cout’ ./Main.cpp:12:26: error: ‘endl’ was not declared in this scope ./Main.cpp:12:26: note: suggested alternative: /usr/include/c++/4.6/ostream:543:5: note: ‘std::endl’