fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main;() {
  4. int a,s=0;
  5. for(a=1,a<20,a*=a)
  6. s=s+a;
  7. cout<<s<<endl;
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
 int main;() {
     ^~~~
prog.cpp:3:11: error: expected unqualified-id before ‘)’ token
 int main;() {
           ^
stdout
Standard output is empty