Borderou de evaluare (job #1506059)
Utilizator | Data | 19 octombrie 2015 22:58:33 | |
---|---|---|---|
Problema | Perechi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:25: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char* inputFileName = "perechi.in";
^
user.cpp:12:25: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char* outputFileName = "perechi.out";
^
user.cpp: In member function ‘unsigned int FileStream::readNextNumber()’:
user.cpp:26:29: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
unsigned int nextNumber = NULL;
^
user.cpp:27:7: warning: unused variable ‘readStatus’ [-Wunused-variable]
int readStatus = fscanf(this->inputStream, "%d", &nextNumber);
^
user.cpp: In member function ‘void FileStream::writeLineInFile(int)’:
user.cpp:34:7: warning: unused variable ‘writeStatus’ [-Wunused-variable]
int writeStatus = fprintf(this->outputStream, "%d\n", value);
^
user.cpp: In member function ‘void FileStream::writeLineOnConsole(int)’:
user.cpp:39:7: warning: unused variable ‘writeStatus’ [-Wunused-variable]
int writeStatus = printf("%d\n", value);
^
user.cpp: In function ‘int main()’:
user.cpp:144:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int d = 2; d * d <= N; ++d) {
^
user.cpp:151:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < divisorNumber; i++) {
^
user.cpp:153:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = i + 1; j < divisorNumber; j++) {
^
user.cpp:157:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((firstDivisor / gcd) * secondDivisor == N) {
^
user.cpp:168:3: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
return;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !