Pagini recente » Borderou de evaluare (job #267919) | Borderou de evaluare (job #156194) | Borderou de evaluare (job #1338749) | Borderou de evaluare (job #2124436) | Borderou de evaluare (job #1506056)
Borderou de evaluare (job #1506056)
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: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) {
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 440kb | Incorect | 0 |
| 2 | 8ms | 448kb | OK | 5 |
| 3 | 16ms | 444kb | OK | 5 |
| 4 | Depăşit | 412kb | Time limit exceeded. | 0 |
| 5 | Depăşit | 404kb | Time limit exceeded. | 0 |
| 6 | 0ms | 448kb | Incorect | 0 |
| 7 | 0ms | 440kb | OK | 5 |
| 8 | 0ms | 452kb | OK | 5 |
| 9 | 0ms | 448kb | OK | 5 |
| 10 | 0ms | 440kb | OK | 5 |
| 11 | 0ms | 440kb | OK | 5 |
| 12 | 4ms | 444kb | OK | 5 |
| 13 | 0ms | 448kb | OK | 5 |
| 14 | Depăşit | 408kb | Time limit exceeded. | 0 |
| 15 | 24ms | 452kb | OK | 5 |
| 16 | 0ms | 440kb | Incorect | 0 |
| 17 | 12ms | 444kb | OK | 5 |
| 18 | 0ms | 444kb | OK | 5 |
| 19 | 0ms | 448kb | OK | 5 |
| 20 | 0ms | 440kb | OK | 5 |
| Punctaj total | 70 |