Problem | bracketex |
---|---|
User | AwkUngenially |
Submission Time | 2025-04-10 14:47:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:9:2: error: expected ‘,’ or ‘;’ before ‘for’
9 | for (int i = 0; i < strlen(brackets); i++) {
| ^~~
bracketex.cpp:9:18: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < strlen(brackets); i++) {
| ^
bracketex.cpp:9:29: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
9 | for (int i = 0; i < strlen(brackets); i++) {
| ^~~~~~~~
| |
| char
In file included from /usr/include/c++/9/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:48,
from bracketex.cpp:1:
/usr/include/string.h:385:35: note: initializing argument 1 of ‘size_t strlen(const char*)’
385 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~