Problem warp2
User dacashew
Submission Time 2024-11-27 15:02:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

warp2.cpp: In function ‘void st2(long long int, long long int, long long int)’:
warp2.cpp:147:6: error: conflicting declaration ‘long long int a’
147 | int a,b;
| ^
warp2.cpp:133:6: note: previous declaration as ‘long long int a [n]’
133 | int a[n];
| ^
warp2.cpp:148:5: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int [n]’)
148 | cin>>a>>b;
| ~~~^~~
| | |
| | long long int [n]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from warp2.cpp:59:
/usr/include/c++/9/istream:168:7: note: candidate: ‘std::basic_istream<_CharT, _