Submission #3485

# Submission time Handle Problem Language Result Execution time Memory
3485 2013-08-31T06:08:27 Z wookayin Great Pow! (kriii1_G) C++
Compilation error
0 ms 0 KB
int main()
{
    int a,k;
        scanf("%d%d",&a,&k);
        printf("%d\n", (k==0||a%2) ? a : 1);
        return 0;
}

Compilation message

G.cpp: In function 'int main()':
G.cpp:4:27: error: 'scanf' was not declared in this scope
G.cpp:5:43: error: 'printf' was not declared in this scope