Borderou de evaluare (job #2462352)

Utilizator cyg_contnr1Rares Burghelea cyg_contnr1 Data 27 septembrie 2019 10:11:47
Problema PScPld Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:17:5: error: 'string' was not declared in this scope string s; ^~~~~~ main.cpp:20:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while (scanf("%c", &x)); ^~~~~ main.cpp:21:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while' { ^ main.cpp:22:9: error: 's' was not declared in this scope s += "#"; ^ main.cpp:27:5: error: 's' was not declared in this scope s = "!" + s + "#"; ^ main.cpp:29:25: error: 'assert' was not declared in this scope assert(n < 2 * maxim); ^ main.cpp:54:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d", ans); ^ main.cpp:15:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("pscpld.in","r",stdin); ^ main.cpp:16:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("pscpld.out","w",stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?