Borderou de evaluare (job #2754843)

Utilizator MateiAruxandeiMateiStefan MateiAruxandei Data 26 mai 2021 16:33:47
Problema Produse 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:40:35: warning: for increment expression has no effect [-Wunused-value] for(int lim = (d / x) * x;; lim >= x; lim -= x) ~~~~^~~~ main.cpp:40:39: error: expected ')' before ';' token for(int lim = (d / x) * x;; lim >= x; lim -= x) ^ main.cpp:40:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int lim = (d / x) * x;; lim >= x; lim -= x) ^~~ main.cpp:40:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int lim = (d / x) * x;; lim >= x; lim -= x) ^~~ main.cpp:40:41: error: 'lim' was not declared in this scope main.cpp: In function 'void BUNA(const string&)': main.cpp:21:62: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen((task + ".out").c_str(), "w", stdout); ^ main.cpp:21:62: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] Non zero exit status: 1

Ceva nu functioneaza?