0_0_36855039_21044.cpp: In function 'int main()': 0_0_36855039_21044.cpp:7:14: error: expected ')' before ';' token scanf("%d",&n;); ^ 0_0_36855039_21044.cpp:7:15: error: expected primary-expression before ')' token scanf("%d",&n;); ^