Borderou de evaluare (job #706261)

Utilizator avatar alaalalala Andrew Tate alaalalala IP ascuns
Problemă Reteta ( clasa a 10-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mar. 2023 17:32:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:75:2: error: stray '#' in program 75 | }#include <bits/stdc++.h> | ^ main.cpp:75:3: error: 'include' does not name a type 75 | }#include <bits/stdc++.h> | ^~~~~~~ main.cpp:77:5: error: redefinition of 'int strtonum(std::string)' 77 | int strtonum(string n){ | ^~~~~~~~ main.cpp:3:5: note: 'int strtonum(std::string)' previously defined here 3 | int strtonum(string n){ | ^~~~~~~~ main.cpp:86:23: error: redefinition of 'std::map<std::__cxx11::basic_string<char>, long long int> cnt' 86 | map<string,long long> cnt; | ^~~ main.cpp:12:23: note: 'std::map<std::__cxx11::basic_string<char>, long long int> cnt' previously declared here 12 | map<string,long long> cnt; | ^~~ main.cpp:87:5: error: redefinition of 'int main()' 87 | int main(){ | ^~~~ main.cpp:13:5: note: 'int main()' previously defined here 13 | int main(){ | ^~~~ main.cpp: In function 'int main()': main.cpp:14:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | freopen("reteta.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:15:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | freopen("reteta.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:88:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 88 | freopen("reteta.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:89:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 89 | freopen("reteta.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~