#1360
Se citește n număr natural. Calculați suma numerelor naturale mai mici sau egale cu n.
| Problema | Suma Gauss | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64629954 | Utilizator | |
| Fișier | suma_gauss.cpp | Dimensiune | 3.23 KB |
| Data încărcării | 19 Mai 2026, 12:50 | Scor/rezultat | Eroare de compilare |
suma_gauss.cpp:14:5: error: redefinition of ‘int n’ 14 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:14:7: error: redefinition of ‘int a’ 14 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:14:9: error: redefinition of ‘int b’ 14 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:14:11: error: redefinition of ‘int c’ 14 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:15:5: error: redefinition of ‘int main()’ 15 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:25:5: error: redefinition of ‘int n’ 25 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:25:7: error: redefinition of ‘int a’ 25 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:25:9: error: redefinition of ‘int b’ 25 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:25:11: error: redefinition of ‘int c’ 25 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:26:5: error: redefinition of ‘int main()’ 26 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:36:5: error: redefinition of ‘int n’ 36 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:36:7: error: redefinition of ‘int a’ 36 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:36:9: error: redefinition of ‘int b’ 36 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:36:11: error: redefinition of ‘int c’ 36 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:37:5: error: redefinition of ‘int main()’ 37 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:47:5: error: redefinition of ‘int n’ 47 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:47:7: error: redefinition of ‘int a’ 47 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:47:9: error: redefinition of ‘int b’ 47 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:47:11: error: redefinition of ‘int c’ 47 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:48:5: error: redefinition of ‘int main()’ 48 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:58:5: error: redefinition of ‘int n’ 58 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:58:7: error: redefinition of ‘int a’ 58 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:58:9: error: redefinition of ‘int b’ 58 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:58:11: error: redefinition of ‘int c’ 58 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:59:5: error: redefinition of ‘int main()’ 59 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:69:5: error: redefinition of ‘int n’ 69 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:69:7: error: redefinition of ‘int a’ 69 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:69:9: error: redefinition of ‘int b’ 69 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:69:11: error: redefinition of ‘int c’ 69 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:70:5: error: redefinition of ‘int main()’ 70 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:80:5: error: redefinition of ‘int n’ 80 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:80:7: error: redefinition of ‘int a’ 80 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:80:9: error: redefinition of ‘int b’ 80 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:80:11: error: redefinition of ‘int c’ 80 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:81:5: error: redefinition of ‘int main()’ 81 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:91:5: error: redefinition of ‘int n’ 91 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:91:7: error: redefinition of ‘int a’ 91 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:91:9: error: redefinition of ‘int b’ 91 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:91:11: error: redefinition of ‘int c’ 91 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:92:5: error: redefinition of ‘int main()’ 92 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:102:5: error: redefinition of ‘int n’ 102 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:102:7: error: redefinition of ‘int a’ 102 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:102:9: error: redefinition of ‘int b’ 102 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:102:11: error: redefinition of ‘int c’ 102 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:103:5: error: redefinition of ‘int main()’ 103 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:113:5: error: redefinition of ‘int n’ 113 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:113:7: error: redefinition of ‘int a’ 113 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:113:9: error: redefinition of ‘int b’ 113 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:113:11: error: redefinition of ‘int c’ 113 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:114:5: error: redefinition of ‘int main()’ 114 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:124:5: error: redefinition of ‘int n’ 124 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:124:7: error: redefinition of ‘int a’ 124 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:124:9: error: redefinition of ‘int b’ 124 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:124:11: error: redefinition of ‘int c’ 124 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:125:5: error: redefinition of ‘int main()’ 125 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:135:5: error: redefinition of ‘int n’ 135 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:135:7: error: redefinition of ‘int a’ 135 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:135:9: error: redefinition of ‘int b’ 135 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:135:11: error: redefinition of ‘int c’ 135 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:136:5: error: redefinition of ‘int main()’ 136 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:146:5: error: redefinition of ‘int n’ 146 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:146:7: error: redefinition of ‘int a’ 146 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:146:9: error: redefinition of ‘int b’ 146 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:146:11: error: redefinition of ‘int c’ 146 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:147:5: error: redefinition of ‘int main()’ 147 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:157:5: error: redefinition of ‘int n’ 157 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:157:7: error: redefinition of ‘int a’ 157 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:157:9: error: redefinition of ‘int b’ 157 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:157:11: error: redefinition of ‘int c’ 157 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:158:5: error: redefinition of ‘int main()’ 158 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:168:5: error: redefinition of ‘int n’ 168 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:168:7: error: redefinition of ‘int a’ 168 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:168:9: error: redefinition of ‘int b’ 168 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:168:11: error: redefinition of ‘int c’ 168 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:169:5: error: redefinition of ‘int main()’ 169 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:179:5: error: redefinition of ‘int n’ 179 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:179:7: error: redefinition of ‘int a’ 179 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:179:9: error: redefinition of ‘int b’ 179 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:179:11: error: redefinition of ‘int c’ 179 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:180:5: error: redefinition of ‘int main()’ 180 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:190:5: error: redefinition of ‘int n’ 190 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:190:7: error: redefinition of ‘int a’ 190 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:190:9: error: redefinition of ‘int b’ 190 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:190:11: error: redefinition of ‘int c’ 190 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:191:5: error: redefinition of ‘int main()’ 191 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:201:5: error: redefinition of ‘int n’ 201 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:201:7: error: redefinition of ‘int a’ 201 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:201:9: error: redefinition of ‘int b’ 201 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:201:11: error: redefinition of ‘int c’ 201 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:202:5: error: redefinition of ‘int main()’ 202 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:212:5: error: redefinition of ‘int n’ 212 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:212:7: error: redefinition of ‘int a’ 212 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:212:9: error: redefinition of ‘int b’ 212 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:212:11: error: redefinition of ‘int c’ 212 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:213:5: error: redefinition of ‘int main()’ 213 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:223:5: error: redefinition of ‘int n’ 223 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:223:7: error: redefinition of ‘int a’ 223 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:223:9: error: redefinition of ‘int b’ 223 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:223:11: error: redefinition of ‘int c’ 223 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:224:5: error: redefinition of ‘int main()’ 224 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:234:5: error: redefinition of ‘int n’ 234 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:234:7: error: redefinition of ‘int a’ 234 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:234:9: error: redefinition of ‘int b’ 234 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:234:11: error: redefinition of ‘int c’ 234 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:235:5: error: redefinition of ‘int main()’ 235 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:245:5: error: redefinition of ‘int n’ 245 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:245:7: error: redefinition of ‘int a’ 245 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:245:9: error: redefinition of ‘int b’ 245 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:245:11: error: redefinition of ‘int c’ 245 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:246:5: error: redefinition of ‘int main()’ 246 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~ suma_gauss.cpp:256:5: error: redefinition of ‘int n’ 256 | int n,a,b,c; | ^ suma_gauss.cpp:3:5: note: ‘int n’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:256:7: error: redefinition of ‘int a’ 256 | int n,a,b,c; | ^ suma_gauss.cpp:3:7: note: ‘int a’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:256:9: error: redefinition of ‘int b’ 256 | int n,a,b,c; | ^ suma_gauss.cpp:3:9: note: ‘int b’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:256:11: error: redefinition of ‘int c’ 256 | int n,a,b,c; | ^ suma_gauss.cpp:3:11: note: ‘int c’ previously declared here 3 | int n,a,b,c; | ^ suma_gauss.cpp:257:5: error: redefinition of ‘int main()’ 257 | int main() | ^~~~ suma_gauss.cpp:4:5: note: ‘int main()’ previously defined here 4 | int main() | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Suma Gauss face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.