Borderou de evaluare (job #1883765)

Utilizator andru47Stefanescu Andru andru47 Data 18 februarie 2017 10:57:46
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int nrr(int*, std::vector<int>, int&, int)’: user.cpp:21:9: warning: unused variable ‘len’ [-Wunused-variable] int len = strlen(func[i] + 1); ^ user.cpp: In function ‘int solve(char, int&)’: user.cpp:62:54: warning: operation on ‘ind’ may be undefined [-Wsequence-point] v.push_back(solve(expresie[ind],++++ind)); ^ user.cpp: In function ‘int main()’: user.cpp:91:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apel.in","r",stdin); ^ user.cpp:92:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apel.out","w",stdout); ^ user.cpp:94:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(expresie + 1); ^ user.cpp:102:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:120:30: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(func[++ind] + 1); ^ user.cpp: In function ‘int solve(char, int&)’: user.cpp:89:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:120:30: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/cceHbGLj.o: In function `main': user.cpp:(.text.startup+0x19b): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x68): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms424kbIncorect0
20ms424kbIncorect0
30ms432kbIncorect0
40ms424kbIncorect0
50ms428kbIncorect0
60ms424kbIncorect0
70ms432kbIncorect0
80ms432kbIncorect0
90ms424kbIncorect0
100ms424kbOK10
Punctaj total10

Ceva nu functioneaza?