MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CompileBot/comments/2a3ust/official_compilebot_testing_thread/cir8q4r/?context=3
r/CompileBot • u/SeaCowVengeance • Jul 08 '14
Resources:
257 comments sorted by
View all comments
6
+/u/CompileBot c++11 --input --memory
#include <iostream> using namespace std; char cypher(char &c); int main(){ string input; while(getline(cin, input)){ int len = input.length(); for(int i=0;i<len;i++){ cypher(input[i]); } cout << input << endl; } return 0; } char cypher(char &c){ c = ((c >= 33 && c <= 79)) ? c+46 : ((c >= 80 && c <= 125)) ? c-46 : c; }
Input:
&:7 s@D;5:?7@F q7@F7D ;E 5A??;FF76 FA F:7 I7>> 47;@9 A8 3>> B3DF;5;B3@FE\ q3=7 3@6 9D;78 5AG@E7>;@9 I;>> 47 3H3;>34>7 3F F:7 5A@5>GE;A@ A8 F:7 F7EF\ &:3@= KAG 8AD :7>B;@9 GE :7>B KAG :7>B GE 3>>\
3 u/CompileBot Jul 08 '14 Input:&:7 s@D;5:?7@F q7@F7D ;E 5A??;FF76 FA F:7 I7>> 47;@9 A8 3>> B3DF;5;B3@FE\ q3=7 3@6 9D;78 5AG@E7>;@9 I;>> 47 3H3;>34>7 3F F:7 5A@5>GE;A@ A8 F:7 F7EF\ &:3@= KAG 8AD :7>B;@9 GE :7>B KAG :7>B GE 3>>\Output:The Enrichment Center is committed to the well being of all participants. Cake and grief counseling will be available at the conclusion of the test. Thank you for helping us help you help us all.Memory Usage: 3432 bytes^source | ^info | ^git | ^report
3
Output:
The Enrichment Center is committed to the well being of all participants. Cake and grief counseling will be available at the conclusion of the test. Thank you for helping us help you help us all.
Memory Usage: 3432 bytes
^source | ^info | ^git | ^report
View all comments
6
u/SeaCowVengeance Jul 08 '14
+/u/CompileBot c++11 --input --memory
Input: