Borderou de evaluare (job #2251878)

Utilizator LucaSeriSeritan Luca LucaSeri Data 2 octombrie 2018 08:31:10
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int binarySearch(std::vector<int>&, int)’: user.cpp:30:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(best + (1<<step) < v.size() && v[best + (1<<step)] <= value) best += (1<<step); ~~~~~~~~~~~~~~~~~^~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:60:19: warning: conversion lacks type at end of format [-Wformat=] scanf("%h", &n); ^ user.cpp:60:19: warning: too many arguments for format [-Wformat-extra-args] user.cpp:65:23: warning: conversion lacks type at end of format [-Wformat=] scanf("%h", &x); ^ user.cpp:65:23: warning: too many arguments for format [-Wformat-extra-args] user.cpp:99:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < b.size(); ++ i) { ~~^~~~~~~~~~ user.cpp:57:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.in", "r", stdin); ^ user.cpp:58:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.out", "w", stdout); ^ user.cpp:60:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%h", &n); ^ user.cpp:65:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%h", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit15836kbTime limit exceeded.0
2Depăşit15832kbTime limit exceeded.0
30ms1336kbKilled by signal 11(SIGSEGV).0
40ms1332kbKilled by signal 11(SIGSEGV).0
5Depăşit15832kbTime limit exceeded.0
60ms1336kbKilled by signal 11(SIGSEGV).0
7Depăşit15832kbTime limit exceeded.0
8Depăşit15832kbTime limit exceeded.0
90ms1332kbKilled by signal 11(SIGSEGV).0
10Depăşit15832kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?