fork(1) download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4. long long n;
  5. cin>>n;
  6. cout<<(n*n)-n;
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, or enum expected
#include<bits/stdc++.h>
        ^
Main.java:3: error: class, interface, or enum expected
int main(){
^
Main.java:5: error: class, interface, or enum expected
	cin>>n;
	^
Main.java:6: error: class, interface, or enum expected
	cout<<(n*n)-n;
	^
Main.java:7: error: class, interface, or enum expected
}
^
6 errors
stdout
Standard output is empty