Submission #3648

#TimeUsernameProblemLanguageResultExecution timeMemory
3648MiNuGreat Pow! (kriii1_G)C++98
Compilation error
0 ms0 KiB
#include <iostream> using namespace std; int solve(int a, int k) { if ( k == 0 ) return a; if ( a % 2 == 0 ) return 1; return a; } int main() { int a, k; scanf("%d %d", &a, &k); printf("%d\n", solve(a, k)); return 0; }

Compilation message (stderr)

G.cpp: In function 'int main()':
G.cpp:14:26: error: 'scanf' was not declared in this scope
G.cpp:16:31: error: 'printf' was not declared in this scope