Programming on a simulator

Hello,
I’m using arduino online simulator to test my program (I used sweep example and added some changes to it), but it gives me an error saying there is something wrong with the code.
My Program:

#include <Servo.h>

Servo myservo;

int pos = 0;

void setup() {
myservo.attach(9);
int pinMode(13, 12, OUTPUT);
}

void loop() {
for (pos = 0; pos <= 180; pos += 1) {
// in steps of 1 degree
myservo.write(pos);
delay(15);
}
for (pos = 180; pos >= 0; pos -= 1) {
myservo.write(pos);
delay(15);
}
if (pos = 180) {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
}
if (pos = 0) {
digitalWrite(12, HIGH);
delay(1000);
digitalWrite(12, LOW);
}
}

Error:
In function ‘void setup()’:
10:29: error: expression list treated as compound expression in initializer [-fpermissive]

Can someone please help me out, i cant figure out what went wrong, but seems that the problem is within seep example

Many thanks.

  int pinMode(13, 12, OUTPUT);

First problem - Why the int specifier ? Second problem - You can only set the pinMode() of one pin at a time.

  if (pos = 180) {

Third problem - this sets pos to 180 rather than testing it. In any case, after the for loop will pos ever equal 180 ?

The syntax for a function call is just the function name and the list of arguments - if you give a type you are declaring a forward reference, not calling.