Problem helloworld
User jatrophalouvre
Submission Time 2025-01-26 16:43:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:41:23: error: invalid type argument of unary ‘*’ (have ‘long long int’)
41 | if ((*j)==n+1) break;
| ^
helloworld.cpp:42:24: error: invalid type argument of unary ‘*’ (have ‘long long int’)
42 | int l=*j; j++; int r=*j;
| ^
helloworld.cpp:42:39: error: invalid type argument of unary ‘*’ (have ‘long long int’)
42 | int l=*j; j++; int r=*j;
| ^
helloworld.cpp:47:20: error: ‘j’ was not declared in this scope
47 | z-=(R-*j-1)*(R-*j)/2;
| ^