Posts by rafael marques • 939 points
68 posts
-
1
votes0
answers42
viewsQ: String characters disappear
Good morning I’m doing the Problem 1234 from Uri, only that I made the code and saw that some characters disappear for some reason I don’t know, when I type a phrase that the site shows, some…
casked rafael marques 939 -
1
votes1
answer186
viewsQ: Error showing results - URI 1566
I made as a request URI problem 1566, only it’s giving presentation error, and I don’t know how to fix. Just follow my code: #include <stdio.h> #include <stdlib.h> int ordena(const void…
casked rafael marques 939 -
7
votes3
answers4835
viewsQ: It is possible to concatenate numbers of type int
For example 10 and 12, concatenated would be 1012, this without being string, it would have to be the whole kind, you can do it?
-
0
votes1
answer419
viewsQ: Doubt with Scientific Notation
There is another way but with %E in c, why I did so and Uri gave 10 % error. Question link My code. #include <stdio.h> int main(int argc, char** argv) { double teste; scanf("%lf", &teste);…
casked rafael marques 939 -
0
votes1
answer90
viewsQ: Doubt in the search for sub-string, inside a string
I did everything the question asked only that I’m taking 70% error. Question link My code #include <stdio.h> #include <string.h> #include <ctype.h> int main(int argc, char** argv)…
-
0
votes2
answers1078
viewsQ: How to count specific characters
I’m making a program that counts how many vowels there are in the word, I managed to do, now I was trying to make only count a vowel in the word, for example Raphael, the appears 2 times, I want to…
casked rafael marques 939 -
0
votes1
answer244
viewsQ: Cipher of César, Error in the displacement of letters
I am trying to make a program that, the user will enter a name and will be asked how many positions the user wants to shift to the right. However, I had a problem. If I type the letter A and move to…
casked rafael marques 939 -
2
votes1
answer27466
viewsQ: How to convert string to int type in c
I tried using itoa, but it seems that the Uri platform does not accept, someone could give me another way to convert from string to int Here’s the code I tried itoa(n1, p1, 10);…
casked rafael marques 939 -
0
votes1
answer14069
viewsQ: How can you count repeated numbers in a vector?
I’m wondering if there are how many repeated values in the vector. Here’s the code I tried, but I didn’t succeed. #include <stdio.h> int main(int argc, char** argv) { int a, i, j, c = 0;…
-
-3
votes1
answer75
viewsQ: Is there any way to improve the performance of this code?
I have already found the resolution of this issue and all the results are in line with what the question asks, but I think the solution is a little slow, because it is giving Time limit exceeded…
casked rafael marques 939 -
1
votes1
answer1186
viewsQ: How to find a name with struct
I’m making a code that will receive the names of five people and the three gifts that she took to the party, and then it will be asked the name of the person and the gifts that she brought to the…
casked rafael marques 939 -
-1
votes1
answer40
viewsQ: Error finding equal numbers
I’m trying to ask a question that if the same values are going to be counted with a single one, only I’m not getting to score as a single value. question link #include <stdio.h> int main(int…
casked rafael marques 939 -
4
votes2
answers625
viewsQ: Calculate the factorial by reference passage
I’m studying pointers I’m trying to calculate a factorial of a number, only the result comes out a totally different value than expected. Here is my code #include<stdio.h>…
-
0
votes1
answer867
viewsQ: Correct answer but Uri does not accept
I’m starting to study pointer and decided to change my codes to use pointers, only I tried to send this solution to Uri and it gave a message - In Queue -,I don’t know where the bug is,. question…
casked rafael marques 939 -
0
votes1
answer79
viewsQ: Error when comparing matrices
The question asks for a comparison of matrices,I tried to compare them, but the answer if they are equal appears several times and I do not know how to solve this problem, is what is causing the 10%…
casked rafael marques 939 -
2
votes1
answer79
viewsQ: Error in sorting numbers
Even numbers I managed to sort, only odd numbers I can’t sort. The memory address of the number appears. Link to the question: Even and Odd Here is my code: #include <stdio.h> int main(int…
-
4
votes1
answer821
viewsQ: Optimize factorial calculation using vector
Statement of the question: Read an array A of vector type with 5 integer numerical elements. Construct a matrix B of the same type, each element of the matrix B being the factorial of the…
casked rafael marques 939 -
1
votes1
answer650
viewsQ: Error reading string with scanf
The logic I already found, but I’m having a hard time reading the string the way the question asks. Only accepts a number when I hit enter, if it does not consider the number a string. Link to the…
casked rafael marques 939