Borderou de evaluare (job #644439)

Utilizator avatar Radu_Tanase Tanase Radu Mihai Radu_Tanase IP ascuns
Problemă Flori Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 mar. 2022 17:42:11 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:27: error: redeclaration of 'int c1' 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~ main.cpp:9:23: note: 'int c1' previously declared here 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~ main.cpp:9:50: error: 'INT_MIN' was not declared in this scope 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~~~~~~ main.cpp:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <fstream> +++ |+#include <climits> 3 | using namespace std; main.cpp:9:9: warning: unused variable 'i' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^ main.cpp:9:12: warning: unused variable 'j' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^ main.cpp:9:15: warning: unused variable 'l1' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~ main.cpp:9:19: warning: unused variable 'l2' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~ main.cpp:9:23: warning: unused variable 'c1' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~ main.cpp:9:37: warning: unused variable 'x' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^ main.cpp:9:40: warning: unused variable 'k' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^ main.cpp:9:43: warning: unused variable 'l' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^ main.cpp:9:46: warning: unused variable 'max' [-Wunused-variable] 9 | int i, j, l1, l2, c1, c1, n, m, x, k, l, max=INT_MIN, ap=0; | ^~~