#include <stdio.h>int i;float a[10];for(i=0;i<10;i++){a[i]=11.5+5i;}int main(){int j;for(j=0;j<10;j++){printf("%f",a[j]);}}algorithm.c:5:5: error: expected identifier or ‘(’ before ‘for’for(i=0;i<10;i++)^algorithm.c:5:14: error: expected ‘=’, ‘,’, ‘;’, ‘a(chǎn)sm’ or ‘__attribute__’ before ‘<’ tokenfor(i=0;i<10;i++)^algorithm.c:5:19: error: expected ‘=’, ‘,’, ‘;’, ‘a(chǎn)sm’ or ‘__attribute__’ before ‘++’ tokenfor(i=0;i<10;i++)
- 1 回答
- 0 關(guān)注
- 719 瀏覽
添加回答
舉報
0/150
提交
取消