Submission #9380

#TimeUsernameProblemLanguageResultExecution timeMemory
9380shashackVeni, vidi, vici (kriii2_V)C++98
Compilation error
0 ms0 KiB
#include <iostream> #include <string> using namespace std; int main(){ //freopen("input.txt", "r", stdin); string input; int n; scanf("%d", &n);getchar(); while( !cin.eof()){ cin >> input; int len=input.size()-1; for(int i=0; i<len; i+=2){ int a=input[i]-97; int b=input[i+1]-97; int c=(a+b+26-n)%26; printf("%c",c+'a'); } printf(" "); } printf("\n"); return 0; }

Compilation message (stderr)

V.cpp: In function 'int main()':
V.cpp:8:23: error: 'scanf' was not declared in this scope
V.cpp:8:33: error: 'getchar' was not declared in this scope
V.cpp:18:21: error: 'printf' was not declared in this scope
V.cpp:20:13: error: 'printf' was not declared in this scope
V.cpp:22:13: error: 'printf' was not declared in this scope