Borderou de evaluare (job #2180828)
Utilizator | Data | 21 martie 2018 11:12:06 | |
---|---|---|---|
Problema | Iepuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:84:1: warning: "/*" within comment [-Wcomment]
/*
^
user.cpp: In function ‘int garduri_rapide(int)’:
user.cpp:104:11: error: ‘KMAX’ was not declared in this scope
int C[KMAX][KMAX] = { {0, 0, 0, 1},
^
user.cpp:111:17: error: ‘C’ was not declared in this scope
power_matrix(C, n - 4, C);
^
user.cpp:111:28: error: ‘power_matrix’ was not declared in this scope
power_matrix(C, n - 4, C);
^
user.cpp:115:17: error: ‘MOD’ was not declared in this scope
return sol % MOD;
^
user.cpp: In function ‘bool verifica_algoritmi()’:
user.cpp:122:41: error: ‘gardurile_lui_Gigel’ was not declared in this scope
int sol1 = gardurile_lui_Gigel(i),
^
user.cpp:124:21: error: ‘sol2’ was not declared in this scope
if (sol1 != sol2) {
^
user.cpp:125:13: error: ‘cout’ was not declared in this scope
cout << "Am pus-o! " << i << ":" << sol1 << " vs " << sol2 << "\n";
^
user.cpp: At global scope:
user.cpp:134:23: error: ‘string’ has not been declared
void benchmark(int n, string name, int (*func)(int)) {
^
user.cpp: In function ‘void benchmark(int, int, int (*)(int))’:
user.cpp:135:22: error: ‘clock’ was not declared in this scope
int start = clock();
^
user.cpp:139:44: error: ‘CLOCKS_PER_SEC’ was not declared in this scope
double duration = 1.0 * (end - start) / CLOCKS_PER_SEC; // durata in secunde
^
user.cpp:141:4: error: ‘cout’ was not declared in this scope
cout.precision(6);
^
user.cpp:143:62: error: ‘fixed’ was not declared in this scope
cout << "n = " << n << " sol = " << sol << "; time = " << fixed << duration << "\n";
^
user.cpp: In function ‘void benchmark_set(int)’:
user.cpp:147:37: error: ‘gardurile_lui_Gigel’ was not declared in this scope
benchmark(n, "varianta simpla", gardurile_lui_Gigel);
^
user.cpp:148:51: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
benchmark(n, "varianta rapida", garduri_rapide);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !