foo.cc:3:1: error: expected identifier before 'int'
3 | int main()
| ^~~
foo.cc:2:16: error: expected ';' before 'int'
2 | using namespace
| ^
| ;
3 | int main()
| ~~~
foo.cc: In function 'int main()':
foo.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin<<xmin<<xmax;
| ^~~
| std::cin
In file included from foo.cc:1:
/usr/include/c++/9/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
foo.cc:8:9: warning: left operand of comma operator has no effect [-Wunused-value]
8 | if(xmin>=xmax,xmin++)
| ~~~~^~~~~~
foo.cc:10:16: error: lvalue required as left operand of assignment
10 | xmin/100000=x6;
| ^~
foo.cc:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
8 | if(xmin>=xmax,xmin++)
| ^~
foo.cc:11:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
11 | if(x6=0)
| ^~
foo.cc:11:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
11 | if(x6=0)
| ~~^~
foo.cc:12:7: warning: statement has no effect [-Wunused-value]
12 | n0+1;
| ~~^~
foo.cc:13:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
13 | if(x6=1)
| ~~^~
foo.cc:14:7: warning: statement has no effect [-Wunused-value]
14 | n1+1;
| ~~^~
foo.cc:15:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
15 | if(x6=2)
| ~~^~
foo.cc:16:7: warning: statement has no effect [-Wunused-value]
16 | n2+1;
| ~~^~
foo.cc:17:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
17 | if(x6=3)
| ~~^~
foo.cc:18:7: warning: statement has no effect [-Wunused-value]
18 | n3+1;
| ~~^~
foo.cc:19:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
19 | if(x6=4)
| ~~^~
foo.cc:20:7: warning: statement has no effect [-Wunused-value]
20 | n4+1;
| ~~^~
foo.cc:21:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
21 | if(x6=5)
| ~~^~
foo.cc:22:7: warning: statement has no effect [-Wunused-value]
22 | n5+1;
| ~~^~
foo.cc:23:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
23 | if(x6=6)
| ~~^~
foo.cc:24:7: warning: statement has no effect [-Wunused-value]
24 | n6+1;
| ~~^~
foo.cc:25:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
25 | if(x6=7)
| ~~^~
foo.cc:26:7: warning: statement has no effect [-Wunused-value]
26 | n7+1;
| ~~^~
foo.cc:27:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
27 | if(x6=8)
| ~~^~
foo.cc:28:7: warning: statement has no effect [-Wunused-value]
28 | n8+1;
| ~~^~
foo.cc:29:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
29 | if(x6=9)
| ~~^~
foo.cc:30:7: warning: statement has no effect [-Wunused-value]
30 | n9+1;
| ~~^~
foo.cc:32:15: error: lvalue required as left operand of assignment
32 | xmin/10000=x5;
| ^~
foo.cc:33:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
33 | if(x5=0)
| ~~^~
foo.cc:34:7: warning: statement has no effect [-Wunused-value]
34 | n0+1;
| ~~^~
foo.cc:35:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
35 | if(x5=1)
| ~~^~
foo.cc:36:7: warning: statement has no effect [-Wunused-value]
36 | n1+1;
| ~~^~
foo.cc:37:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
37 | if(x5=2)
| ~~^~
foo.cc:38:7: warning: statement has no effect [-Wunused-value]
38 | n2+1;
| ~~^~
foo.cc:39:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
39 | if(x5=3)
| ~~^~
foo.cc:40:7: warning: statement has no effect [-Wunused-value]
40 | n3+1;
| ~~^~
foo.cc:41:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
41 | if(x5=4)
| ~~^~
foo.cc:42:6: warning: statement has no effect [-Wunused-value]
42 | 4+1;
| ~^~
foo.cc:43:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
43 | if(x5=5)
| ~~^~
foo.cc:44:7: warning: statement has no effect [-Wunused-value]
44 | n5+1;
| ~~^~
foo.cc:45:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
45 | if(x5=6)
| ~~^~
foo.cc:46:7: warning: statement has no effect [-Wunused-value]
46 | n6+1;
| ~~^~
foo.cc:47:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
47 | if(x5=7)
| ~~^~
foo.cc:48:7: warning: statement has no effect [-Wunused-value]
48 | n7+1;
| ~~^~
foo.cc:49:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
49 | if(x5=8)
| ~~^~
foo.cc:50:7: warning: statement has no effect [-Wunused-value]
50 | n8+1;
| ~~^~
foo.cc:51:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
51 | if(x5=9)
| ~~^~
foo.cc:52:7: warning: statement has no effect [-Wunused-value]
52 | n9+1;
| ~~^~
foo.cc:54:14: error: lvalue required as left operand of assignment
54 | xmin/1000=x4;
| ^~
foo.cc:55:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
55 | if(x4=0)
| ~~^~
foo.cc:56:7: warning: statement has no effect [-Wunused-value]
56 | n0+1;
| ~~^~
foo.cc:57:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
57 | if(x4=1)
| ~~^~
foo.cc:58:7: warning: statement has no effect [-Wunused-value]
58 | n1+1;
| ~~^~
foo.cc:59:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
59 | if(x4=2)
| ~~^~
foo.cc:60:7: warning: statement has no effect [-Wunused-value]
60 | n2+1;
| ~~^~
foo.cc:61:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
61 | if(x4=3)
| ~~^~
foo.cc:62:7: warning: statement has no effect [-Wunused-value]
62 | n3+1;
| ~~^~
foo.cc:63:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
63 | if(x4=4)
| ~~^~
foo.cc:64:7: warning: statement has no effect [-Wunused-value]
64 | n4+1;
| ~~^~
foo.cc:65:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
65 | if(x4=5)
| ~~^~
foo.cc:66:10: warning: statement has no effect [-Wunused-value]
66 | n5+1;
| ~~^~
foo.cc:67:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
67 | if(x4=6)
| ~~^~
foo.cc:68:7: warning: statement has no effect [-Wunused-value]
68 | n6+1;
| ~~^~
foo.cc:69:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
69 | if(x4=7)
| ~~^~
foo.cc:70:7: warning: statement has no effect [-Wunused-value]
70 | n7+1;
| ~~^~
foo.cc:71:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
71 | if(x4=8)
| ~~^~
foo.cc:72:7: warning: statement has no effect [-Wunused-value]
72 | n8+1;
| ~~^~
foo.cc:73:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
73 | if(x4=9)
| ~~^~
foo.cc:74:7: warning: statement has no effect [-Wunused-value]
74 | n9+1;
| ~~^~
foo.cc:76:13: error: lvalue required as left operand of assignment
76 | xmin/100=x3;
| ^~
foo.cc:77:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
77 | if(x3=0)
| ~~^~
foo.cc:78:7: warning: statement has no effect [-Wunused-value]
78 | n0+1;
| ~~^~
foo.cc:79:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
79 | if(x3=1)
| ~~^~
foo.cc:80:7: warning: statement has no effect [-Wunused-value]
80 | n1+1;
| ~~^~
foo.cc:81:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
81 | if(x3=2)
| ~~^~
foo.cc:82:7: warning: statement has no effect [-Wunused-value]
82 | n2+1;
| ~~^~
foo.cc:83:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
83 | if(x3=3)
| ~~^~
foo.cc:84:7: warning: statement has no effect [-Wunused-value]
84 | n3+1;
| ~~^~
foo.cc:85:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
85 | if(x3=4)
| ~~^~
foo.cc:86:7: warning: statement has no effect [-Wunused-value]
86 | n4+1;
| ~~^~
foo.cc:87:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
87 | if(x3=5)
| ~~^~
foo.cc:88:7: warning: statement has no effect [-Wunused-value]
88 | 35+1;
| ~~^~
foo.cc:89:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
89 | if(x3=6)
| ~~^~
foo.cc:90:7: warning: statement has no effect [-Wunused-value]
90 | n6+1;
| ~~^~
foo.cc:91:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
91 | if(x3=7)
| ~~^~
foo.cc:92:7: warning: statement has no effect [-Wunused-value]
92 | n7+1;
| ~~^~
foo.cc:93:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
93 | if(x3=8)
| ~~^~
foo.cc:94:7: warning: statement has no effect [-Wunused-value]
94 | n8+1;
| ~~^~
foo.cc:95:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
95 | if(x3=9)
| ~~^~
foo.cc:96:7: warning: statement has no effect [-Wunused-value]
96 | n9+1;
| ~~^~
foo.cc:98:12: error: lvalue required as left operand of assignment
98 | xmin/10=x2;
| ^~
foo.cc:99:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
99 | if(x2=0)
| ~~^~
foo.cc:100:7: warning: statement has no effect [-Wunused-value]
100 | n0+1;
| ~~^~
foo.cc:101:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
101 | if(x2=1)
| ~~^~
foo.cc:102:7: warning: statement has no effect [-Wunused-value]
102 | n1+1;
| ~~^~
foo.cc:103:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
103 | if(x2=2)
| ~~^~
foo.cc:104:7: warning: statement has no effect [-Wunused-value]
104 | n2+1;
| ~~^~
foo.cc:105:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
105 | if(x2=3)
| ~~^~
foo.cc:106:7: warning: statement has no effect [-Wunused-value]
106 | n3+1;
| ~~^~
foo.cc:107:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
107 | if(x2=4)
| ~~^~
foo.cc:108:7: warning: statement has no effect [-Wunused-value]
108 | n4+1;
| ~~^~
foo.cc:109:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
109 | if(x2=5)
| ~~^~
foo.cc:110:7: warning: statement has no effect [-Wunused-value]
110 | n5+1;
| ~~^~
foo.cc:111:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
111 | if(x2=6)
| ~~^~
foo.cc:112:7: warning: statement has no effect [-Wunused-value]
112 | n6+1;
| ~~^~
foo.cc:113:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
113 | if(x2=7)
| ~~^~
foo.cc:114:7: warning: statement has no effect [-Wunused-value]
114 | n7+1;
| ~~^~
foo.cc:115:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
115 | if(x2=8)
| ~~^~
foo.cc:116:7: warning: statement has no effect [-Wunused-value]
116 | n8+1;
| ~~^~
foo.cc:117:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
117 | if(x2=9)
| ~~^~
foo.cc:118:7: warning: statement has no effect [-Wunused-value]
118 | n9+1;
| ~~^~
foo.cc:120:11: error: lvalue required as left operand of assignment
120 | xmin/1=x1;
| ^~
foo.cc:121:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
121 | if(x1=0)
| ~~^~
foo.cc:122:7: warning: statement has no effect [-Wunused-value]
122 | n0+1;
| ~~^~
foo.cc:123:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
123 | if(x1=1)
| ~~^~
foo.cc:124:7: warning: statement has no effect [-Wunused-value]
124 | n1+1;
| ~~^~
foo.cc:125:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
125 | if(x1=2)
| ~~^~
foo.cc:126:7: warning: statement has no effect [-Wunused-value]
126 | n2+1;
| ~~^~
foo.cc:127:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
127 | if(x1=3)
| ~~^~
foo.cc:128:7: warning: statement has no effect [-Wunused-value]
128 | n3+1;
| ~~^~
foo.cc:129:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
129 | if(x1=4)
| ~~^~
foo.cc:130:7: warning: statement has no effect [-Wunused-value]
130 | n4+1;
| ~~^~
foo.cc:131:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
131 | if(x1=5)
| ~~^~
foo.cc:132:7: warning: statement has no effect [-Wunused-value]
132 | n5+1;
| ~~^~
foo.cc:133:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
133 | if(x1=6)
| ~~^~
foo.cc:134:7: warning: statement has no effect [-Wunused-value]
134 | n6+1;
| ~~^~
foo.cc:135:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
135 | if(x1=7)
| ~~^~
foo.cc:136:7: warning: statement has no effect [-Wunused-value]
136 | n7+1;
| ~~^~
foo.cc:137:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
137 | if(x1=8)
| ~~^~
foo.cc:138:7: warning: statement has no effect [-Wunused-value]
138 | n8+1;
| ~~^~
foo.cc:139:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
139 | if(x1=9)
| ~~^~
foo.cc:140:7: warning: statement has no effect [-Wunused-value]
140 | n9+1;
| ~~^~
[Hydro](https://hydro.ac)提供评测服务