Problem | lunchbox |
---|---|
User | geometric |
Submission Time | 2023-04-16 09:33:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:11:9: error: macro names must be identifiers
11 | #define : {
| ^
lunchbox.cpp: In function ‘def main()’:
lunchbox.cpp:15:2: error: only constructors take member initializers
15 | int n, m ;
| ^~~
lunchbox.cpp:15:2: error: expected identifier before ‘int’
lunchbox.cpp:15:2: error: expected ‘{’ before ‘int’
lunchbox.cpp: At global scope:
lunchbox.cpp:12:23: error: expected constructor, destructor, or type conversion before ‘(’ token
12 | #define input(n) scanf("%d",&(n))
| ^
lunchbox.cpp:16:5: note: in expansion of macro ‘input’
16 | input(n) ;
| ^~~~~
lunchbox.cpp:17:12: error: array bound is not an integer constant before ‘]’ token
17 | int a[m] ;
| ^
lunchbox.cpp:19:5: error: expected unqualified-id before ‘for’
19 | for (int i = 0; i < m; i++)