Pagini recente » Borderou de evaluare (job #231728) | Borderou de evaluare (job #1258164) | Borderou de evaluare (job #836802) | Borderou de evaluare (job #3127716) | Borderou de evaluare (job #2578501)
Borderou de evaluare (job #2578501)
Raport evaluator
Compilare:
main.cpp: In function 'void add(int, char*)':
main.cpp:16:11: warning: NULL used in arithmetic [-Wpointer-arith]
if(*s == NULL){
^~~~
main.cpp: In member function 'void usu::insert()':
main.cpp:34:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(v.size() >= k) return ;
~~~~~~~~~^~~~
main.cpp: In member function 'void usu::merge(const usu&)':
main.cpp:40:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(v.size() < sz + aux.v.size() && v.size() <= k) v.push_back(INF);
~~~~~~~~~^~~~
main.cpp:43:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 1; j <= aux.v.size() ; ++j){
~~^~~~~~~~~~~~~~~
main.cpp:44:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i + j - 1 >= v.size()) break ;
~~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:74:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cli.in", "r", stdin);
^
main.cpp:75:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cli.out", "w", stdout);
^
main.cpp:77:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:80:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 7ms | 2490kb | Incorect | 0 |
2 | 7ms | 2490kb | OK | 5 |
3 | 7ms | 2621kb | Incorect | 0 |
4 | 7ms | 2621kb | Incorect | 0 |
5 | 7ms | 2621kb | Incorect | 0 |
6 | 7ms | 2621kb | Incorect | 0 |
7 | 10ms | 2883kb | Incorect | 0 |
8 | 10ms | 2883kb | Incorect | 0 |
9 | 10ms | 2883kb | Incorect | 0 |
10 | 10ms | 2883kb | Incorect | 0 |
11 | 55ms | 8126kb | Incorect | 0 |
12 | 59ms | 8519kb | Incorect | 0 |
13 | 62ms | 8781kb | Incorect | 0 |
14 | 61ms | 8781kb | Incorect | 0 |
15 | 60ms | 8519kb | Incorect | 0 |
16 | 63ms | 8912kb | Incorect | 0 |
17 | 232ms | 34603kb | Incorect | 0 |
18 | 243ms | 35127kb | Incorect | 0 |
19 | 220ms | 32636kb | Incorect | 0 |
20 | 213ms | 32636kb | Incorect | 0 |
Punctaj total | 5 |