0_0_13469044_26952.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13469044_26952.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13469044_26952.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13469044_26952.cpp: In function 'void init()':
0_0_13469044_26952.cpp:11:2: error: expected ';' before 'scanf'
scanf("%d", &num[i]);
^
0_0_13469044_26952.cpp:11:21: error: 'scanf' was not declared in this scope
scanf("%d", &num[i]);
^
0_0_13469044_26952.cpp:11:22: error: expected ')' before ';' token
scanf("%d", &num[i]);
^
0_0_13469044_26952.cpp: In function 'long long int solve(int, int, int*)':
0_0_13469044_26952.cpp:16:5: error: expected ')' before 'int'
int mid = (l + r) / 2;
^
0_0_13469044_26952.cpp:17:30: error: 'mid' was not declared in this scope
long long ans = solve(l, mid, num) + solve(mid + 1, r, num);
^
0_0_13469044_26952.cpp:21:2: error: expected ')' before 'if'
if (num[ll]
^
0_0_13469044_26952.cpp:22:6: error: expected ')' before 'save'
save[sn++] = num[ll++];
^
0_0_13469044_26952.cpp: At global scope:
0_0_13469044_26952.cpp:28:5: error: expected unqualified-id before 'while'
while (ll
^
0_0_13469044_26952.cpp:30:21: error: 'i' does not name a type
for (int i = l; i
^
0_0_13469044_26952.cpp:32:5: error: expected unqualified-id before 'return'
return ans;
^
0_0_13469044_26952.cpp:33:1: error: expected declaration before '}' token
}
^
|