Problem | prefixsums |
---|---|
User | Blender |
Submission Time | 2024-03-01 15:31:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:34:6: error: redeclaration of ‘long long int i’
34 | ll i, r;
| ^
prefixsums.cpp:32:13: note: ‘int i’ previously declared here
32 | for ( auto i = 0; i < q; i++ )
| ^
prefixsums.cpp:35:7: error: no match for ‘operator>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
35 | cin > i >> r;
| ~~~ ^ ~~~~~~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
prefixsums.cpp:35:7: note: candidate: ‘operator>(int, long long int)’ <built-in>
35 | cin > i >> r;
| ~~~~^~~~~~~~
prefixsums.cpp:35:7: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,
from /usr/include