[ create a new paste ] login | about

Link: http://codepad.org/hWhmzdek    [ raw code | output | fork ]

C, pasted on Nov 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <conio.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

struct pt {int num;int x;int y;};

int main()
{
    float R=7.2;
    struct pt mug[4]={1,1,1 , 2,15,1 , 3,10,8 , 4,2,14},line[2]={5,-1,-1 , 6,8,15},*D1;
    D1[1]=(struct pt)malloc(sizeof(pt));
    //printf("%d %d %d",mug[2].num,mug[2].x,mug[2].y);
    getch();
    return 0;
}


Output:
1
2
3
4
5
6
Line 18: error: conio.h: No such file or directory
In function 'main':
Line 12: error: 'pt' undeclared (first use in this function)
Line 12: error: (Each undeclared identifier is reported only once
Line 12: error: for each function it appears in.)
Line 12: error: conversion to non-scalar type requested


Create a new paste based on this one


Comments: