Problem | 7up |
---|---|
User | ilovepythonandhatecplusplus |
Submission Time | 2024-04-20 09:22:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
7up.cpp: In function ‘int main()’:
7up.cpp:10:22: error: request for member ‘size’ in ‘i’, which is of non-class type ‘int’
10 | long long rows[i.size()];
| ^~~~
7up.cpp:11:29: error: request for member ‘size’ in ‘i’, which is of non-class type ‘int’
11 | char* rows = new char[i.size() + 1];
| ^~~~
7up.cpp:12:20: error: request for member ‘c_i’ in ‘i’, which is of non-class type ‘int’
12 | strcpy(rows, i.c_i());
| ^~~
7up.cpp:13:27: error: request for member ‘size’ in ‘i’, which is of non-class type ‘int’
13 | for (int e = 0; e < i.size; e++)
| ^~~~