Problem | conlang |
---|---|
User | Reality1001 |
Submission Time | 2024-02-24 11:56:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
conlang.cpp: In function ‘int main()’:
conlang.cpp:16:31: error: lvalue required as left operand of assignment
16 | if (sizeof arr[i] = sizeof(s);){
| ^
conlang.cpp:16:33: error: expected primary-expression before ‘)’ token
16 | if (sizeof arr[i] = sizeof(s);){
| ^
conlang.cpp:17:9: error: ‘g’ was not declared in this scope
17 | for (g=0; g<= sizeof(s); g++)
| ^
conlang.cpp:4:13: error: expected primary-expression before ‘=’ token
4 | #define con = 'b' || 'c' || 'd' || 'f' || 'g' || 'h' || 'j' || 'k' || 'l' || 'm' || 'n' || 'p' || 'q' || 'r' || 's' || 't' || 'v' || 'w' || 'x' || 'z';
| ^
conlang.cpp:18:15: note: in expansion of macro ‘con’
18 | if (s[i] = con && arr[i] = con || s[i] = vow && arr[i] = vow){
| ^~~
conlang.cpp:18:25: error: expected ‘)’ before ‘[’ token
18 | if (s