Problem | flamethrower |
---|---|
User | sudobee |
Submission Time | 2023-09-06 21:03:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp:2:5: error: cannot declare ‘::main’ to be a global variable
2 | int main{
| ^~~~
flamethrower.cpp:3:2: error: expected primary-expression before ‘int’
3 | int n; scanf("%d",&n);
| ^~~
flamethrower.cpp:3:2: error: expected ‘}’ before ‘int’
flamethrower.cpp:2:9: note: to match this ‘{’
2 | int main{
| ^
flamethrower.cpp:3:14: error: expected constructor, destructor, or type conversion before ‘(’ token
3 | int n; scanf("%d",&n);
| ^
flamethrower.cpp:4:10: error: ‘n’ was not declared in this scope
4 | int arr[n]; for(int i=0;i<n;++i) scanf("%d",&arr[i]);
| ^
flamethrower.cpp:4:14: error: expected unqualified-id before ‘for’
4 | int arr[n]; for(int i=0;i<n;++i) scanf("%d",&arr[i]);
| ^~~
flamethrower.cpp:4:26: error: ‘i’ does not name a type
4 | int arr[n]; for(int i=0;i<n;++i) scanf("%d",&a