Borderou de evaluare (job #1940361)

Utilizator akaprosAna Kapros akapros Data 26 martie 2017 16:10:59
Problema Lru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘long long int getSol()’: user.cpp:37:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] p[initSt[i]] = i; ^ user.cpp:44:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p[finSt[i]] > first) ^ user.cpp:46:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] initSt[p[finSt[i]]] = '*'; ^ user.cpp:47:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] ans += 1LL * (i - p[finSt[i]] + add[finSt[i]]); ^ user.cpp:47:57: warning: array subscript has type ‘char’ [-Wchar-subscripts] ans += 1LL * (i - p[finSt[i]] + add[finSt[i]]); ^ user.cpp:49:55: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (j != finSt[i] && p[j] > p[finSt[i]]) ^ user.cpp:52:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] -- p[finSt[i]]; ^ user.cpp:56:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (p[initSt[p[st]]] < p[st]) ^ user.cpp: In function ‘int main()’: user.cpp:76:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:81:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:82:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n%s", initSt + 1, finSt + 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms4356kbIncorect0
28ms4372kbKilled by signal 11(SIGSEGV).0
360ms4548kbIncorect0
424ms4604kbKilled by signal 11(SIGSEGV).0
528ms4660kbKilled by signal 11(SIGSEGV).0
628ms4700kbKilled by signal 11(SIGSEGV).0
780ms5872kbKilled by signal 11(SIGSEGV).0
896ms6076kbKilled by signal 11(SIGSEGV).0
988ms6260kbKilled by signal 11(SIGSEGV).0
104ms4308kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?