Problem | lunchbox |
---|---|
User | Tristyy |
Submission Time | 2024-06-19 14:29:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:12: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((const char*)"wow"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
13 | while ( s = "wow"){
| ~~^~~~~~~
| |
| std::__cxx11::basic_string<char>
lunchbox.cpp:16:9: error: expected ‘;’ before ‘}’ token
16 | break
| ^
| ;
17 | } else {
| ~
lunchbox.cpp:20:25: error: expected ‘;’ before ‘}’ token
20 | cout << (pq.size() - n)
| ^
| ;
21 | }
| ~
lunchbox.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
lunchbox.cpp:13:20: note: to match this ‘{’
13 | while ( s = "wow"){
| ^
lunchbox.cpp:21:1: error: expected ‘}’ at end