fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t,n;
  6. cin>>t;
  7. while(t--)
  8. {
  9. cin>>n;
  10. cout<<(n/2)(n+n*2)<<endl;
  11. }
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
5
3
compilation info
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;
                    ^
stdout
Standard output is empty