foo.cc: In function 'int main()':
foo.cc:15:6: error: 'i' was not declared in this scope
for (i = 0; i < len;i++) {
^
foo.cc:16:8: error: 'j' was not declared in this scope
for (j = 0; j < len - i;j++) {
^
foo.cc:16:8: note: suggested alternative: 'jn'
for (j = 0; j < len - i;j++) {
^
jn
foo.cc:17:8: error: 'n' was not declared in this scope
if (n[j] < n[j + 1]) {
^
foo.cc:17:8: note: suggested alternative: 'yn'
if (n[j] < n[j + 1]) {
^
yn
foo.cc:18:5: error: 'temp' was not declared in this scope
temp = n[j];
^~~~
foo.cc:18:5: note: suggested alternative: 'time'
temp = n[j];
^~~~
time
foo.cc:27:1: error: expected '}' at end of input
}
^
[Hydro](https://hydro.ac)提供评测服务