Problem | flamethrower |
---|---|
User | jaydengzh |
Submission Time | 2025-02-15 10:46:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
flamethrower.cpp:5:1: error: expected primary-expression before ‘int’
5 | int n, k;
| ^~~
flamethrower.cpp:5:1: error: expected ‘}’ before ‘int’
flamethrower.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
flamethrower.cpp:6:1: error: ‘cin’ does not name a type
6 | cin >> n >> k;
| ^~~
flamethrower.cpp:7:9: error: ‘n’ was not declared in this scope
7 | int arr[n];
| ^
flamethrower.cpp:8:1: error: expected unqualified-id before ‘for’
8 | for (int i=0; i<n; i++){
| ^~~
flamethrower.cpp:8:15: error: ‘i’ does not name a type
8 | for (int i=0; i<n; i++){
| ^
flamethrower.cpp:8:20: error: ‘i’ does not name a type
8 | for (int i=0; i<n; i++){
| ^
flamethrower.cpp:11:1: