Problem | prefixsums |
---|---|
User | PyAce |
Submission Time | 2025-07-03 15:35:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:7:13: error: ‘sync_with_Stdio’ is not a member of ‘std::ios_base’
7 | ios_base::sync_with_Stdio(0);
| ^~~~~~~~~~~~~~~
prefixsums.cpp:26:17: error: expected ‘;’ before ‘numc’
26 | total += cunum
| ^
| ;
27 | numc += 1
| ~~~~
prefixsums.cpp:29:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
29 | cout >> total >> "\n";
| ~~~~ ^~ ~~~~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
prefixsums.cpp:29:7: note: candidate: ‘operator>>(int, long long int)’ <built-in>
29 | cout >> total >> "\n";
| ~~~~~^~~~~~~~
prefixsums.cpp:29:7: note: no known conversion for argument 1 from ‘std: