Main.cc: In function ‘int main()’:
Main.cc:8:12: error: expected ‘;’ before ‘:’ token
cin>>a[i]:
^
Main.cc:10:4: error: ‘else’ without a previous ‘if’
else if(a[i]<=35) n2++;
^~~~
Main.cc:14:27: warning: conversion lacks type at end of format [-Wformat=]
printf("%.2",n1*1.0/n*100);
^
Main.cc:14:27: warning: too many arguments for format [-Wformat-extra-args]
Main.cc:15:27: warning: conversion lacks type at end of format [-Wformat=]
printf("%.2",n2*1.0/n*100);
^
Main.cc:15:27: warning: too many arguments for format [-Wformat-extra-args]
Main.cc:16:27: warning: conversion lacks type at end of format [-Wformat=]
printf("%.2",n3*1.0/n*100);
^
Main.cc:16:27: warning: too many arguments for format [-Wformat-extra-args]
Main.cc:17:27: warning: conversion lacks type at end of format [-Wformat=]
printf("%.2",n4*1.0/n*100);
^
Main.cc:17:27: warning: too many arguments for format [-Wformat-extra-args]