Borderou de evaluare (job #1533075)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 21 noiembrie 2015 23:49:09
Problema Ciuperci Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int hFind(long long int)’: user.cpp:15:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < H[key].size(); i++) { ^ user.cpp:16:12: error: ‘get’ was not declared in this scope if(get<0>(H[key][i]) == X) { ^ user.cpp: In function ‘void hAdd(std::pair<long long int, int>)’: user.cpp:24:15: error: ‘get’ was not declared in this scope int key = get<0>(X) % HMOD; ^ user.cpp:24:25: error: no match for ‘operator%’ (operand types are ‘std::pair<long long int, int>’ and ‘const int’) int key = get<0>(X) % HMOD; ^ user.cpp:26:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < H[key].size(); i++) { ^ user.cpp: In function ‘long long int atoll()’: user.cpp:60:27: warning: NULL used in arithmetic [-Wpointer-arith] for(i = 0; BUFF[i] != NULL; i++) { ^ user.cpp: In function ‘int main()’: user.cpp:77:23: error: too many arguments to function ‘long long int atoll()’ n = atoll(BUFF); ^ user.cpp:58:18: note: declared here inline long long atoll() { ^ user.cpp:67:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ciuperci.in", "r", stdin); ^ user.cpp:68:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ciuperci.out", "w", stdout); ^ user.cpp:74:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &q); ^ user.cpp:76:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(BUFF); ^

Ceva nu functioneaza?