# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
4214 |
2013-09-05T10:12:00 Z |
dbfud |
간지(干支) (KOI13_kanji) |
C++ |
|
0 ms |
0 KB |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
int year = 0 ;
cin >> year ;
int sibgan[10] = { 6,7,8,9,0,1,2,3,4,5} ;
char sibez[12] = {'I','J','K','L','A','B','C','D','E','F','G','H'};
int sibganIndex = year % 10 ;
int sibezIndex = year % 12 ;
cout << sibez[sibezIndex] << sibgan[sibganIndex] ;
system("PAUSE");
return 0;
}
Compilation message
kanji.cpp: In function 'int main()':
kanji.cpp:22:19: error: 'system' was not declared in this scope