Problem | ntuc |
---|---|
User | Tweok |
Submission Time | 2025-06-19 10:59:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ntuc.cpp: In function ‘int main()’:
ntuc.cpp:27:9: error: expected ‘,’ or ‘;’ before ‘if’
27 | if (K=-1) {
| ^~
ntuc.cpp:30:11: error: ‘else’ without a previous ‘if’
30 | } else {
| ^~~~
ntuc.cpp:33:22: error: expected ‘;’ before ‘}’ token
33 | break
| ^
| ;
34 | } else {
| ~
ntuc.cpp:40:10: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
40 | cout >> total_sum;
| ~~~~ ^~ ~~~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
ntuc.cpp:40:10: note: candidate: ‘operator>>(int, int)’ <built-in>
40 | cout >> total_sum;
| ~~~~~^~~~~~~~~~~~
ntuc.cpp:40:10: note: no kno