Pagini recente » Borderou de evaluare (job #1265182) | Borderou de evaluare (job #234927) | Borderou de evaluare (job #663565) | Borderou de evaluare (job #1160583) | Borderou de evaluare (job #1506074)
Borderou de evaluare (job #1506074)
Raport evaluator
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:148:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (otherNumber != d) {
^
user.cpp:154:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < divisorNumber; i++) {
^
user.cpp:156:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = i + 1; j < divisorNumber; j++) {
^
user.cpp:137:19: warning: unused variable ‘euclid’ [-Wunused-variable]
EuclidAlgorithm* euclid = new EuclidAlgorithm();
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 428kb | Incorect | 0 |
| 2 | 0ms | 428kb | Incorect | 0 |
| 3 | 0ms | 428kb | Incorect | 0 |
| 4 | 4ms | 432kb | Incorect | 0 |
| 5 | 4ms | 432kb | Incorect | 0 |
| 6 | 0ms | 432kb | Incorect | 0 |
| 7 | 0ms | 428kb | OK | 5 |
| 8 | 0ms | 424kb | Incorect | 0 |
| 9 | 0ms | 432kb | OK | 5 |
| 10 | 0ms | 432kb | Incorect | 0 |
| 11 | 0ms | 432kb | Incorect | 0 |
| 12 | 0ms | 428kb | Incorect | 0 |
| 13 | 0ms | 432kb | Incorect | 0 |
| 14 | 4ms | 432kb | Incorect | 0 |
| 15 | 0ms | 428kb | Incorect | 0 |
| 16 | 0ms | 424kb | Incorect | 0 |
| 17 | 0ms | 432kb | Incorect | 0 |
| 18 | 0ms | 428kb | Incorect | 0 |
| 19 | 0ms | 428kb | Incorect | 0 |
| 20 | 0ms | 432kb | Incorect | 0 |
| Punctaj total | 10 |