ballparade.cpp: In function ‘int main()’:
ballparade.cpp:5:6: error: expected unqualified-id before ‘throw’
int throw[50000];
^
ballparade.cpp:13:34: error: expected primary-expression before ‘throw’
for(i=1; i<=n; i++)scanf("%d", &throw[i]);
^
ballparade.cpp: In lambda function:
ballparade.cpp:19:14: error: expected ‘{’ before ‘==’ token
if(throw[i]==1)
^
ballparade.cpp: In function ‘int main()’:
ballparade.cpp:19:14: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
ballparade.cpp:19:14: error: no match for ‘operator==’ (operand types are ‘main()::<lambda()>’ and ‘int’)
ballparade.cpp: In lambda function:
ballparade.cpp:33:19: error: expected ‘{’ before ‘==’ token
else if(throw[i]==2)
^
ballparade.cpp: In function ‘int main()’:
ballparade.cpp:33:19: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
ballparade.cpp:33:19: error: no match for ‘operator==’ (operand types are ‘main()::<lambda()>’ and ‘int’)
ballparade.cpp:8:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^