| Task: | Bittijono |
| Sender: | removed859 |
| Submission time: | 2017-10-15 22:21:33 +0300 |
| Language: | C++ |
| Status: | SKIPPED |
Compiler report
input/code.cpp: In function 'std::string b(int)': input/code.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Code
#include <iostream>
#include <string>
std::string b(int x) {
switch (x) {
case 1:
return "1";
case 2:
return "11";
case 3:
return "10";
case 4:
return "1111";
case 5:
return "100";
case 6:
return "101";
case 7:
return "1000";
case 8:
return "1100";
case 9:
return "1001";
case 10:
return "1111111111";
}
}
int main() {
int x;
std::cin >> x;
std::cout << b(x) << '\n';
return 0;
}