0_0_30078894_18792.cpp: In function 'int main()':
0_0_30078894_18792.cpp:17:5: error: 'cin' was not declared in this scope
cin>>t;
^
0_0_30078894_18792.cpp:23:13: error: 'i' was not declared in this scope
for(i=0;i<n;i++)
^
0_0_30078894_18792.cpp:40:16: error: expected primary-expression before 'int'
if(int i==0)
^
0_0_30078894_18792.cpp:40:16: error: expected ')' before 'int'
0_0_30078894_18792.cpp:42:21: error: expected primary-expression before 'int'
else if(int i==n-1)
^
0_0_30078894_18792.cpp:42:21: error: expected ')' before 'int'
0_0_30078894_18792.cpp:47:9: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_30078894_18792.cpp:47:20: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
|