0_0_29928604_2276.cpp:2:51: error: array bound is not an integer constant before ']' token
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:59: error: array bound is not an integer constant before ']' token
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:67: error: array bound is not an integer constant before ']' token
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp: In function 'int main()':
0_0_29928604_2276.cpp:2:165: error: 'l' was not declared in this scope
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:205: error: 's' was not declared in this scope
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:245: error: 'v' was not declared in this scope
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:271: error: 's' was not declared in this scope
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:278: error: 'v' was not declared in this scope
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
0_0_29928604_2276.cpp:2:336: error: 'l' was not declared in this scope
using namespace std;int maxn = 1e6 + 10;int l[maxn],s[maxn],v[maxn];int main(){ios::sync_with_stdio(false);int n;while(cin >> n){for(int i = 0; i <= n; i++) cin >> l[i];for(int i = 0; i <= n; i++) cin >> s[i];for(int i = 0; i <= n; i++) cin >> v[i];double ans = (double)s[0] / v[0];long long sum = 0;for(int i = 1; i <= n; i++){sum += l[i];ans = max(ans, ((double)sum + s[i]) / v[i]);}printf("%.10f\n", ans);}return 0;}
^
|