Borderou de evaluare (job #1434725)

Utilizator goguGogu Marian gogu Data 11 mai 2015 11:25:39
Problema Sabin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/4.8/backward/hash_map:60:0, from user.cpp:2: /usr/include/c++/4.8/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] #warning \ ^ user.cpp:59:1: error: ‘hash_map’ does not name a type hash_map<uint64, int> countFreq[MaxL]; ^ user.cpp: In function ‘int GetCount(int, long long unsigned int)’: user.cpp:67:15: error: ‘countFreq’ was not declared in this scope auto it = countFreq[lev].find(hashVal); ^ user.cpp: In function ‘int main()’: user.cpp:99:13: error: ‘countFreq’ was not declared in this scope countFreq[j][lev.hashes[j]]++; ^ user.cpp: In function ‘void SolveQuery()’: user.cpp:76:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ user.cpp:78:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp: In function ‘int main()’: user.cpp:87:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sabin.in", "rb", stdin); ^ user.cpp:88:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sabin.out", "wb", stdout); ^ user.cpp:90:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d %d\n", &N, &K, &M, &L, &Q); ^ user.cpp:93:39: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buf, sizeof(buf), stdin); ^ user.cpp:102:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buf, sizeof(buf), stdin); ^

Ceva nu functioneaza?