Problem | seats2 |
---|---|
User | paaaaaaaaaaaaaaaaaaa |
Submission Time | 2024-11-08 09:24:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
seats2.cpp: In function ‘int32_t main()’:
seats2.cpp:10:10: error: conflicting declaration ‘char a [n]’
10 | char a[n];
| ^
seats2.cpp:8:9: note: previous declaration as ‘long long int a’
8 | int a = 0;
| ^
seats2.cpp:11:12: error: invalid conversion from ‘long long int’ to ‘char*’ [-fpermissive]
11 | strcpy(a, s.c_str());
| ^
| |
| long long int
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from seats2.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:1: note: initializing argument 1 of ‘char* strcpy(char*, con