Borderou de evaluare (job #2399463)

Utilizator MoldooooooooMoldoveanu Stefan Moldoooooooo Data 7 aprilie 2019 15:21:56
Problema Gard Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:5:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define max(a, b) (a>b?a:b) main.cpp:42:45: if(List[x].L>=List[x].S) Sol[i]=max(Sol[i], List[x].S*List[x].P); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:42:41: note: in expansion of macro 'max' if(List[x].L>=List[x].S) Sol[i]=max(Sol[i], List[x].S*List[x].P); ^~~ main.cpp:21:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("gard.in", "r", stdin); ^ main.cpp:22:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("gard.out", "w", stdout); ^ main.cpp:23:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &K); ^ main.cpp:24:77: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for(i=1; i<=K; ++i) {scanf("%d%d%d", &List[i].L, &List[i].P, &List[i].S); Sol[List[i].S]=1;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms655kbOK5
23ms655kbOK5
34ms786kbOK5
45ms524kbOK5
57ms917kbOK5
615ms524kbOK5
721ms786kbOK5
89ms393kbOK5
919ms524kbOK5
1024ms1310kbOK5
1153ms4587kbTime limit exceeded0
1253ms2752kbTime limit exceeded0
1351ms1048kbTime limit exceeded0
1450ms6946kbTime limit exceeded0
1553ms8650kbTime limit exceeded0
1661ms8257kbTime limit exceeded0
1753ms6029kbTime limit exceeded0
1853ms11796kbTime limit exceeded0
1953ms13107kbTime limit exceeded0
2053ms13107kbTime limit exceeded0
Punctaj total50

Ceva nu functioneaza?