Submission #186827
Source Code Expand
#include <algorithm> #include <bitset> #include <cctype> #include <complex> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;} template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();} template<class T> inline T sqr(T x) {return x*x;} typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<string> vs; typedef pair<int, int> pii; typedef long long ll; #define all(a) (a).begin(),(a).end() #define rall(a) (a).rbegin(), (a).rend() #define pb push_back #define mp make_pair #define each(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i) #define exist(s,e) ((s).find(e)!=(s).end()) #define range(i,a,b) for(int i=(a);i<(b);++i) #define rep(i,n) range(i,0,n) #define clr(a,b) memset((a), (b) ,sizeof(a)) #define dump(x) cerr << #x << " = " << (x) << endl; #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; const double eps = 1e-10; const double pi = acos(-1.0); const ll INF =1LL << 62; const int inf =1 << 29; ll array[100010]; int main(void){ ll a,b,c,m,n; string s,t; cin >> a; ll ans=(a+1)%12+1; cout << ans << endl; return 0; }#include <algorithm> #include <bitset> #include <cctype> #include <complex> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;} template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();} template<class T> inline T sqr(T x) {return x*x;} typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<string> vs; typedef pair<int, int> pii; typedef long long ll; #define all(a) (a).begin(),(a).end() #define rall(a) (a).rbegin(), (a).rend() #define pb push_back #define mp make_pair #define each(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i) #define exist(s,e) ((s).find(e)!=(s).end()) #define range(i,a,b) for(int i=(a);i<(b);++i) #define rep(i,n) range(i,0,n) #define clr(a,b) memset((a), (b) ,sizeof(a)) #define dump(x) cerr << #x << " = " << (x) << endl; #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; const double eps = 1e-10; const double pi = acos(-1.0); const ll INF =1LL << 62; const int inf =1 << 29; ll array[100010]; int main(void){ ll a,b,c,m,n; string s,t; cin >> a; ll ans=(a+1)%12+1; cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 来月は何月? |
User | Hec |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 3210 Byte |
Status | CE |
Compile Error
./Main.cpp:65:1: error: stray ‘#’ in program ./Main.cpp:65:3: error: ‘include’ does not name a type ./Main.cpp: In function ‘int toInt(std::string)’: ./Main.cpp:91:12: error: redefinition of ‘int toInt(std::string)’ ./Main.cpp:27:12: error: ‘int toInt(std::string)’ previously defined here ./Main.cpp: At global scope: ./Main.cpp:92:33: error: redefinition of ‘template<class T> std::string toString(T)’ ./Main.cpp:28:33: error: ‘template<class T> std::string toString(T)’ previously declared here ./Main.cpp:93:28: error: redefinition of ‘template<class T> T sqr(T)’ ./Main.cpp:29:28: error: ‘template<class T> T sqr(T)’ previously declared here ./Main.cpp:113:14: error: redefinition of ‘const double eps’ ./Main.cpp:49:14: error: ‘const double eps’ previously defined here ./Main.cpp:114:14: error: redefinition of ‘const double pi’ ./Main.cpp:50:14: error: ‘const double pi’ previously defined here ./Main.cpp:115:10: error: redefinition of ‘const ll INF’ ./Main.c...