Compile Error

foo.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include (iostream)
          ^
foo.cc:29:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:57:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:85:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:113:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:141:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:169:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:197:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:225:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:253:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:281:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:309:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc:337:13: error: #include expects "FILENAME" or <FILENAME>
    #include (iostream)
             ^
foo.cc: In function 'int main()':
foo.cc:7:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:7:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:11:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:11:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:14:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:27:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:31:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:35:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:35:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:39:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:39:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:42:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:55:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:59:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:63:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:63:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:67:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:67:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:70:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:83:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:87:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:91:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:91:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:95:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:95:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:98:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:111:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:115:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:119:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:119:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:123:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:123:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:126:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:139:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:143:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:147:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:147:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:151:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:151:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:154:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:167:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:171:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:175:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:175:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:179:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:179:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:182:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:195:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:199:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:203:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:203:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:207:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:207:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:210:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:223:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:227:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:231:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:231:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:235:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:235:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:238:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:251:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:255:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:259:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:259:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:263:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:263:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:266:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:279:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:283:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:287:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:287:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:291:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:291:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:294:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:307:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:311:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:315:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:315:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:319:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:319:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:322:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:335:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
foo.cc: In function 'int main()':
foo.cc:339:5: error: redefinition of 'int main()'
 int main() 
     ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
 int main() 
     ^~~~
foo.cc:343:4: error: 'cin' was not declared in this scope
    cin>>n; 
    ^~~
foo.cc:343:4: note: suggested alternative: 'main'
    cin>>n; 
    ^~~
    main
foo.cc:347:19: error: 'floor' was not declared in this scope
          fz=fz*10+floor(n*10);
                   ^~~~~
foo.cc:347:19: note: suggested alternative: 'float'
          fz=fz*10+floor(n*10);
                   ^~~~~
                   float
foo.cc:350:13: warning: statement has no effect [-Wunused-value]
          n+m-fz;
          ~~~^~~
foo.cc:363:4: error: 'cout' was not declared in this scope
    cout<<fz<<"/"<<fm;
    ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1133 中位数
语言
C++
递交时间
2021-08-21 21:14:06
评测时间
2021-08-21 21:14:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes