Borderou de evaluare (job #2219374)

Utilizator Alex03Runcan Alexandru Alex03 Data 8 iulie 2018 16:49:00
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}’ [-Wformat=] if (n <= counter - 1) printf("%d",pow(prime[n+1],2)); ^ user.cpp:31:32: warning: left operand of comma operator has no effect [-Wunused-value] for (int i = a + 1; i <= 1300000, counter < n + 1; i++) ~~^~~~~~~~~~ user.cpp:37:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}’ [-Wformat=] printf("%d",pow(prime[n+1],2)); ^ user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("prim.out","w" , stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
152ms6396kbIncorect0
252ms6400kbIncorect0
352ms6396kbIncorect0
452ms6404kbIncorect0
552ms6396kbIncorect0
656ms6436kbIncorect0
756ms6456kbIncorect0
856ms6524kbIncorect0
956ms6652kbIncorect0
1056ms6780kbIncorect0
Punctaj total0

Ceva nu functioneaza?