#include <stdio.h>#include <stdlib.h> int funcao (float v1[], int v2[], int tam){ int i, j=0; for (i=0; i<tam; i++) { if (v1[i]>100) { v2[j] = i; j++; } } if (j>(tam*0.7)) { for (i=0; i<tam; i++) { if (v1[i]>100) { v1[i] = (v1[i]/100)*20; } } } return j;}
Standard input is empty
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' clang: error: linker command failed with exit code 1 (use -v to see invocation)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!