Problem | homeworkextension |
---|---|
User | eulerleonhardfan |
Submission Time | 2023-01-20 17:15:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
homeworkextension.cpp:4:9: error: cannot declare ‘::main’ to be a global variable
4 | int32_t main {
| ^~~~
homeworkextension.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
homeworkextension.cpp:5:3: note: in expansion of macro ‘int’
5 | int n, k;
| ^~~
homeworkextension.cpp:3:13: error: expected ‘}’ before ‘long’
3 | #define int long long
| ^~~~
homeworkextension.cpp:5:3: note: in expansion of macro ‘int’
5 | int n, k;
| ^~~
homeworkextension.cpp:4:14: note: to match this ‘{’
4 | int32_t main {
| ^
homeworkextension.cpp:6:3: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> n >> k;
| ^~~
| sin
homeworkextension.cpp:7:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int a[n], b, sum = 0;<