0_0_18333098_14262.cpp: In function 'int main()':
0_0_18333098_14262.cpp:4:22: error: expected unqualified-id before 'new'
int n, old, sum, new;
^
0_0_18333098_14262.cpp:10:29: error: expected type-specifier before ')' token
scanf("%d", &new);
^
0_0_18333098_14262.cpp:11:21: error: expected type-specifier before '>' token
if (new > old)
^
0_0_18333098_14262.cpp:12:29: error: expected type-specifier before '-' token
sum += (new - old) * 6;
^
0_0_18333098_14262.cpp:14:34: error: expected type-specifier before ')' token
sum += (old - new) * 4;
^
0_0_18333098_14262.cpp:15:22: error: expected type-specifier before ';' token
old = new;
^
|