- 输出1—100之间所有偶数
fw
- 2023-9-9 14:37:48 @
efwfgghwrfgeiufhuiryruigihuryrughuyfuhg2iryg28tr4gygqegqwr70364rfharwehsdnvjeiqhverpwofjnawrbiughOBYUFJEHEY980TRGHWE4WJGRUW0GHEOWRGHWGRHPNHOJGRYT4RGRIEEWBHIHWIRGTWWGIRGHTGHORGHRWJG3JWRKGEWOgrgriuigreugriwugugw
foo.cc:4:148: warning: missing terminating " character
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ^
foo.cc:4:148: error: missing terminating " character
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ^~
foo.cc:6:11: warning: missing terminating " character
6 | cout>>"
| ^
foo.cc:6:11: error: missing terminating " character
foo.cc: In function 'int main()':
foo.cc:4:148: error: expected ';' before 'return'
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ^
| ;
5 | return 0;
| ~~~~~~
foo.cc:4:144: warning: statement has no effect [-Wunused-value]
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
foo.cc:7:1: error: expected primary-expression before '}' token
7 | }efwfgghwrfgeiufhuiryruigihuryrughuyfuhg2iryg28tr4gygqegqwr70364rfharwehsdnvjeiqhverpwofjnawrbiughOBYUFJEHEY980TRGHWE4WJGRUW0GHEOWRGHWGRHPNHOJGRYT4RGRIEEWBHIHWIRGTWWGIRGHTGHORGHRWJG3JWRKGEWOgrgriuigreugriwugugw
foo.cc:4:148: warning: missing terminating " character
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ^
foo.cc:4:148: error: missing terminating " character
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ^~
foo.cc:6:11: warning: missing terminating " character
6 | cout>>"
| ^
foo.cc:6:11: error: missing terminating " character
foo.cc: In function 'int main()':
foo.cc:4:148: error: expected ';' before 'return'
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ^
| ;
5 | return 0;
| ~~~~~~
foo.cc:4:144: warning: statement has no effect [-Wunused-value]
4 | {2+4+6+8+10+12+14+16+18+20+22+24+26+28+30+32+34+36+38+40+42+44+46+48+50+52+54+56+58+60+62+64+66+68+70+72+74+76+78+80+82+84+86+88+90+92+94+96+98+100";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
foo.cc:7:1: error: expected primary-expression before '}' token
7 | }
2 comments
-
clavin LV 6 @ 2023-9-9 14:38:24
干掉电脑
-
2023-9-9 14:38:01@
hh
- 1
Information
- ID
- 783
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 3
- Tags
- # Submissions
- 177
- Accepted
- 33
- Uploaded By