#include <iostream> using namespace std; int main() { int t,n; cin>>t; while(t--) { cin>>n; cout<<(n/2)(n+n*2)<<endl; } return 0; }
2 5 3
prog.cpp: In function ‘int main()’: prog.cpp:10:20: error: expression cannot be used as a function cout<<(n/2)(n+n*2)<<endl; ^
Standard output is empty