1

What is the problem with that code?

Öncelikli olarak \textbf{#include <mpi.h>} header'ını programımıza ekliyoruz. 
Ardından MPI programımızı başlatacak olan \textbf{MPI_Init(&argc, &argv);} 
fonksiyonumuzu yazıyoruz. Bu iki satır her MPI programında bulunmaktadır.

Error

Illegal parameter number in definition of \re
served@a.
<to be read again> 
                   i
l.512 Öncelikli olarak \textbf{#include <mpi.h>}
                                              header'ını programımız..
imnothere
  • 14,215
  • Welcome to TeX.SX! # is a special character in LaTeX; to obtain a printed # you should input it as \#. – egreg Sep 13 '17 at 19:55
  • Thanks for you answer. Now it says Missing $ inserted. $ l.512 ...cak olan \textbf{MPI_Init(&argc, &argv);} – TahsinGokalp Sep 13 '17 at 19:57
  • @TahsinGokalp: & is also special. Print it in the same way: \&. – Werner Sep 13 '17 at 19:57
  • Same for \_. However, you should set code seuquences with \verb|#include <mpi.h>| –  Sep 13 '17 at 19:58
  • @TahsinGokalp if you want to typeset source code I would recommend to use the minted package. It saves you the trouble to escape special characters and automatically highlights the code appropriately. For example with \newmintinline{c}{} (p. 30, for the options you can pass as second argument see p. 15) in the preamble you can use \cinline|#include <mpi.h>| in your document. – jakun Sep 14 '17 at 08:01

0 Answers0