Problem sum
User Zachareeeee
Submission Time 2024-12-02 10:23:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum.cpp: In function ‘int main()’:
sum.cpp:6:22: error: expected ‘)’ before ‘;’ token
6 | for(long i=0;i<N;i++;){
| ~ ^
| )
sum.cpp:6:23: error: expected primary-expression before ‘)’ token
6 | for(long i=0;i<N;i++;){
| ^
sum.cpp:11:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long int’)
11 | cout >> xsum >> ysum;
| ~~~~ ^~ ~~~~
| | |
| | long int
| std::ostream {aka std::basic_ostream<char>}
sum.cpp:11:7: note: candidate: ‘operator>>(int, long int)’ <built-in>
11 | cout >> xsum >> ysum;
| ~~~~~^~~~~~~
sum.cpp:11:7: 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-lin