Problem | firstabc |
---|---|
User | Tez |
Submission Time | 2023-12-06 09:39:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
firstabc.cpp: In function ‘int main()’:
firstabc.cpp:8:12: error: could not convert ‘s’ from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘long unsigned int’
8 | char arr[s];
| ^
firstabc.cpp:8:12: error: size of array ‘arr’ has non-integral type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
firstabc.cpp:10:9: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(65)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
10 | if (s = 'A'){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
firstabc.cpp:13:14: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(66)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
13 | else if (s = 'B'){
| ~~^~~~~
| |
| std::__cxx11::basic_string<char>
firstabc.cpp:16:14: error: cou