Problem | fizzbuzz |
---|---|
User | ansel |
Submission Time | 2024-05-17 14:56:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
fizzbuzz.cpp:4:12: error: expected ‘}’ before ‘;’ token
4 | cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false);
| ^
fizzbuzz.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
fizzbuzz.cpp:4:9: error: invalid conversion from ‘std::basic_ostream<char>*’ to ‘int’ [-fpermissive]
4 | cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false);
| ~~~~~~~^~~
| |
| std::basic_ostream<char>*
fizzbuzz.cpp:4:13: error: ‘cout’ does not name a type
4 | cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false);
| ^~~~
fizzbuzz.cpp:4:50: error: expected constructor, destructor, or type conversion before ‘(’ token
4 | cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false);
|