Submission #114824

# Submission time Handle Problem Language Result Execution time Memory
114824 2019-06-03T09:45:27 Z errorgorn main 함수 (BSC_0_0) C++14
Compilation error
0 ms 0 KB
#include <cstdio>
using namespace std;
int main{return 0;}

Compilation message

main.cpp:3:5: error: cannot declare '::main' to be a global variable
 int main{return 0;}
     ^~~~
main.cpp:3:10: error: expected primary-expression before 'return'
 int main{return 0;}
          ^~~~~~
main.cpp:3:10: error: expected '}' before 'return'
main.cpp:3:19: error: expected declaration before '}' token
 int main{return 0;}
                   ^