Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102684 陈昊然 短信计费 C++ Compile Error 0 MS 0 KB 355 2024-12-22 14:11:16

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; double a(int y){ double m=0; if(zs%70!=0){ m=y/70*0.1+0.1; }else{ m=y/70*0.1; } return m; } int main() { int n; cin>>n; int a[10000]; for(int i=0;i<=n-1;i++){ ain>>e[i]; } double sum; for(int i=0;i<=n-1;i++){ sum=sum+a(e[i]); } printf("%.1lf",sum); return 0; }


Run Info:

Main.cc: In function 'double a(int)':
Main.cc:5:5: error: 'zs' was not declared in this scope
  if(zs%70!=0){
     ^
Main.cc: In function 'int main()':
Main.cc:17:3: error: 'ain' was not declared in this scope
   ain>>e[i];
   ^
Main.cc:17:8: error: 'e' was not declared in this scope
   ain>>e[i];
        ^
Main.cc:21:13: error: 'e' was not declared in this scope
   sum=sum+a(e[i]);
             ^
Main.cc:21:17: error: 'a' cannot be used as a function
   sum=sum+a(e[i]);
                 ^