Pagini recente » Borderou de evaluare (job #1258506) | Borderou de evaluare (job #1640770) | Borderou de evaluare (job #1859141) | Borderou de evaluare (job #777339) | Borderou de evaluare (job #2276102)
Borderou de evaluare (job #2276102)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:101:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i <= NumarTelefon.length();i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:113:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i <= NumarTelefon.length() + 2; i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int parcurgereVW(int, int)':
main.cpp:92:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:96:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("telefon.in", "r", stdin);
^
main.cpp:97:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("telefon.out", "w", stdout);
^
main.cpp: In function 'int parcurgereVW(int, int)':
main.cpp:59:15: warning: iteration 30 invokes undefined behavior [-Waggressive-loop-optimizations]
if(w[i] == plecare) indice_plecare = i;
~~~^
main.cpp:57:22: note: within this loop
for(int i = 0; i <= 30; i++)
~~^~~~~
main.cpp:25:15: warning: iteration 30 invokes undefined behavior [-Waggressive-loop-optimizations]
if(v[i] == plecare) indice_plecare = i;
~~~^
main.cpp:23:22: note: within this loop
for(int i = 0; i <= 30; i++)
~~^~~~~
main.cpp:42:39: warning: 'indice_sosire' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(int i = indice_plecare; i != indice_sosire; i+=p)
~~^~~~~~~~~~~~~~~~
main.cpp:38:9: warning: 'indice_plecare' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(indice_plecare < indice_sosire) p = 1;
^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Raspuns gresit | 0 |
2 | 2ms | 131kb | Raspuns corect | 10 |
3 | 2ms | 131kb | Raspuns gresit | 0 |
4 | 2ms | 131kb | Raspuns gresit | 0 |
5 | 2ms | 131kb | Raspuns corect | 10 |
6 | 2ms | 131kb | Raspuns corect | 10 |
7 | 2ms | 131kb | Raspuns corect | 10 |
8 | 2ms | 131kb | Raspuns corect | 10 |
9 | 2ms | 131kb | Raspuns corect | 10 |
10 | 2ms | 131kb | Raspuns gresit | 0 |
Punctaj total | 60 |