Error while showing a String

0

I'm asking the question Input and Output with Virgula , I'm doing everything the question asked but I'm taking 30% error, could they help me wherever the error is

My code

#include <stdio.h>
#include <string.h>
int main(int argc, char** argv)
{
   char nome[100], aux_1[90], aux_2[90];
   int i = 0, cont = 0;
   scanf("%[^\n]", nome);

   for(i = 0; i < nome[i] && nome[i] != ','; i++)
   {
      aux_1[i] = nome[i];
   }
   aux_1[i] = '
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv)
{
   char nome[100], aux_1[90], aux_2[90];
   int i = 0, cont = 0;
   scanf("%[^\n]", nome);

   for(i = 0; i < nome[i] && nome[i] != ','; i++)
   {
      aux_1[i] = nome[i];
   }
   aux_1[i] = '%pre%';
   i++;
   for(int j = i; j < nome[j] && nome[j] != '%pre%'; j++)
   {
      aux_2[cont] = nome[j];
      cont++;
   }
    aux_2[cont] = '%pre%';
    puts(aux_1);
    puts(aux_2);
   return 0;
}
'; i++; for(int j = i; j < nome[j] && nome[j] != '%pre%'; j++) { aux_2[cont] = nome[j]; cont++; } aux_2[cont] = '%pre%'; puts(aux_1); puts(aux_2); return 0; }
    
asked by anonymous 30.04.2018 / 22:58

0 answers