Questions tagged [incompatibility]
302 questions
-1
votes
1 answer
incompatible types: void cannot be converted to ArrayList
I'm new to Java and certain that this is a simple fix that I just don't know how to do. This part of the program is meant to take a text file, turn it into an ArrayList and then return it but I get an error when returning it.
package…

Harry
- 55
- 1
- 3
- 6
-1
votes
1 answer
Python codes work in 3.61 but not 2.7.12
I have few lines of python below and it runs fine under 3.61 but not 2.7.12. It looks like file=log_file throws the error for some reasons. How do I fix it?
Also, I think my codes are not best practice, what is a better approach?
Thank you for your…

Mixer
- 183
- 2
- 7
- 15
-1
votes
2 answers
Generics - incompatible types
public class HelloWorld{
public static void main(String[] args) {
List extends Number> callback = new ArrayList();
new Container<>().test(callback);
}
public static class Container {
public void test(List…

gstackoverflow
- 36,709
- 117
- 359
- 710
-1
votes
1 answer
SQL works in SQLite but doesn't work in php my admin
I have some SQL:
CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT, userneme TEXT, password TEXT);
CREATE TABLE userinfo (id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER, email TEXT, year_joined INTEGER, month_joined INTEGER,…

hexagonNoah
- 149
- 1
- 9
-1
votes
1 answer
NVIDIA CUDA 5.5 Compatible graphics hardware error
I have following machine.
1.Dell XPS 8700
2.Intel Core i7-4790
3.16GB RAM
4.NVIDIA GetForce GTX 750TI 2GB with NVIDIA GRAPHICS Driver 347.09
5.Windows 8.1 64-bit
I am trying to install CUDA 5.5 Desktop since the latest does not support DESKTOP I…

Naseer
- 4,041
- 9
- 36
- 72
-1
votes
1 answer
Incompatible type for argument and conflicting types
#include
void copy_arr(double, double, int);
void copy_ptr(double, double *, int);
int main()
{
double source[5]={1.1,2.2,3.3,4.4,5.5};
double target1[5]={0.0};
double target2[5]={0.0};
copy_arr(source, target1, 5);
…

jeevan
- 247
- 5
- 12
-1
votes
1 answer
Magento not compatible with IE or Firefox
I don't know if this is a theme issue or what but I am having a strange issue with IE and Firefox. Just happened this week with no changes to the website or store. I have looked everywhere online and saw someone on here with a similar issue. I…

Jamoy
- 3
- 3
-1
votes
2 answers
incompatible types: Card cannot be converted to int
I'm nearing the end of my program and I've hit a snag that I don't know how to fix.
I'm trying to compare the rank value of two cards, so I use a method to get the rank of the card that was just removed from the queue. However, I can't convert the…

user50017
- 3
- 2
- 5
-1
votes
1 answer
Excel can't find a value even though it exists within the worksheet
this is my first post so i am sorry if this is confusing at all. I am trying to use a vLookup to run a comparative analysis between two reports. I am using a part number as a reference and trying to return the cost associated with the part from one…

gatechuks
- 1
- 1
- 1
- 2
-2
votes
1 answer
Incompatible Types and Bad Operand Type Error for LinkedList
Hi for my project I'm trying to remove all occurences of the item and return the number of items removed. All subsequent items are moved to the left and if the item is not found, this method will return 0.
Here is my code :
public class…

Carlo Viloria
- 53
- 4
-2
votes
1 answer
Why is Python 3 not available in PyCharm?
This is the changelog of version 1.2 of PyCharm and they say it is compatible with Python 3.2. Now version 1.5.4 say that it's working until Python 3.1.
I'm running the trial version on Mac, and the program it's using 2.6 python-default framework…

PyGuy
- 61
- 1
- 1
- 4
-2
votes
1 answer
How to make the Python str() function work with a custom class?
Often, when using a Python Package, I find myself using the str() function to convert a package's custom data-type to a string. If I were to try and create a Python Class for a module, how would I add compatibility to str() function for my package's…

Jack Snowdon
- 63
- 6
-2
votes
1 answer
How to implement 'BigInteger to Integer and vice-versa' in my code,unable to solve incompatable type error
I tried using type long in java it worked well. But, I want to handle values greater than long so I moved to BigInteger but ended up with an error with incompatible types(BigInteger and int).
Thanks in advance.
import java.io.*;
import…
-2
votes
1 answer
variable without quotes, different response live and local
I am currently checking the deprecated functions of a software developed in older PHP. It was developed in 2006. And I've seen a lot of variables in this format $_SESSION[name] or $_GET[name].
The issue here is that it does not give error on the…

makoto
- 177
- 1
- 4
- 16
-3
votes
1 answer
what is error : incompatible type for argument of fprintf?
So I'm trying to write a code for university students. The algorithm is that they enter their name and choose the subject they want to know the grade of. Then the program should read the file and show them the grade. Here is the code :
#include…

Faraz02
- 1