Posts by mitobk6 • 29 points
3 posts
-
0
votes0
answers73
viewsQ: How to execute a query using Python function
I set up a function that connects me to the BD and returns me a query: def consult(self, query): try: conn = mariadb.connect( user="XXXXX", password="XXXXX", host="192.168.000.000", port=3306,…
-
1
votes1
answer66
viewsQ: After compiling and running, the algorithm shows "recorded excess floating point", why?
Algorithm to find out if a number is prime, giving the floating point excess error. #include<stdio.h> int main(){ int n, i, divisivel; divisivel =0; printf("Digite um numero para saber se eh…
-
-2
votes1
answer4019
viewsQ: Pq ta giving this error -> error: expected ?;' before ?)' token
I made an algorithm to determine if a number is prime or not, but when compiling it is giving this error when compiling in Ubuntu’s own terminal. #include <stdio.h> int main(){ int n, i,…