Submission #3473

# Submission time Handle Problem Language Result Execution time Memory
3473 2013-08-31T06:02:01 Z cki86201 Ancient symbol (kriii1_A) C++
Compilation error
0 ms 0 KB
#include<stdio.h>
int main(){
  int x;
  scanf("%d",&x);
printf("%d",111x*x+11x+1);
return 0;
}

Compilation message

A.cpp:5:13: error: invalid suffix "x" on integer constant
A.cpp:5:20: error: invalid suffix "x" on integer constant
A.cpp: In function 'int main()':
A.cpp:4:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]