foo.cc:6:12: error: 'std::string y1' redeclared as different kind of entity
6 | string y1=".",y2="**",y3=".",y4="**";
| ^~
In file included from /nix/store/iczlqwdj10xiz3mmms6adnra0mn3ljk1-glibc-2.35-224-dev/include/features.h:490,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/x86_64-unknown-linux-gnu/bits/c++config.h:586,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/cassert:43,
from /nix/store/wy4ywjsch9q2hj5lphqjdg9p2kf7w0ls-gcc-11.3.0/include/c++/11.3.0/x86_64-unknown-linux-gnu/bits/stdc++.h:33,
from foo.cc:1:
/nix/store/iczlqwdj10xiz3mmms6adnra0mn3ljk1-glibc-2.35-224-dev/include/bits/mathcalls.h:224:1: note: previous declaration 'double y1(double)'
224 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
foo.cc:7:11: error: 'cin' does not name a type
7 | int n;cin>>n;
| ^~~
foo.cc:8:5: error: expected unqualified-id before 'for'
8 | for(int i=0;i<n;i++){
| ^~~
foo.cc:8:17: error: 'i' does not name a type
8 | for(int i=0;i<n;i++){
| ^
foo.cc:8:21: error: 'i' does not name a type
8 | for(int i=0;i<n;i++){
| ^
foo.cc:11:5: error: expected unqualified-id before 'for'
11 | for(int i=0;i<3*n;i++){
| ^~~
foo.cc:11:17: error: 'i' does not name a type
11 | for(int i=0;i<3*n;i++){
| ^
foo.cc:11:23: error: 'i' does not name a type
11 | for(int i=0;i<3*n;i++){
| ^
foo.cc:14:5: error: expected unqualified-id before 'for'
14 | for(int i=1;i<=n;i++){
| ^~~
foo.cc:14:17: error: 'i' does not name a type
14 | for(int i=1;i<=n;i++){
| ^
foo.cc:14:22: error: 'i' does not name a type
14 | for(int i=1;i<=n;i++){
| ^
foo.cc:32:1: error: expected declaration before '}' token
32 | }
| ^
[Hydro](https://hydro.ac)提供评测服务