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