int distance; /距離センサの出力値/ int speedr = 50; /右モータ回転速度/ int speedl = 50; /左モータ回転速度/ int mode = 0; void motor_control() { if (mode ==1){ /前進/ digitalWrite(1,LOW); digitalWrite(2,HIGH); digitalWrite(12,HIGH); digitalWrite(13,LOW); } else if (mode==2) { /半時計回転/ digitalWrite(1,LOW); digitalWrite(2,HIGH); digitalWrite(12,LOW); digitalWrite(13,HIGH); } else if (mode==3) { /時計回転/ digitalWrite(1,HIGH); digitalWrite(2,LOW); digitalWrite(12,HIGH); digitalWrite(13,LOW); } else if (mode==4) { /後退/ digitalWrite(1,HIGH); digitalWrite(2,LOW); digitalWrite(12,LOW); digitalWrite(13,HIGH); } else { /停止/ digitalWrite(1,LOW); digitalWrite(2,LOW); digitalWrite(12,LOW); digitalWrite(13,LOW); } } void setup() { pinMode(1,OUTPUT); pinMode(2,OUTPUT); pinMode(12,OUTPUT); pinMode(13,OUTPUT); analogWrite(3,speedr); analogWrite(11,speedl); } void loop() { distance = analogRead(0); /センサ情報取得/ if(distance<500) { /障害物なし/ mode = 1; /前進/ motor_control(); delay(1); } else { /障害物あり/ mode = 2; /半時計回転/ motor_control(); delay (1000); } }
Standard input is empty
prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: expected identifier or ‘(’ before ‘/’ token prog.c:1: error: stray ‘\350’ in program prog.c:1: error: stray ‘\267’ in program prog.c:1: error: stray ‘\235’ in program prog.c:1: error: stray ‘\351’ in program prog.c:1: error: stray ‘\233’ in program prog.c:1: error: stray ‘\242’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\202’ in program prog.c:1: error: stray ‘\273’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\203’ in program prog.c:1: error: stray ‘\263’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\202’ in program prog.c:1: error: stray ‘\265’ in program prog.c:1: error: stray ‘\343’ in program prog.c:1: error: stray ‘\201’ in program prog.c:1: error: stray ‘\256’ in program prog.c:1: error: stray ‘\345’ in program prog.c:1: error: stray ‘\207’ in program prog.c:1: error: stray ‘\272’ in program prog.c:1: error: stray ‘\345’ in program prog.c:1: error: stray ‘\212’ in program prog.c:1: error: stray ‘\233’ in program prog.c:1: error: stray ‘\345’ in program prog.c:1: error: stray ‘\200’ in program prog.c:1: error: stray ‘\244’ in program prog.c:2: error: stray ‘\343’ in program prog.c:2: error: stray ‘\200’ in program prog.c:2: error: stray ‘\200’ in program prog.c:2: error: stray ‘\343’ in program prog.c:2: error: stray ‘\200’ in program prog.c:2: error: stray ‘\200’ in program prog.c:2: error: expected identifier or ‘(’ before ‘/’ token prog.c:2: error: stray ‘\345’ in program prog.c:2: error: stray ‘\217’ in program prog.c:2: error: stray ‘\263’ in program prog.c:2: error: stray ‘\343’ in program prog.c:2: error: stray ‘\203’ in program prog.c:2: error: stray ‘\242’ in program prog.c:2: error: stray ‘\343’ in program prog.c:2: error: stray ‘\203’ in program prog.c:2: error: stray ‘\274’ in program prog.c:2: error: stray ‘\343’ in program prog.c:2: error: stray ‘\202’ in program prog.c:2: error: stray ‘\277’ in program prog.c:2: error: stray ‘\345’ in program prog.c:2: error: stray ‘\233’ in program prog.c:2: error: stray ‘\236’ in program prog.c:2: error: stray ‘\350’ in program prog.c:2: error: stray ‘\273’ in program prog.c:2: error: stray ‘\242’ in program prog.c:2: error: stray ‘\351’ in program prog.c:2: error: stray ‘\200’ in program prog.c:2: error: stray ‘\237’ in program prog.c:2: error: stray ‘\345’ in program prog.c:2: error: stray ‘\272’ in program prog.c:2: error: stray ‘\246’ in program prog.c:3: error: expected identifier or ‘(’ before ‘/’ token prog.c:3: error: stray ‘\345’ in program prog.c:3: error: stray ‘\267’ in program prog.c:3: error: stray ‘\246’ in program prog.c:3: error: stray ‘\343’ in program prog.c:3: error: stray ‘\203’ in program prog.c:3: error: stray ‘\242’ in program prog.c:3: error: stray ‘\343’ in program prog.c:3: error: stray ‘\203’ in program prog.c:3: error: stray ‘\274’ in program prog.c:3: error: stray ‘\343’ in program prog.c:3: error: stray ‘\202’ in program prog.c:3: error: stray ‘\277’ in program prog.c:3: error: stray ‘\345’ in program prog.c:3: error: stray ‘\233’ in program prog.c:3: error: stray ‘\236’ in program prog.c:3: error: stray ‘\350’ in program prog.c:3: error: stray ‘\273’ in program prog.c:3: error: stray ‘\242’ in program prog.c:3: error: stray ‘\351’ in program prog.c:3: error: stray ‘\200’ in program prog.c:3: error: stray ‘\237’ in program prog.c:3: error: stray ‘\345’ in program prog.c:3: error: stray ‘\272’ in program prog.c:3: error: stray ‘\246’ in program prog.c: In function ‘motor_control’: prog.c:7: error: ‘mode’ undeclared (first use in this function) prog.c:7: error: (Each undeclared identifier is reported only once prog.c:7: error: for each function it appears in.) prog.c:7: error: stray ‘\343’ in program prog.c:7: error: stray ‘\200’ in program prog.c:7: error: stray ‘\200’ in program prog.c:7: error: stray ‘\343’ in program prog.c:7: error: stray ‘\200’ in program prog.c:7: error: stray ‘\200’ in program prog.c:7: error: expected expression before ‘/’ token prog.c:7: error: stray ‘\345’ in program prog.c:7: error: stray ‘\211’ in program prog.c:7: error: stray ‘\215’ in program prog.c:7: error: stray ‘\351’ in program prog.c:7: error: stray ‘\200’ in program prog.c:7: error: stray ‘\262’ in program prog.c:9: warning: implicit declaration of function ‘digitalWrite’ prog.c:9: error: ‘HIGH’ undeclared (first use in this function) prog.c:11: error: ‘LOW’ undeclared (first use in this function) prog.c:12: error: stray ‘\343’ in program prog.c:12: error: stray ‘\200’ in program prog.c:12: error: stray ‘\200’ in program prog.c:12: error: expected expression before ‘/’ token prog.c:12: error: stray ‘\345’ in program prog.c:12: error: stray ‘\215’ in program prog.c:12: error: stray ‘\212’ in program prog.c:12: error: stray ‘\346’ in program prog.c:12: error: stray ‘\231’ in program prog.c:12: error: stray ‘\202’ in program prog.c:12: error: stray ‘\350’ in program prog.c:12: error: stray ‘\250’ in program prog.c:12: error: stray ‘\210’ in program prog.c:12: error: stray ‘\345’ in program prog.c:12: error: stray ‘\233’ in program prog.c:12: error: stray ‘\236’ in program prog.c:12: error: stray ‘\350’ in program prog.c:12: error: stray ‘\273’ in program prog.c:12: error: stray ‘\242’ in program prog.c:12: error: stray ‘\343’ in program prog.c:12: error: stray ‘\200’ in program prog.c:12: error: stray ‘\200’ in program prog.c:17: error: stray ‘\343’ in program prog.c:17: error: stray ‘\200’ in program prog.c:17: error: stray ‘\200’ in program prog.c:17: error: stray ‘\343’ in program prog.c:17: error: stray ‘\200’ in program prog.c:17: error: stray ‘\200’ in program prog.c:17: error: expected expression before ‘/’ token prog.c:17: error: stray ‘\346’ in program prog.c:17: error: stray ‘\231’ in program prog.c:17: error: stray ‘\202’ in program prog.c:17: error: stray ‘\350’ in program prog.c:17: error: stray ‘\250’ in program prog.c:17: error: stray ‘\210’ in program prog.c:17: error: stray ‘\345’ in program prog.c:17: error: stray ‘\233’ in program prog.c:17: error: stray ‘\236’ in program prog.c:17: error: stray ‘\350’ in program prog.c:17: error: stray ‘\273’ in program prog.c:17: error: stray ‘\242’ in program prog.c:22: error: stray ‘\343’ in program prog.c:22: error: stray ‘\200’ in program prog.c:22: error: stray ‘\200’ in program prog.c:22: error: stray ‘\343’ in program prog.c:22: error: stray ‘\200’ in program prog.c:22: error: stray ‘\200’ in program prog.c:22: error: expected expression before ‘/’ token prog.c:22: error: stray ‘\345’ in program prog.c:22: error: stray ‘\276’ in program prog.c:22: error: stray ‘\214’ in program prog.c:22: error: stray ‘\351’ in program prog.c:22: error: stray ‘\200’ in program prog.c:22: error: stray ‘\200’ in program prog.c:27: error: expected expression before ‘/’ token prog.c:27: error: stray ‘\345’ in program prog.c:27: error: stray ‘\201’ in program prog.c:27: error: stray ‘\234’ in program prog.c:27: error: stray ‘\346’ in program prog.c:27: error: stray ‘\255’ in program prog.c:27: error: stray ‘\242’ in program prog.c: In function ‘setup’: prog.c:35: warning: implicit declaration of function ‘pinMode’ prog.c:35: error: ‘OUTPUT’ undeclared (first use in this function) prog.c:39: warning: implicit declaration of function ‘analogWrite’ prog.c:39: error: ‘speedr’ undeclared (first use in this function) prog.c:40: error: ‘speedl’ undeclared (first use in this function) prog.c: In function ‘loop’: prog.c:43: warning: implicit declaration of function ‘analogRead’ prog.c:43: error: stray ‘\343’ in program prog.c:43: error: stray ‘\200’ in program prog.c:43: error: stray ‘\200’ in program prog.c:43: error: expected expression before ‘/’ token prog.c:43: error: stray ‘\343’ in program prog.c:43: error: stray ‘\202’ in program prog.c:43: error: stray ‘\273’ in program prog.c:43: error: stray ‘\343’ in program prog.c:43: error: stray ‘\203’ in program prog.c:43: error: stray ‘\263’ in program prog.c:43: error: stray ‘\343’ in program prog.c:43: error: stray ‘\202’ in program prog.c:43: error: stray ‘\265’ in program prog.c:43: error: stray ‘\346’ in program prog.c:43: error: stray ‘\203’ in program prog.c:43: error: stray ‘\205’ in program prog.c:43: error: stray ‘\345’ in program prog.c:43: error: stray ‘\240’ in program prog.c:43: error: stray ‘\261’ in program prog.c:43: error: stray ‘\345’ in program prog.c:43: error: stray ‘\217’ in program prog.c:43: error: stray ‘\226’ in program prog.c:43: error: stray ‘\345’ in program prog.c:43: error: stray ‘\276’ in program prog.c:43: error: stray ‘\227’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\200’ in program prog.c:44: error: stray ‘\351’ in program prog.c:44: error: stray ‘\232’ in program prog.c:44: error: stray ‘\234’ in program prog.c:44: error: stray ‘\345’ in program prog.c:44: error: stray ‘\256’ in program prog.c:44: error: stray ‘\263’ in program prog.c:44: error: stray ‘\347’ in program prog.c:44: error: stray ‘\211’ in program prog.c:44: error: stray ‘\251’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\201’ in program prog.c:44: error: stray ‘\252’ in program prog.c:44: error: stray ‘\343’ in program prog.c:44: error: stray ‘\201’ in program prog.c:44: error: stray ‘\227’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\343’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\345’ in program prog.c:45: error: stray ‘\211’ in program prog.c:45: error: stray ‘\215’ in program prog.c:45: error: stray ‘\351’ in program prog.c:45: error: stray ‘\200’ in program prog.c:45: error: stray ‘\262’ in program prog.c:48: error: stray ‘\343’ in program prog.c:48: error: stray ‘\200’ in program prog.c:48: error: stray ‘\200’ in program prog.c:48: error: stray ‘\351’ in program prog.c:48: error: stray ‘\232’ in program prog.c:48: error: stray ‘\234’ in program prog.c:48: error: stray ‘\345’ in program prog.c:48: error: stray ‘\256’ in program prog.c:48: error: stray ‘\263’ in program prog.c:48: error: stray ‘\347’ in program prog.c:48: error: stray ‘\211’ in program prog.c:48: error: stray ‘\251’ in program prog.c:48: error: stray ‘\343’ in program prog.c:48: error: stray ‘\201’ in program prog.c:48: error: stray ‘\202’ in program prog.c:48: error: stray ‘\343’ in program prog.c:48: error: stray ‘\202’ in program prog.c:48: error: stray ‘\212’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\343’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\200’ in program prog.c:49: error: stray ‘\345’ in program prog.c:49: error: stray ‘\215’ in program prog.c:49: error: stray ‘\212’ in program prog.c:49: error: stray ‘\346’ in program prog.c:49: error: stray ‘\231’ in program prog.c:49: error: stray ‘\202’ in program prog.c:49: error: stray ‘\350’ in program prog.c:49: error: stray ‘\250’ in program prog.c:49: error: stray ‘\210’ in program prog.c:49: error: stray ‘\345’ in program prog.c:49: error: stray ‘\233’ in program prog.c:49: error: stray ‘\236’ in program prog.c:49: error: stray ‘\350’ in program prog.c:49: error: stray ‘\273’ in program prog.c:49: error: stray ‘\242’ in program
Standard output is empty