Submission #201110
Source Code Expand
#include <bits/stdc++.h> using namespace std; static inline int in(){ int x; scanf("%d", &x); return x; } template<typename T> void show(T& a, char del='\n', char last='\n'){ rep(i, a.size() - 1) cout << a[i] << del; cout << a[a.size() - 1] << last; } int main() { printf("%d %d\n", in(), in()); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | orisano |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 327 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘void show(T&, char, char)’: ./Main.cpp:6:74: error: ‘i’ was not declared in this scope ./Main.cpp:6:91: error: expected ‘;’ before ‘cout’ ./Main.cpp: In function ‘int in()’: ./Main.cpp:5:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]