Problem potatosalad
User ILoveZubatAndMunna
Submission Time 2024-04-13 22:50:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:5:13: error: expected unqualified-id before ‘long’
5 | #define int long long
| ^~~~
potatosalad.cpp:8:12: note: in expansion of macro ‘int’
8 | int N, int D; cin >> N, D;
| ^~~
potatosalad.cpp:8:29: error: ‘D’ was not declared in this scope
8 | int N, int D; cin >> N, D;
| ^
potatosalad.cpp:12:1: error: a function-definition is not allowed here before ‘{’ token
12 | {
| ^
potatosalad.cpp:19:13: error: ‘findSum’ was not declared in this scope
19 | cout << findSum(D);
| ^~~~~~~