Problem hallucinations
User pseudocoder101
Submission Time 2025-06-18 10:01:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hallucinations.cpp: In function ‘int main()’:
hallucinations.cpp:26:50: error: expected ‘;’ before ‘}’ token
26 | cout<<(sumlist[num1]-sumlist[num2])<<endl
| ^
| ;
27 | }
| ~
hallucinations.cpp:28:15: error: redeclaration of ‘long long int Q’
28 | long long Q;
| ^
hallucinations.cpp:21:15: note: ‘long long int Q’ previously declared here
21 | long long Q;
| ^
hallucinations.cpp:33:50: error: expected ‘;’ before ‘}’ token
33 | cout<<(sumlist[num1]-sumlist[num2])<<endl
| ^
| ;
34 | }
| ~