Problem | ntuc |
---|---|
User | Tweok |
Submission Time | 2025-06-19 11:00:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ntuc.cpp: In function ‘int main()’:
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 known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from ntuc.cpp:1:
/usr/