error: format '%d' expects argument of type 'int', but argument 5 has type 'int64_t {aka long int}' [-Werror=format=]
原因:数据格式化不正确,可能导致在32位和64位机上编译器解释不统一。
解决:
#include <inttypes.h>
printf("%" PRId64 "\n", value);
error: format '%d' expects argument of type 'int', but argument 5 has type 'int64_t {aka long int}' [-Werror=format=]
原因:数据格式化不正确,可能导致在32位和64位机上编译器解释不统一。
解决:
#include <inttypes.h>
printf("%" PRId64 "\n", value);
java 线程安全的int
[root@CC c]# gcc MemTest.c -o MemTest1 -WallMemTest.c: In function ‘main’:MemTest.c:24: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘int *’MemTest.c:39: warning: format ‘
<br />呢?<br /> <br />#include<stdio.h><
今天在做一个用三元运算符判断奇偶的小练习时遇到“the operation % is undefined for the argument type string,int”错误的小插曲开始的程序是这样写的package com.lixiyu;import java.util.Scanner;public class ParityCheck {public static void main(S
Type argument cannot be of primitive type ...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M